Skip to Main Content

Java Development Tools

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

WebLogic Clustering, EJB Remote vs Local interfaces

Mike Anderson-OracleMay 11 2011 — edited May 23 2011
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>
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jun 20 2011
Added on May 11 2011
4 comments
1,004 views