Hi Andreas,
[...]
> 1)
> orb = ORB.int(stringarray, props);
>
> returns an instance of org.omg.ORB, but
>
It should return a concrete ORB class that implements abstract methods defined in the
abstract class org.omg.CORBA.ORB... The default implementation shipped with JDK1.2.x
and JDK1.3.x are rather crappy ORB-implementations... Read the JavaDoc for
org.omg.CORBA.ORB for detailed information on how to configure which implementation
class that should be used (the configuration pattern resembles the one used for
configuring JNDI.)
> 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.
>
I guess that this is the expected behavior as ORB.init() without any parameters will
return an ORBSingelton. I think that your are not allowed to invoke string_to_object()
on an ORBSingelton.
/Per