Re: Accessing corba from geronimo [SOLVED]

2008-10-24 Thread Fredrik Jonson
Hello, I poked around a bit more after Rick and Juergen's followups, and looked in the yoko source, especially the InitialServiceManager, to see what it did. Now, I have returned to my original code, but with a subtle difference, I replaced the property: org.omg.CORBA.ORBInitRef.NameService wi

Re: Accessing corba from geronimo [SOLVED]

2008-10-22 Thread Rick McGuire
A better approach would be to use corbaname: URL format to look up the object. This tells the ORB the location of the naming service providing the object reference and which one you want. I believe the following would give you want you want: corbaname:10.11.12.13:4003/NameService#org/exam

Re: Accessing corba from geronimo

2008-10-22 Thread Juergen Weber
w ServletException(e); } PrintWriter writer = resp.getWriter(); writer.write("doGet done. nc = " + nc + " orb2=" + orb2); --- output: doGet done. nc = org.omg.CosNaming._NamingContextExtStub:[EMAIL PROTECTED] [EMAIL PROTECTED] -- View this message in context

Re: Accessing corba from geronimo

2008-10-22 Thread Fredrik Jonson
In <[EMAIL PROTECTED]> Juergen Weber wrote: > > I must admit that it's still a bit magic to me, I mean why that > > change made a difference in the first place. > > Wait, this is only a start, basically you hard-wired the server > address now. Yes, I read[0] that the server host and port is i

Re: Accessing corba from geronimo [SOLVED]

2008-10-22 Thread Juergen Weber
#x27;s the > whole story? > > Wait, this is only a start, basically you hard-wired the server address now. The nameservice variant is much better, but you have to find out, how the Geronimo naming service works. You might try (I haven't) if this works: http://www.ibm.com/develope

Re: Accessing corba from geronimo [SOLVED]

2008-10-22 Thread Fredrik Jonson
Juergen Weber wrote: > Try to use an IOR first(object_to_string() and friends) Thank you! I now have working code! I used the legacy code - that uses the default sun ORB - to retrieve the IOR of the object I needed. After that it was as simple as replacing: > > org.omg.CORBA.Object ns = > >

Re: Accessing corba from geronimo

2008-10-21 Thread Juergen Weber
No solution, but hints: - try to use an IOR first (object_to_string() and friends) - try to use JacORB from within Geronimo (but then JacORB threads are not under control of Geronimo), this should work with Geronimo, too: http://developers.sun.com/appserver/reference/techart/orb.html On Tue, Oct

Accessing corba from geronimo

2008-10-21 Thread Fredrik Jonson
Hi, I'm trying to port a non-jee app to a EAR and get it running in Geronimo (2.1.3). It has been a lot of fun, although I'm very much a JEE-newbie, so it's a lot to grasp all at once... ;) Now, I have one component that needs to make a remote corba request to a non-jee corba service. In my legac