• 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

Calling Java

 
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi I have a program that does certain validations and returns valid or invalid status. Currently I use CORBA to call this component from anywhere, however I feel that there must be a much simpler method than this. I need to deploy this Jar and have it called from basically any language/client with the least integration/setup hassle possible. I've thought about standard sockets and IO Byte reading, even HTTP. There must be a simpler way. One common factor is that almost every client will be windows based.
I need some lateral alternatives please.
ed
 
Greenhorn
Posts: 19
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
If you are familiar with working with CORBA the easiest way is probably to create an RMI/IIOP stub for it and call it that way. IIOP is Java's interface to CORBA. Google for "Java RMI/IIOP Tutorial" and you should come up with some good step throughs.
The easiest way by far though is to use Apache Axis ( http://xml.apache.org/axis ) and make it a SOAP service. RMI/IIOP is easy in Java, but so are SOAP services with Axis. The feasibility of this depends a lot on what exactly you are doing, and how easy making a SOAP client from your non-Java app is.
 
ed de jongh
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thanks Brian, the IIOP only helps if I have Java clients, which is not necessarily the case, so that route is unfortunately not an option. I thought about an Apache server, but that just makes deployment that much more of an issue for the non tech end user.
The point is I want to make this as easy as possible for anyone to call from any language without the use of CORBA, SOAP etc. as it makes an essentially simple product more complex from the clients perspective. I think I'm going to just go straight Sockets, (readBytes()) on this one as there doesn't seem to be an easier/more generic way for any client to connect without some 3rd party product.
Thanks again
ed
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic