[jboss-user] [JNDI and Naming] - Standalone JNDI/Datasource

JAYESH PARAYALI do-not-reply at jboss.com
Mon Jan 24 16:44:57 EST 2011


JAYESH PARAYALI [http://community.jboss.org/people/jayeshpk] created the discussion

"Standalone JNDI/Datasource"

To view the discussion, visit: http://community.jboss.org/message/582881#582881

--------------------------------------------------------------
How can I start a standalone JNDI server with a datasource programmatically?

I am able to start the naming server using the below code. How can I create a datasource and bind it so it can be looked up from a remote client?

        NamingBeanImpl jnpServer = new NamingBeanImpl();
        jnpServer.start();

        org.jnp.server.Main main = new org.jnp.server.Main();
        main.setNamingInfo(jnpServer);
        main.start();

Thanks for taking a look.
--------------------------------------------------------------

Reply to this message by going to Community
[http://community.jboss.org/message/582881#582881]

Start a new discussion in JNDI and Naming at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2083]

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-user/attachments/20110124/ffde4d19/attachment.html 


More information about the jboss-user mailing list