I Have one ear project in its EJB part I have different pakages for sesion beans and entities.
But while deploying all entities are successfully deployed , but session beans are not deployed properly
when I am accessing the session beans from a jsp page its throwing this exception.I am looking up session beans
using Intial Context an lookUp method.
But One interesting thing I have seen when i have created that session bean again with other name its working sometimes.
I am not getting what is the problem ?? Why its working with other Name.
This unexpected behavior of Jboss 5.0.1GA I am not getting.
Please help me to sort out this.
When I am creating New Session bean its working fine with this lookup Code means I am able to access that bean from servlet properly, but when I am trying to access the existing created session bean (This session Bean containing the references of other session beans means its using other session beans by annotations not this lookup code) its showing this exception.
Please help me to solve this problem...
In last reply you told about "JNDIView to verify the the name of the EJB"
What is this???
Its becoz term known as "CIRCULAR DEPENDENCY".
Means the session beans having the references of each other like
There are 2 session beans A and B and A has reference of B and B has reference of A
It means its Circular Dependency and JBOSS is failed to deploy both the beans..
Please suggest any solution for this..
I have tested @IgnoreDependency.Its working with this annotation.
But I do not want to use @IgnoreDependency because for that I have to change my existing code a lot..
Somewhere I have seen in place of using @IgnoreDependency we can edit the "jboss.xml".
But I did not find the exact structure for editing of "jboss.xml".
Can you please tell me how to use "jboss.xml" in place of @IgnoreDependency..
My Session Beans are described below.
Please post me the "jboss.xml" for these session beans..
But I have tried to read that xsd but not able to get the schema..
Can you please post the required jboss.xml?
I have tried also but while runniing server was not able to parse the tags of jboss.xml..
Plese help me..
Have a nice time... <br />Ankit Kumar Varshney
posted 11 years ago
Thanks for help
I have resolved this issue.
But this look littile bit odd as inside <injection-target-name>ejb1Bean</injection-target-name>
this tag you have to mention reference variable name of the dependent bean.
So if i will change my bean's name in the code i have to change this xml file also???