users@jersey.java.net

Re: [Jersey] which ManagedBean can inject EJB ?

From: Felipe Gaścho <fgaucho_at_gmail.com>
Date: Wed, 21 Oct 2009 18:51:08 +0200

can you please point me to a runnable sample application ?

or how to run it ? :)

I tried:

mvn clean install

and then I deployied the war file.. the deployment worked, but I
couldn't access the application.........

if it runs here I am sure the problem is not in the Glassfish..

On Wed, Oct 21, 2009 at 6:48 PM, Paul Sandoz <Paul.Sandoz_at_sun.com> wrote:
> On Oct 21, 2009, at 6:41 PM, Felipe Gaścho wrote:
>
>> how to fix the situation ?
>>
>
> Do not use constructors. Use @PostConstruct.
>
> Paul.
>
>> On Wed, Oct 21, 2009 at 6:38 PM, Paul Sandoz <Paul.Sandoz_at_sun.com> wrote:
>>>
>>> On Oct 21, 2009, at 6:31 PM, Felipe Gaścho wrote:
>>>
>>>>
>>>>
>>>> [#|2009-10-21T18:30:42.957+0200|INFO|glassfish|com.sun.jersey.samples.managedbeans.resources.ManagedBeanSingletonResource|_ThreadID=67;_ThreadName=Thread-3;|In
>>>> constructor
>>>>
>>>> com.sun.jersey.samples.managedbeans.resources.ManagedBeanSingletonResource_at_8|#]
>>>>
>>>>
>>>>
>>>> [#|2009-10-21T18:30:42.958+0200|INFO|glassfish|com.sun.jersey.samples.managedbeans.resources.ManagedBeanSingletonResource|_ThreadID=67;_ThreadName=Thread-3;|In
>>>> constructor
>>>>
>>>> com.sun.jersey.samples.managedbeans.resources.__EJB31_Generated__ManagedBeanSin|#]
>>>>
>>>> I am too lost here.. ok, I love glassfish.. I will pass through it :)
>>>
>>> That is a consequence of client proxies (you will get the same with 299).
>>> The proxy pattern used is extension with delegation, and thus two
>>> instances
>>> will be created, one for the proxy that is injected and one for which the
>>> proxy delegates to.
>>>
>>> Paul.
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: users-unsubscribe_at_jersey.dev.java.net
>>> For additional commands, e-mail: users-help_at_jersey.dev.java.net
>>>
>>>
>>
>>
>>
>> --
>> Looking for a client application for this service:
>> http://fgaucho.dyndns.org:8080/arena-http/wadl
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe_at_jersey.dev.java.net
>> For additional commands, e-mail: users-help_at_jersey.dev.java.net
>>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe_at_jersey.dev.java.net
> For additional commands, e-mail: users-help_at_jersey.dev.java.net
>
>



-- 
Looking for a client application for this service:
http://fgaucho.dyndns.org:8080/arena-http/wadl