Hi,
I want to migrate one Wildfly 8.1.0 EAR to JBOSS EAP 6.3.
It's seens that after I configure the standalone.xml everything work's, but no.
When call locals EJB 3.1 the program hangs. Don't do nothing more...
I have this:
@Stateless
public class AdminBean extends com.agbar.occam.negocio.ejb.util.EJBBaseBean {
public boolean inicializar(){ ... }
}
And i have this call in servlet:
EJBBaseBean ejb = (EJBBaseBean) getLocalContext().lookup( tipoEJBReal ); <- This work's fine return the proxy to the view..
AdminBean ejbAdmin = (AdminBean) ejb; <- This work's fine
ejbAdmin.inicializar(); <- This hang evething....
Debuging, I see that it's pass in this lines, want it hangs:
ProxyInvocationHandler.invoke(Object, Method, Object[]) line: 59 |
InterceptorContext.<init>() line: 65 |
InterceptorContext.putPrivateData(Class<T>, T) line: 204 |
ComponentClientInstance.prepareInterceptorContext(InterceptorContext) line: 42 |
ModuleClassLoader(ClassLoader).checkPackageAccess(Class, ProtectionDomain) line: 489 |
ModuleClassLoader(ClassLoader).checkPackageAccess(Class, ProtectionDomain) line: 489
ProxyInvocationHandler.invoke(Object, Method, Object[])
Also I don't see any error, only transacciones timeout that's a consequence of the hang.
It's work's fine in wildfly, I don't have any security...
What can be the problem?
Servlet and EJB within the same EAR?
The lookup 'only' create the proxy, no server action is needed. So you know that you have the interface in your classpath - nothing more
How your getLocalContext look like?
Why you don't use injection?