[jboss-user] [Persistence, JBoss/CMP, Hibernate, Database] - Re: Could not find datasource message in client JPA although
ezanih
do-not-reply at jboss.com
Wed Dec 24 04:09:58 EST 2008
Hi there
One point I missed out...
Do I have to add all these additional JNDI locating code in my BidClient.class or do I just add the jndi.properties file to my classpath (and how do I do that) :
| Properties p = new Properties();
|
| p.put("java.naming.factory.initial", "org.jnp.interfaces.NamingContextFactory ");
| p.put("java.naming.provider.url", "localhost:1099");
|
|
| InitialContext ctx = new InitialContext( p );
|
| Object obj = ctx.lookup("/BiddingTest");
|
Many thanks in advance!
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4198419#4198419
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4198419
More information about the jboss-user
mailing list