Skip to Main Content

Java APIs

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

WebSphere Client App InitialContext lookup fails

843793Oct 13 2004 — edited Mar 29 2005
I am trying to write a little client app to invoke some EJBs on our WebSphere 5.0 servers. The app works fine on our test server that is a single install of WebSphere. I use port 2809 to connect to the server. However, when I try to connect to our production servers the initialcontext lookup call never returns. The production servers are setup in a cluster. I am using port 9811 on the production server because that is the BOOTSTRAP_ADDRESS setting. I think 2809 on the production server is used by the node service. Am I missing something here? Below is one version of the code that works on the test server. I have tried several different techniques to connect but they all fail. The rmf.create() will never return on the production server.

public class TestIt {
public static void main(String [] argv) throws InterruptedException {
String roomName = "Weather";
String roomID=null;
String serverURL = "iiop://10.1.4.3:2809/";
serverURL = "iiop://prod1.capwin.org:9811/";



SearchManagerFactory rmf = new SearchManagerFactory();

rmf.setInitialContextFactoryName("com.ibm.websphere.naming.WsnInitialContextFactory");
rmf.setInitialContextProviderURL(serverURL);
SearchManager rm=null;


//Get RoomManager access bean
try {
rm = rmf.create();

} catch (RemoteException e1) {
// TODO Auto-generated catch block
e1.printStackTrace();
} catch (CreateException e1) {
// TODO Auto-generated catch block
e1.printStackTrace();
}
}
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Apr 26 2005
Added on Oct 13 2004
2 comments
175 views