I have yet to use remote EJBs as Seam components. Must you use remote interfaces? i.e. do you have more than one JVM in your system? You could use web services.
deadlock gr wrote on Jun 15, 2010 10:05:
There, there is a response saying that remote EJBs cannot be as Seam components.
1. Has this changed since then (April 2009)?
No, not much has changed in Seam 2 since then.
2. If not, how come it is not documented? It is not a trivial issue, and I could not find anything on the documentation, nor in
Seam in Action.
It must be mentioned somewhere, I think. Seam makes heavy use of proxies and interceptors and you can't do this stuff with remote EJBs.
3. What is the recommended workaround? Perhaps change the Seam components that use remote EJBs to Local EJBs, bundle them in an EAR and use @EJB for injection?
Have a Seam component that wraps access to remote EJBs and inject that. Inside you lookup from JNDI/whatever you preferred way to get a hold of a remote EJB.