[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 23:53:16 EST 2008


Hi Jaziran

Thank you for monitoring this blog...I appreciate it...I think I'm very close to getting the client working. Like I mentioned intially, my server side JPA entity is deploying OK ... but I'm trying to get my Java Application client to access it. Once that works I will access through JSP.

Ok...back to the issue at hand...I have put the jndi.properties in JBoss's server/default/deploy/conf directory where I added a new line jboss....provider.url = localhost.

And I have put the jndi.properties in jre6/ directory where I added a new line jboss....provider.url = localhost:1099. Probably this is wrong..if it doesn't work, I'm going to open the BiddingClient.jar manually with WinZip and put jndi.properties under /META-INF.

One important thing...if you look at my original BidClient.class client code...I didn't have any of those JNDI locating InitialContext code at all. Do I really need to add those additional codes with all the properties and InitialContext (at the beginning) in my BidClient.class? Is it necessary for EJB3 or just for EJB2.1 only? Shouldn't @PersistenceContext(unit="BiddingTest") suffice?

I am confused with all these lib folders. They are everywhere...in the JDK, in the JRE, in JBoss main folder, in JBoss server folders and in all 3rd party Java applications I installed such as Hibernate, Seam, etc. Yesterday I put a host of new jars in my jdk6/jre6/lib/ext folder and my JBoss refused to start until I removed them all back to the initial 6 files! Is there any place I can put all my application-unique external jars so that I know that Application A uses this set of jars, Application B uses this set of jars, etc rather than having them all mixed up in one folder?

Will keep you updated on the progress of my BidClient whether can connect or not...

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4198494#4198494

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4198494



More information about the jboss-user mailing list