Richard S. Hall wrote

> Martin Cornelius wrote
> AFAIKS, the only solution to this problem is to make jacorb 'self-
> contained', i.e., put a copy of javax.rmi.CORBA.Stub into the jacorb
> bundle. Of course, there may be other classes that are missing...
> >
> 
> Yep. Sucks.

Just putting javax.rmi.CORBA.Stub into the jacorb bundle is no solution, 
because javax.rmi.CORBA.Stub itself depends on tons of sun.* and com.sun* 
classes 8-(

However, there is a simple solution, albeit it requires rebuilding jacorb: Just 
specify -Dno-rmi=true when building jacorb. This results in a jacorb.jar, where 
org.jacorb.orb.Reference directly extends org.omg.CORBA.portable.ObjectImpl. 
The drawback of this might be, that the resulting jacorb does not support 
rmi-iiop, but that's not needed for 'normal' CORBA communication.

After bundelization of the jacorb.jar with bnd, the resulting bundle still has 
a dependeny to package javax.rmi.CORBA, but this one doesn't harm. It is due to 
usage of class javax.rmi.CORBA.ClassDesc in org.jacorb.orb.CDROutputStream. As 
javax.rmi.CORBA.ClassDesc has no dependencies into org.omg.*, this is OK.

Additionally, I ripped package org.omg.SendingContext out of the runtime 
(rt.jar) and added it to jacorb.jar. This might be needed because class 
org.omg.SendingContext.RunTime also depends on org.omg.CORBA.Object. 

With the bundle produced from this jacorb.jar (using bnd), i was able to run 
jacorb and an application that uses it as felix bundles - without having jacorb 
on the classpath. Hurrayyyyy, eventually this cost me about 2 weeks of work !

If anybody is still interested in a detailed HOWTO use JacORB-2.3.1 as felix 
bundle, just ask...

regards, Martin
_______________________________________________________________

 
************************************************
The information contained in, or attached to, this e-mail, may contain 
confidential information and is intended solely for the use of the individual 
or entity to whom they are addressed and may be subject to legal privilege.  If 
you have received this e-mail in error you should notify the sender immediately 
by reply e-mail, delete the message from your system and notify your system 
manager.  Please do not copy it for any purpose, or disclose its contents to 
any other person.  The views or opinions presented in this e-mail are solely 
those of the author and do not necessarily represent those of the company.  The 
recipient should check this e-mail and any attachments for the presence of 
viruses.  The company accepts no liability for any damage caused, directly or 
indirectly, by any virus transmitted in this email.
************************************************

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@felix.apache.org
For additional commands, e-mail: users-h...@felix.apache.org

Reply via email to