javax.naming.NameNotFoundException: Context:
BDSPUKD00018452Node03Cell/nodes/BDSPUKD00018452Node03/servers/server1, name:
com/dwl/base/requestHandler/beans/DWLServiceController: First component in name
requestHandler/beans/DWLServiceController not found. [Root exception is org.omg.CosNaming.NamingContextPackage.NotFound:
IDL:omg.org/CosNaming/NamingContext/NotFound:1.0]
This could happen if you are trying to access from a client on local server, the MDM deployed on remote server
One possible resolution:
Replace this with in client class code.
InitialContext
ctx = new InitialContext();
Object obj = ctx.lookup("com/dwl/base/requestHandler/beans/DWLServiceController");
with this
Hashtable params = new Hashtable(1);
params.put(Context.PROVIDER_URL, "corbaloc:iiop:RemotehostName:RemotePort");
InitialContext ctx = new
InitialContext(params);
Object obj = ctx.lookup("com/dwl/base/requestHandler/beans/DWLServiceController");
resources referred:
No comments:
Post a Comment