Hello!

How can I connect a CORBA server from a jBoss j2ee application?

I tried to install a JavaBean with CORBA connect as MBean service in jBoss.
First I wrote a Mbean
which register a simple object and I can work with this object in my
Sessionbean.

A standalone application which connects to the CORBA server works fine
with the same code as the bean. Now I want connect the CORBA server while
starting the
MBean but this does not work.

1)
orb = ORB.int(stringarray, props);

returns an instance of org.omg.ORB, but 

  obj = orb.string_to_object(ior)

causes a NullpointerException.


2)
orb = ORB.int();

returns also an instance of org.omg.ORB, but 

  obj = orb.string_to_object(ior)

causes a security exception.

My server.policy file have only one entry:
CodeBase <All>          permission java.security.AllPermission

So the server should accept the network access.


Who does thow this exception? How can I avoid this?
Maybe there is a better way integrating CORBA apps? 

Andreas 


Reply via email to