aspose file tools*
The moose likes EJB and other Java EE Technologies and the fly likes EJB message error Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "EJB message error" Watch "EJB message error" New topic
Author

EJB message error

ksprvtwo
Greenhorn

Joined: Jul 06, 2001
Posts: 1
Hi friends :
Actually im testing my firsts EJB programs. Im using :
IBM WebSphere 3.5.0. Advanced Edition
Windows NT 4.0
I've two entity beans and one session bean
Name : MusicHome
Current State : Running
JNDI Home Name : cart/Music
Name : BooksHome
Current State : Running
JNDI Home Name : shop/Books
session bean :
Name : CartHome
Current State : Running
JNDI Home Name : shop/Cart
Part of my code servlet :

try
{
javax.naming.InitialContext initialContext = new javax.naming.InitialContext();
Object objHome = initialContext.lookup("shop/Books");
BooksHome bookshome = (BooksHome) javax.rmi.PortableRemoteObject.narrow(objHome,BooksHome.class);
Books libro1 = bookshome.findByPrimaryKey(new BooksKey(10));
out.println("Libro 10 "+libro1.getTitle());

}
catch (Exception e) {
e.printStackTrace(out);
}
When I execute my servlet this is the message error tha appears :

java.rmi.ServerException: RemoteException occurred in server thread; nested exception is:
com.ibm.ejs.container.UncheckedException: ; nested exception is: com.ibm.websphere.csi.CSIException: Failed to start
transaction com.ibm.ejs.container.UncheckedException: ; nested exception is: com.ibm.websphere.csi.CSIException: Failed to
start transaction com.ibm.websphere.csi.CSIException: Failed to start transaction
Could anybody help me
Thanks
Ksprvtwo
Matt Midcap
Sheriff

Joined: Jan 07, 1999
Posts: 440
The Java Ranch has thousands of visitors every week, many with surprisingly similar names. To avoid confusion we have a naming convention, described at http://www.javaranch.com/name.jsp . We require names to have at least two words, separated by a space, and strongly recommend that you use your full real name. Please log in with a new name which meets the requirements.
Thanks.
Matt


Best Regards,<br />Matt Midcap
Jorge Chata
Greenhorn

Joined: Jul 06, 2001
Posts: 24
Ok sheriff Matt, excuse me. This is my first time that I write in this forum. I had registered again. (ksprvtwo)
Any idea about my trouble
Jorge
Matt Midcap
Sheriff

Joined: Jan 07, 1999
Posts: 440
Hi Jorge,
It's ok, many people do it and it's not a big deal - just doing my job.
Anyway, I don't know the answer to your question. Sounds like the server is having problems but I'm not too familiar with it - sorry.
Best Regards,
Matt
 
wood burning stoves
 
subject: EJB message error
 
Similar Threads
EJB - Message error
About EJBs
EJB error
EJB message error
EJB problem