users@glassfish.java.net

_at_EJB: can it be used to look up a remote bean on another server?

From: <glassfish_at_javadesktop.org>
Date: Mon, 26 Oct 2009 09:54:17 PDT

My colleague asked me whether it's possible somehow to deploy a .war file, containing a servlet with an @EJB reference to a stateless session bean, on server A, and an ejb .jar file, containing the bean so referenced, on server B.

My immediate answer was no, but then I hesitated. Perhaps there's a vendor specific way to accomplish this?

The broader context is that we're looking to see what we'd have to do if a client of ours were to want to scale horizontally--i.e. have many .war instances all talking to a remote, behind-the-DMZ EJB server.

Ordinarily, of course, you'd ship the .war file and the EJB .jar file as part of an .ear file, dump it in one server, and scale the server (i.e. garden variety clustering, or vertical scaling, or whatever you want to call it). But we have customers who like for whatever reason to put their web stuff on one box and their business logic on another.

Does the Glassfish community have a recommendation on how to achieve this?

Best,
Laird
[Message sent by forum member 'ljnelson' (ljnelson_at_gmail.com)]

http://forums.java.net/jive/thread.jspa?messageID=369343