The Artima Developer Community
Sponsored Link

Legacy Java Answers Forum
November 2000



This page contains an archived post to the Java Answers Forum made prior to February 25, 2002. If you wish to participate in discussions, please visit the new Artima Forums.


what i am doing....

Posted by abcd on November 24, 2000 at 9:41 AM

hi raji,
thanx for responding...I would like to explain in detail what is going on....

i have not mapped anything to the property file. All i have done is try to connect to the database as u would normally do if u wrote a java program. I do this in setentitycontext(). Later in ejbcreate() i just execute an insert statement. All this is fine in the sense that the bean is successfully compiled and even deployed. the problem arises when a client tries to create the bean. I have debugged the bean code at runtime and (putting println statements) and found the bean's setentitycontext is being called successfully by the client program and that when the getconnection() method is called, it gives driver not found exception.....However the same driver (jdbc-odbc brige) is able to retrieve data when used in a normal java program. What could be the problem????

thanx again


Sponsored Links

Copyright © 1996-2009 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use - Advertise with Us