Close
jGuru Forums
Posted By: Anonymous Posted On: Sunday, May 18, 2003 01:55 AM
Hi, I have a class which implements Runnable interface. i.e. I call this class in the thread. In the run method I am getting images from the database by passing different inputs. For each image retrieval a new thread instance will be created. In the thread, to get database connection. I am looking for the key java:comp/usertransaction using the InitialContext class. When I use this class it is throwing no thread context and thrown NamingException. When I don't run as a thread, it is fine. But not in the thread. Can anybody tell me how to get connection in the thread using the java:comp/usertransaction key. Thanks in advance.
Re: Transaction using java:comp/transaction
Posted By: mohammad_rizwan Posted On: Thursday, May 22, 2003 02:22 AM