Win a copy of Learn Spring Security (video course) this week in the Spring forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

JNI Over ATM Network

 
Siva Jagadeesan
Ranch Hand
Posts: 160
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi everybody :
I am workin in a client server application over an ATM network using the Winsock 2 .
Is there any way i can use the .dll file and write my own java class which will interact with the ATM network .
Even if i use the JNI how can i keep track of the socket which i created with C++(winsock) ... Is there anyway i can have a reference to the C++ object (socket object which i created )
Pls let me know
I really want to use java

Thanx
Siva
 
Jim Baiter
Ranch Hand
Posts: 532
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You can write a dll that acts as a bridge between your Java app and the C++ dll. You can get a reference to your JNI class and call the native methods which are implemented in this new dll. There's a reasonable coverage of JNI in the Java Tutorial at http://java.sun.com/tutorial.
 
Siva Jagadeesan
Ranch Hand
Posts: 160
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Jim Baiter:
You can write a dll that acts as a bridge between your Java app and the C++ dll. You can get a reference to your JNI class and call the native methods which are implemented in this new dll. There's a reasonable coverage of JNI in the Java Tutorial at http://java.sun.com/tutorial.

Dear Jim :
Thanx for replying to me . But I want to know whether i can have a C++ object SOCKET in my java program so i can use the native methods call on it . So i will have only one SOCKET object in my program .
Pls let me know if i am now clear
Thank u
Siva
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic