I have multiple EJB3 ears deployed on jboss server. One of them is an application containing common services exposed as remote. Now all other ears use those services via remote and it seems to be realy painful for performance.
What can i do to overcome this? Can I make those services @Local and package this jar to every single application to allow them to be used via @Local not @Remote?
According to the JavaEE tutorial, the client of a
@Localbean “must run in the same JVM as the enterprise bean it accesses.”So you should have no problem using local calls between different deployed applications on the same server.
Are you sure this is the cause of your performance problems, though?