• 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Junilu Lacar
  • Jeanne Boyarsky
  • Bear Bibeault
Sheriffs:
  • Knute Snortum
  • Tim Cooke
  • Devaka Cooray
Saloon Keepers:
  • Ron McLeod
  • Stephan van Hulst
  • Tim Moores
  • Tim Holloway
  • Carey Brown
Bartenders:
  • Piet Souris
  • Frits Walraven
  • Ganesh Patekar

Calling Java

 
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • 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
  • 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
  • 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
 
When it is used for evil, then watch out! When it is used for good, then things are much nicer. Like this tiny ad:
Java file APIs (DOC, XLS, PDF, and many more)
https://products.aspose.com/total/java
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!