James Cook wrote:
>
> Well, the goal is to support beans running on multiple containers without
> hardcoding lookup hosts. On the server side, your beans will need to talk to
> other beans. In some deployment situations, these beans will live in containers
> located on other machines. Your EJBs should never pass a host location to
> InitialContext(), the server should configure this for you.
Right. Don't forget to add the possibility to look up for a bean without
knowing home/remote interfaces (hardcoded <ejb-ref>s) and it'll be THE
DREAM!
>
> In the case of jBoss, your EJBs will automatically look up bean references in
> the server's name service (localhost:1099). The docs refer to a situation where
Nor really, depends on how you have created initial context.
> you can look up a bean on another machine but the lookup is hardcoded into the
> jboss.xml deployment descriptor for the bean. This is OK in some very limited
> cases, but would never be taken seriously in a *real* deployment situation.
Actually it's a shortcut for lookup for beans from
a different namespace (NameServer).
>
> As I said before, server architectures get around multi-vm bean lookup using
> various mechanisms. Borland uses a "smart-broadcast" technology called OSAgent.
> Other servers use a federated namespace, or a single name service. I was trying
> to setup the single namespace approach with jBoss, but it looks like it can't be
> run that way. At least, it appears that the container will not deploy beans
> unless it has its own (local) name service running.
Sorry, but it's not true. I'm successfully running two jBoss servers
bounded to
one jnp NameServer (the primary server has the standard configuration
with embedded
naming and the second server uses nameservice from the primary server).
Works
quite well. If you need details, I'll can describe the setup.
Maybe having standalone NameServer will be even better idea, especially
if you
want some sort of load-balancing.
regards,
Alex.
--
__________________________________________________
Alexander Kogan PTC www.ptc.com
[EMAIL PROTECTED] 140 Kendrick St. Needham MA 02494
_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-user