How to get Orb type/version after initiation

This is a discussion on How to get Orb type/version after initiation within the Object forums in Theory and Concepts category; Hello all simple question i guess , im using several orbs in my projects sometimes jacorb sometime java buildin orb and sometimes visibroker now i like to be sure that the orb i init in ORB.init() is actually the orb i meant , so is there any way to get the ORB version / type ?...

Go Back   Application Development Forum > Theory and Concepts > Object

Object Mix

Register FAQ Calendar Search Today's Posts Mark Forums Read
  #1  
Old 08-13-2008, 07:19 AM
Meir
Guest
 
Default How to get Orb type/version after initiation

Hello all
simple question i guess , im using several orbs in my projects
sometimes jacorb sometime java buildin orb and sometimes visibroker
now i like to be sure that the orb i init in ORB.init() is actually
the orb i meant , so is there any way to get the ORB version / type ?
Reply With Quote
  #2  
Old 08-19-2008, 10:52 AM
Martin Murphy
Guest
 
Default Re: How to get Orb type/version after initiation

On Aug 13, 12:19*pm, Meir <meiry...@gmail.com> wrote:
> Hello all
> simple question i guess , im using several orbs in my projects
> sometimes jacorb sometime java buildin orb and sometimes visibroker
> now i like to be sure that the orb i init in ORB.init() is actually
> the orb i meant , so is there any way to get the ORB version / type ?


You could just use a simple Java approach to this:

if (global_orb instanceof com.iona.corba.art.artimpl.ORBImpl) {
System.out.println("Orbix ORB");
}
else {
System.out.println("ORB = " + global_orb.getClass().getName());
}
Reply With Quote
Reply


Thread Tools
Display Modes


All times are GMT -5. The time now is 03:52 AM.


Powered by vBulletin® Version 3.7.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0
vB Ad Management by =RedTyger=

In an effort to better serve ads to our visitors, cookies are used on objectmix.com. For more information, check out our Privacy Policy.