Hi there,
Sorry, I'm not very current on Spring / EJB integration, but what you could
also try is setting the JNDI properties.. either as a file or perhaps inject
them into JNDI.
In code this would be:
Properties props = new Properties();
props.setProperty("java.naming.factory.initial",
"com.sun.enterprise.naming.SerialInitContextFactory");
props.setProperty("java.naming.factory.url.pkgs",
"com.sun.enterprise.naming");
props.setProperty("java.naming.factory.state",
"com.sun.corba.ee.impl.presentation.rmi.JNDIStateFactoryImpl");
props.setProperty(Context.SECURITY_PRINCIPAL, "username");
props.setProperty(Context.SECURITY_CREDENTIALS, "password");
From memory I'm not sure what the textual value of
These properties can also be included in jdni.properties which might be
easier.
And you can use Spring to create the properties object as well.
Hope this helps a little.
Regards,
Barry
On Mon, Mar 30, 2009 at 09:04, <glassfish_at_javadesktop.org> wrote:
> Hi,
> Can anyone answer this?
>
> Thanks,
> Chris
> [Message sent by forum member 'minty' (minty)]
>
> http://forums.java.net/jive/thread.jspa?messageID=339552
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe_at_glassfish.dev.java.net
> For additional commands, e-mail: users-help_at_glassfish.dev.java.net
>
>
--
Barry van Someren
---------------------------------------
Email: barry_at_bvansomeren.com
Email: goltharnl_at_gmail.com
Linked in: http://www.linkedin.com/in/barryvansomeren
KvK: 27317624