users@glassfish.java.net

Re: Stateful web service injection not working

From: David Pérez Villanueva <dperezvi.listas_at_gmail.com>
Date: Mon, 14 Jul 2008 16:11:26 +0200

Hi Aniceto,

Can I set the statefull ws "manager" field by hand? How do I know the
JNDI name of the StatefulWebService manager?

Thanks,

David


public static StatefulWebServiceManager<BankAccount> manager;



glassfish_at_javadesktop.org escribió:
> Hi David
>
> I've spent many time with injection and I've not found it very useful:
>
> - lookup in the same server works well, but I couldn't get it work with a different gf server unless it's declared in a xml file I don't remember at this moment
>
> - unstable: if the module which implements the service is reloaded, previously injected references are no longer valid
>
> I prefer to use object lookup and deal with errors than resource injection. Maybe there is a way to deal with all that but all the books and code samples assume no errors.
>
> Sorry for resource injection lovers.
>
> ---
> Aniceto Perez
> [Message sent by forum member 'aperezymadrid' (aperezymadrid)]
>
> http://forums.java.net/jive/thread.jspa?messageID=286159
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe_at_glassfish.dev.java.net
> For additional commands, e-mail: users-help_at_glassfish.dev.java.net
>
>
>