This week's book giveaway is in the Java in General forum.
We're giving away four copies of Helidon Revealed: A Practical Guide to Oracle’s Microservices Framework and have Michael Redlich on-line!
See this thread for details.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • paul wheaton
  • Liutauras Vilda
  • Ron McLeod
Sheriffs:
  • Jeanne Boyarsky
  • Devaka Cooray
  • Paul Clapham
Saloon Keepers:
  • Scott Selikoff
  • Tim Holloway
  • Piet Souris
  • Mikalai Zaikin
  • Frits Walraven
Bartenders:
  • Stephan van Hulst
  • Carey Brown

EJB application not accessible from different machine using IIOP-ORB

 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi
In one application, I have developed a session bean, and deployed same on Websphere Application Server 5.0. Now I am able to access this EJB with a client in same machine(with EJB Server)by using
provider-url = "iiopname://localhost:2809" setting.
JDK1.4.0_04 is used in concerned machines.
Initial Context Factory from SUN (com.sun.jndi.cosnaming.CNCtxFactory)is used to lookup beans.
But when I do access this Session Bean from a different machine with changed appropriate setting, it gives me following error :
[EJBTransport] creation of Request Handler failed: org.omg.CORBA.COMM_FAILURE: vmcid: SUN minor code: 201 completed: No at com.sun.corba.se.internal.iiop.ConnectionTable.getConnection(ConnectionTable.java:173) at com.sun.corba.se.internal.iiop.ConnectionTable.getConnection(ConnectionTable.java:65) at com.sun.corba.se.internal.iiop.GIOPImpl.getConnection(GIOPImpl.java:67) at com.sun.corba.se.internal.corba.ClientDelegate.createRequest(ClientDelegate.java:638) at com.sun.corba.se.internal.corba.ClientDelegate.createRequest(ClientDelegate.java:580) at com.sun.corba.se.internal.corba.ClientDelegate.request(ClientDelegate.java:872) at org.omg.CORBA.portable.ObjectImpl._request(ObjectImpl.java:431) at com.ibm.WsnOptimizedNaming._NamingContextStub.resolve(_NamingContextStub.java:1282) at com.sun.jndi.cosnaming.CNCtx.callResolve(CNCtx.java:440) at com.sun.jndi.cosnaming.CNCtx.lookup(CNCtx.java:492) at com.sun.jndi.cosnaming.CNCtx.lookup(CNCtx.java:470) at javax.naming.InitialContext.lookup(InitialContext.java:354) at
I have tried different settings in hosts file, but didn't get any success. Any help will be greatly appreciated. Will I require to change anything in various policy files on machine with WebSphere 5.0 installation.
Thanks in advance
Rajeev
 
Ranch Hand
Posts: 264
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
First of all, WepShere 5.o uses JRE 1.3. There is a big difference in CORBA support between JDK1.3 and JDK1.4.
I guess you may have to bring the IDL associated with your EJB to your client machine and generate client code from there. Make sure use idlj -oldImplBase to generate JDK1.3 compliant code base.
 
author
Posts: 3892
5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Look in the InfoCenter about the "Pluggable" application client. You must install the WebSphere JAR files that make that up in order to use a client on another machine with another JVM.
Kyle
 
Politics n. Poly "many" + ticks "blood sucking insects". Tiny ad:
Gift giving made easy with the permaculture playing cards
https://coderanch.com/t/777758/Gift-giving-easy-permaculture-playing
reply
    Bookmark Topic Watch Topic
  • New Topic