Win a copy of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Advanced JNDI/WSAD question.  RSS feed

Roy kachouh
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Ok guys, I have been pulling my hair out on this one. Just a quick prelude to the configuration of my app:

2 WSAD workspaces open.
Each workspace has it's own server configuration. So there are a total of 2 servers, let's just call them server1 and server2.

Ok now the problem:
I have created a new EJB service that allows for applications to report on the status of a process. Currently, this service is running in server1 of workspace1. There is an application running in workspace2 on server2, that needs to make use of the status service remotely. In other words, the application in server2 is acting as a client for the service provided in server1.

I am having trouble locating the service in the JNDI namespace. When I run the dumpnamespace utility, I can see that the service is bound to the namespace. I am explicitly specifying the ORB port of server1 when I construct my InitialContext. To no avail...

Below is my initial context code:

Properties props = new Properties();

//TODO externalize the URL!!!
String url = "corbaloc:iiop:localhost2:2809";
props.put(Context.PROVIDER_URL, url);

InitialContext ctx = new InitialContext(props);
NamingEnumeration ne = ctx.listBindings("thisNode/node/servers/server1/ejb/xxx/xxx/xx/xxxx");

Object obj =;
return ctx;

It seems that WSAD is ignoring the port, because the only resouces I see when I traverse the namespace are the ones local to the workspace. I am pretty sure that I would be able to see the service bound when I move the app to the WAS environment, because of the federated namepsace. However, I want to be able to test locally. Is this a limitation of WSAD or am I missing some configuration?? Anyhelp, would be greatly appreciated.


Mark Spritzler
Posts: 17309
IntelliJ IDE Mac Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
"Roy Rogers"

Please click the My Profile link above and change your display name to meet the JavaRanch Naming policy of using your real first and real last names.


It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!