I am testing our application using WebLogic clustering and high availability/failover. Everything is working well. However, I did experience an issue with our EJBs that use the local interface. You can see the error below. I changed the EJB to use the remote interface and the error went away. I am not sure this is the right way to fix it. Doesn't using the remote interface hurt performance? Is there a better way to make EJBs work in a HA/failover environment?
Thanks,
Mike
Error with EJB3 Local Interface
<May 10, 2011 2:13:15 PM CDT> <Error> <Kernel> <BEA-000802> <ExecuteRequest failed
javax.ejb.EJBException: Attempt to pass a reference to an EJBLocalObject to a remote client. A local EJB component may only be accessed by clients co-located in the same ear or standalone jar file..
javax.ejb.EJBException: Attempt to pass a reference to an EJBLocalObject to a remote client. A local EJB component may only be accessed by clients co-located in the same ear or standalone jar file.
at oracle.communications.platform.persistence.test.api.impl.TestManager_ilzp7k_TestManagerImpl.writeObject(Unknown Source)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
Truncated. see log file for complete stacktrace
>
Descriptor Settings for HA/Failover
adf-config.xml
<adf-controller-config xmlns="http://xmlns.oracle.com/adf/controller/config">
<adf-scope-ha-support>true</adf-scope-ha-support>
</adf-controller-config>
weblogic.xml
<session-descriptor>
<persistent-store-type>REPLICATED_IF_CLUSTERED</persistent-store-type>
</session-descriptor>