Dear Peers,

Forgive my ignorant questions, I'm pretty new to Jboss.

I am trying to set up two instances of the JBoss/Tomcat edition,
one on each of two different computers.  So far I am:

On Computer A
1. Deploying and ear with a simple war containing two test servlets
   and a jar containing one simple ejb which only returns a
   String when called.  A hello world simple bean.

On Computer B
1. Deploying the above jar file containing the ejb.  Only the ejb is
   deployed on this computer.


What I want now:

My ejb(remember it is deployed on both A and B) prints to the console 
window when it is called.  I want the first servlet on computer A to 
create and InitialContext the normal way (a.k.a., the default constructor 
with no properties or hashtable object), and call the ejb that was deployed 
on Computer A in the ear file.  I want the second servlet to call the ejb
residing on computer B.  In the second servlet I have tried creating a
hashtable or properties object and put in the Context.PROVIDER_URL, etc., 
to make it contact the second server.

The Problem:

It always calls the local server on computer A.  It is like I cannot seem
to override the jndi.properties file by creating a Context in the second
servlet with the Hashtable.

I would be most happy to post code as a next stage in the process if it
would help.  I am hoping there is an obvious solution someone knows though.
I have done no other server configuration, so if I am missing what you think
is obvious do not be blunt!  Remember, I'm new!

Thanks so much!

Jason Stortz
E-mail:  [EMAIL PROTECTED]

----------------------------------------------------------------------------
                   Bringing you mounds of caffeinated joy
                      >>>     http://thinkgeek.com/sf    <<<

_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to