JBoss Community

EJB 3.1 invoked from a different ear with a shared complex parameter

created by Andrea Bennati in EJB3 - View the full discussion

I'm converting an old SOA architecture from JBOSS 4.0.4GA to Jboss 6.0 Final.

My application is composed by 2 different EARS.

I need to call an EJB 3.1 placed in second EAR from first EAR and call a business method with a complex parameter (a custom class).

I have put the parameter class in a standalone JAR and deployed out of the two EARS.

So this class is not enclosed in any EAR.

The EJBs have local interface defined.

I can instantiate them but when i try to call the business method i get the following exception:

 

ERROR [org.jboss.ejb3.tx2.impl.CMTTxInterceptor] javax.ejb.EJBTransactionRolledbackException: Parameter 1 has the wrong type, expected class soa.struttura.Environ, got class soa.struttura.Environ on public soa.struttura.Response soa.functionejb.FunctionCallerBean.execute(java.lang.String,soa.struttura.Environ,soa.struttura.Request)

 

Please Help

 

Thanks

Reply to this message by going to Community

Start a new discussion in EJB3 at Community