[prev in list] [next in list] [prev in thread] [next in thread]
List: openorb-devel
Subject: [openorb-devel] Re: [openorb-commits] CVS: OpenORB/src/main/org/openorb/orb/config
From: Joncheng Kuo <ckuo01 () syr ! edu>
Date: 2004-01-15 17:44:34
Message-ID: 4006D182.3020801 () syr ! edu
[Download RAW message or body]
I'm sorry that I didn't get to see the description of bug #720399 before
I posted my previous email. No more questions.
Joncheng
Joncheng Kuo wrote:
> I apologize that I don't understand the class loader stuff very much.
> Can someone tell me why the OpenORBLoader should check the ORB
> singleton loaded by the system class loader in this patch? Thank you.
>
> Joncheng
>
> Michael Rumpf wrote:
>
>> Update of /cvsroot/openorb/OpenORB/src/main/org/openorb/orb/config
>> In directory
>> sc8-pr-cvs1:/tmp/cvs-serv19071/src/main/org/openorb/orb/config
>>
>> Modified Files:
>> OpenORBLoader.java Log Message:
>> Added patch for bug #720399 provided by Chas Honton.
>> Added patch that fixes a problem with fragmented messages.
>>
>>
>> Index: OpenORBLoader.java
>> ===================================================================
>> RCS file:
>> /cvsroot/openorb/OpenORB/src/main/org/openorb/orb/config/OpenORBLoader.java,v
>>
>> retrieving revision 1.13
>> retrieving revision 1.14
>> diff -u -d -r1.13 -r1.14
>> --- OpenORBLoader.java 13 Nov 2003 12:10:08 -0000 1.13
>> +++ OpenORBLoader.java 14 Jan 2004 19:51:29 -0000 1.14
>> @@ -100,15 +100,25 @@
>> + "set system properties (" + ORBSINGLETON_CLASSKEY
>> + ")." );
>> }
>>
>> - org.omg.CORBA.ORB singleton = org.omg.CORBA.ORB.init();
>> + final Thread currentThread = Thread.currentThread();
>> + final java.lang.ClassLoader save =
>> currentThread.getContextClassLoader();
>> + currentThread.setContextClassLoader(
>> ClassLoader.getSystemClassLoader() );
>> + try
>> + {
>> + org.omg.CORBA.ORB singleton = org.omg.CORBA.ORB.init();
>>
>> - if ( !( singleton instanceof
>> org.openorb.orb.core.ORBSingleton ) )
>> + if ( !( singleton instanceof
>> org.openorb.orb.core.ORBSingleton ) )
>> + {
>> + throw new org.omg.CORBA.INITIALIZE(
>> + "Unable to complete init orb singleton is not
>> openorb singleton.\n"
>> + + "Please use: System.setProperty(\"" +
>> ORBSINGLETON_CLASSKEY
>> + + "\", \"" + DEFAULT_ORBSINGLETON + "\");\n"
>> + + "As the first statement in your application." );
>> + }
>> + }
>> + finally
>> {
>> - throw new org.omg.CORBA.INITIALIZE(
>> - "Unable to complete init orb singleton is not openorb
>> singleton.\n"
>> - + "Please use: System.setProperty(\"" +
>> ORBSINGLETON_CLASSKEY
>> - + "\", \"" + DEFAULT_ORBSINGLETON + "\");\n"
>> - + "As the first statement in your application." );
>> + currentThread.setContextClassLoader( save );
>> }
>>
>> //
>>
>>
>>
>> -------------------------------------------------------
>> This SF.net email is sponsored by: Perforce Software.
>> Perforce is the Fast Software Configuration Management System offering
>> advanced branching capabilities and atomic changes on 50+ platforms.
>> Free Eval! http://www.perforce.com/perforce/loadprog.html
>> _______________________________________________
>> openorb-commits mailing list
>> openorb-commits@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/openorb-commits
>>
>>
>>
>>
>
>
>
>
-------------------------------------------------------
The SF.Net email is sponsored by EclipseCon 2004
Premiere Conference on Open Tools Development and Integration
See the breadth of Eclipse activity. February 3-5 in Anaheim, CA.
http://www.eclipsecon.org/osdn
_______________________________________________
openorb-devel mailing list
openorb-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/openorb-devel
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic