It seems that there might be stale cache in the JNDI in your environment.
Can you give us the full stacktrace so that we can find out what EJB locator
is effective?
Thanks,
Raymond
From: Jérôme Besnainou
Sent: Wednesday, August 27, 2008 8:28 AM
To: [email protected]
Subject: EJB binding not able to recover the connection after a failure
Hello,
I have an issue with EJB binding. After a failure EJB binding is not able
to recover the connection.
I'm using Tuscany 1.3 inside tomcat (6.0.16) + jdk 1.6 + Jonas 4.8.5 (EJB
2.1).
I have an EJB 2.1 deploy on Jonas and a SCA composite deploy on Tuscany
inside Tomcat. This composite use the EJB binding in order to use the ejb
service:
<reference name="deliveryService">
<binding.ejb uri="rmi://localhost:8092/DeliveryNoteServiceHome" />
</reference>
Everything works well in a nominal case.
However if:
- I undeploy my ejb on Jonas and try to access it with Tuscany. I
got an exception: this normal
- Then I deploy again my ejb on jonas and try to access it with
Tuscany. I got an exception while it should not
I had to shutdown Tuscany and restart it in order to be able to access my
EJB again.
Here is the stack trace I have when Tuscany try to acces my EJB after the
undeploy and deploy:
org.osoa.sca.ServiceRuntimeException:
org.osoa.sca.ServiceUnavailableException:
javax.naming.NameNotFoundException: DeliveryNoteServiceHome
at
org.apache.tuscany.sca.binding.ejb.util.EJBHandler.<init>(EJBHandler.java:76)
at
org.apache.tuscany.sca.binding.ejb.util.EJBHandler.<init>(EJBHandler.java:66)
at
org.apache.tuscany.sca.binding.ejb.provider.EJBBindingInvoker.doInvoke(EJBBindingInvoker.java:73)
at
org.apache.tuscany.sca.binding.ejb.provider.EJBBindingInvoker.invoke(EJBBindingInvoker.java:50)
at
org.apache.tuscany.sca.core.databinding.wire.PassByValueInterceptor.invoke(PassByValueInterceptor.java:107)
at
org.apache.tuscany.sca.core.invocation.JDKInvocationHandler.invoke(JDKInvocationHandler.java:287)
at
org.apache.tuscany.sca.core.invocation.JDKInvocationHandler.invoke(JDKInvocationHandler.java:154)
at $Proxy10.getDeliveryNote(Unknown Source)
Do not hesitate to contact me if you need more details.
Best Regards,
Jérôme