• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

New Java, old CORBA

 
Saloon Keeper
Posts: 27705
196
Android Eclipse IDE Tomcat Server Redhat Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I've got an app that was written before CORBA was integrated into the JDK (Java 1.18). It uses the Visigenic vbroker CORBA kit, but some of the methods in their org.omg classes didn't make it into standard Java.

What's the easiest way to get this ancient code to operate in a Java 1.5 or 1.6 JVM? I don't have a copy of Visigenics conversion tools.
 
Bartender
Posts: 1638
IntelliJ IDE MySQL Database Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Tim:
What's the easiest way to get this ancient code to operate in a Java 1.5 or 1.6 JVM?


Will I be wrong in assuming that java 1.5 will be backward compatible with 1.18(There will be a lot of warnings probably, but it must work)

If the package is the same then probably, you have to go with a custom classloader searching its own classpath first before going to the parent.

P.S.: I have not worked on Visigenic vbroker CORBA kit and the above is just considering that it is any other third party library.
 
Tim Holloway
Saloon Keeper
Posts: 27705
196
Android Eclipse IDE Tomcat Server Redhat Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I can use compiler source level 1.3 and get by. My problem is that the org.omg classes defined by Sun don't contain some of the methods that the org.omg classes defined by Visigenic do.

Since Java 1.2, the org.omg package has been supplied integral to the JVM, so I'd need to either convert the Visigenic generated code or force an override to the JVM internal packages
 
Nitesh Kant
Bartender
Posts: 1638
IntelliJ IDE MySQL Database Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Tim:
I'd need to either convert the Visigenic generated code or force an override to the JVM internal packages



I think forcing an override of the JVM internal packages can be done by using a custom class loader. Sometime back i wrote the following:



This classloader if created with selfFirst true, will load the classes using its own classpath first.
It may be of help to you.
 
I think she's lovely. It's this tiny ad that called her crazy:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic