Skip to main content
 
developerworks > Community >  Dashboard > WebSphere eXtreme Scale V6.1 User Guide > Reference > Using a non-IBM JDK or JRE with ObjectGrid
developerWorks
Log In   View a printable version of the current page.
Overview New to Forums Wikis
Using a non-IBM JDK or JRE with ObjectGrid
Added by bnewport, last edited by Chris.D.Johnson on Apr 24, 2009  (view change)
Labels: 
(None)

Getting Started Examples Reference API documentation
See the WebSphere eXtreme Scale Wiki for links to up-to-date eXtreme Scale Version 7.x documentation.

If you log in with your developerWorks ID, you can leave comments and feedback for the development team.

About this task

This task describes the steps required to use a non-IBM Java SE Development Kit (JDK) or non-IBM Java SE Runtime Environment (JRE) with ObjectGrid. These steps apply when ObjectGrid is deployed separately from WebSphere Application Server and using a non-IBM JDK.

Before you begin

This task applies to ObjectGrid version 6.1.0.5 or later and non-IBM JDKs version 5 or later. If running a previous version of ObjectGrid or a non-IBM JDK version 1.4.2, see Using a non-IBM 1.4.2 JDK or ObjectGrid version 6.1.0.4.

ObjectGrid uses the Object Request Broker (ORB) for communicating between processes. The IBM Java ORB is included with ObjectGrid and is the recommended ORB to use when using a non-IBM JDK. If using an IBM JDK or a JDK supplied with WebSphere Application Server, the ORB is included inside the JDK. Either the ORB supplied with ObjectGrid or the IBM ORB supplied with the IBM or WebSphere Application Server JDK may be used. Any problems that are encountered with third-party ORBs must be reproducible with the IBM Java ORB and compatible JDK prior to contacting support. ObjectGrid does not support the Sun ORB supplied with Sun JDKs.

ObjectGrid supports JDKs from most vendors. However, it is recommended to use a JDK that is supplied with WebSphere Application Server 6.1 or later. The JDKs that are supplied with WebSphere Application Server have been tested more comprehensively than other JDKs.

Steps for this task

These steps just specify an endorsed directory for the JVM. To use the ObjectGrid supplied IBM Java ORB when using standard ObjectGrid scripts:

  1. Modify the setupCmdLine file to enable the ORB:
  2. Remove the comment prefix for the line that sets the OBJECTGRID_ENDORSED_DIRS variable.
  3. Save the file

To use the ObjectGrid supplied IBM Java ORB from a custom script:

  1. Add the following system property to the custom script that invokes the java command:
    -Djava.endorsed.dirs=objectgridRoot/lib/endorsed

If running a previous version of ObjectGrid or a non-IBM JDK version 1.4.2, see Using a non-IBM 1.4.2 JDK or ObjectGrid version 6.1.0.4.

If applications are using the ORB directly, see Using the ORB within an ObjectGrid process.

Results

ObjectGrid applications will use the IBM Java ORB that is included the objectgridRoot/lib/endorsed directory.

Wiki Disclaimer and License
© Copyright IBM Corporation 2007,2010. All Rights Reserved.
Docs Using a non-IBM 1.4.2 JDK or ObjectGrid version 6.1.0.4 (WebSphere eXtreme Scale V6.1 User Guide)
Docs Using the ORB within an ObjectGrid process (WebSphere eXtreme Scale V6.1 User Guide)

Aren't the lines for the orb.properties containing org.omg.PortableInterceptor.ORBInitializerClass=com.ibm.ws.objectgrid.corba.ObjectGridInitializer
meant to be
org.omg.PortableInterceptor.ORBInitializerClass.com.ibm.ws.objectgrid.corba.ObjectGridInitializer
(with a dot instead of =)

I was getting an error with the former.
Interestingly I was getting these errors with the latest install of WAS ND v6.1.0.17, (WVE v6.1.0.3), JDK 5 SR7 - wasn't expecting that

Posted by JonMarshall at Aug 20, 2008 07:05 | Permalink

Yes, you're correct. Equals are used for properties and dots are used for plugins. It should read correctly now.

Posted by Chris.D.Johnson at Aug 20, 2008 11:57 | Permalink

With reference to the last comments, the article still shows these lines with equals sign -
org.omg.CORBA.ORBClass=com.ibm.CORBA.iiop.ORB
org.omg.CORBA.ORBSingletonClass=com.ibm.rmi.corba.ORBSingleton

...do these need to be changed like the third one, with a dot instead of equals? Are they properties or plugins?

Posted by uskartik at Dec 01, 2008 11:08 | Permalink

To clarify: ORB properties use the equals sign, just like any other property. ORB plugins do not.

Posted by Chris.D.Johnson at Dec 01, 2008 11:34 | Permalink