Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Architecture advice

Status
Not open for further replies.
May 13, 2002
75
GB
Hiya,

I've been looking at some work on a legacy system, currently there are some C++ executables on a Linux server and a Jave GUI on a NT desktop talks to them by creating a JDBC connection to a Oracle database on the Linux box then calling the external functions from within the database using pipetalk protocols. I've found that this is very flaky but i still need to talk to the c++ files because they are using third party libraries to do stuff.

So, i need some advice about how to move this into more of a java world.

Ideas:
Use create a class using JNI to communicate with the C++ exe's

Then either run a apps server (JBoss /Orion) etc on the Linux box and set up some EJB's(would rather not do this becuase it seems overkill)
OR
Can i access the JNI class i have created using something like RMI (i'm afraid i have no direct experience of RMI) or set up a TCP server and client (we running entirely within an internal intranet) - i guess this would be easier / use less resource.

Ideas / comments ? Glad to hear anything you have to say.

Thanks

Alistair [monkey]
 
i don't know about jBoss stuff.

but I currently use JNI to talk to the C library/tasks. I never have anyu problems. The good part about it is; you don't have to rewrite the C++ codes in java. C and C++ will prevail - so it's a fine thing that Java allows us to interface to the other languages using JNI. I like the fact that this action slices down our development cost thus increases project bonuses$$$

I currently use named-pipe to talk to the C-routine. So I am sure you can checkout java.sun.com website to find RMI and TCP/IP related items.

good luck

~za~
You can't bring back a dead thread!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top