on 09-10-2009 7:27 AM
Hello,
I have a session bean which is consuming entity bean and session bean is published as webService now when I call create method of entity bean from session bean it says "Exception in method com.syntel.exam_tool.entityBeans.tabExamTable.TabExamLocalHomeImpl0.create()."
But my create method of entity bean is blank I am not getting from where this exceptions is being thrown.
below is the code from session bean wehre I am calling entity bean
javax.naming.Context ctx;
ctx = new InitialContext();
TabExamLocalHome tabExamLocalHome = (TabExamLocalHome) ctx.lookup("java:comp/env/ejb/TabExamBean1");
TabExamLocal tabExam = tabExamLocalHome.create();
Please help me ins this problem.
Thanks
Hi
It looks you have some issues while creating bean and as you are not passing any values to the method from that it looks like you are setting some static values only in that case check if it is not violating any database constraints like primary key / unique key constraints or the relations of the key with other fields
Ninad
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I think the code that you have provided is from Client EJB, as per my assumption it was unable to create a bean(plz check with exact bean coding), ot client is unable to access EJB
-Devender V
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
87 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.