James,
it's quite simple:
First server (primary) has standard configuration.
I only changed java.naming.provider.url from localhost
to real.host1.name, but I think it's not necessary.
On the second server, set java.naming.provider.url
from jndi.properties to real.host1.name (primary server host).
Then I disabled (commented out) JMX adapters in jboss.jcml:
<!-- JMX adaptors *** DISABLE ***
<mbean code="org.jboss.jmx.server.JMXAdaptorService"
name="Adaptor:name=RMI" />
<mbean code="org.jboss.jmx.server.RMIConnectorService"
name="Connector:name=RMI" />
-->
And that's it.
One more thing. Of course, "secondary" server must be started
after "primary" one.
In this setup (based on jboss-2.1) I'm able to lookup EJBs
deployed on both servers and they are able to call each other.
The only problem I discovered that I cannot lookup a bean from
the second server without having its home/remote interface.
I means that
Object o = context.lookup("EjbFromSecondServer");
throws an CNF exception if EjbFromSecondServer's home/remote
interfaces are unknown for a client.
James Cook wrote:
>
> ----- Original Message -----
> From: "Alexander Kogan" <[EMAIL PROTECTED]>
>
> > > 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.
>
> This is exactly what I would like the details on. Please describe.
>
> jim
>
> _______________________________________________
> JBoss-user mailing list
> [EMAIL PROTECTED]
> http://lists.sourceforge.net/lists/listinfo/jboss-user
--
__________________________________________________
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