-
First, I recommend to remove the env-entry element again. The proposal was an error, that's why I removed it from my post.
Second, Try to debug into the "getBeanFactory" invocation. That might provide further clues.
BTW: I recommend not to overload ejbCreate() and ejbRemove() in your class.
Regards,
Andreas
-
Also, you dont have to specify the location in the ejb-jar.xml file; you can code it if you like:
Code:
public void setMessageDrivenContext(MessageDrivenContext messageDrivenContext) {
super.setMessageDrivenContext(messageDrivenContext);
setBeanFactoryLocator(ContextSingletonBeanFactoryLocator
.getInstance(this.beanRefContextLocation));
setBeanFactoryLocatorKey(this.beanFactoryName);
}
-
Thank you very much!
I remove the env-entry element, remove ejbCreate and ejbRemove method, remove implements javax.ejb.MessageDrivenBean, javax.jms.MessageListener and EJB is running success!
Special thanks to Andreas Senft and mdeinum
-
Your welcome, glad we figured it out.
-
Other question
I have a question with my EJB Project. I use Spring and iBatis in this project. At present, to use the two library I do as follow: Extract spring.jar and ibatis.jar files then copy them to ejbModule directory. I would rather you give me another way to use these libraries such as: edit class-path variable and it can point to spring.jar and ibatis.jar. Thank a lot.
-
Why not simply put them in the root of your ear and add them to the ear classpath. ?!
-
If you're working with eclipse you can easily achieve this by adding the jar to the "J2EE Module dependencies" page on project properties.
Regards Ollie
-
I'm working with RAD 6, I have a problem width deployment, when deploy I export my EJB Project to myProject-EAR file but myProject-EAR are no include libraties (spring.jar and ibatis.jar)