JBoss Community

Standalone JNDI/Datasource

created by JAYESH PARAYALI in JNDI and Naming - View the full discussion

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

Start a new discussion in JNDI and Naming at Community