Hi,
In our application, we want to call some C++ exe file by passing few input parameters from EJB. Is it possible to do that? If yes, please guide me to achieve the same.
Thank you in advance.
Regards,
karthik.
-
Want to Call C++ exe from EJB. (2 messages)
- Posted by: Karthikeyan T
- Posted on: July 30 2001 05:48 EDT
Threaded Messages (2)
- Want to Call C++ exe from EJB. by int13h int13h on August 03 2001 03:41 EDT
- Want to Call C++ exe from EJB. by Bharat Kumar on August 24 2001 17:23 EDT
-
Want to Call C++ exe from EJB.[ Go to top ]
- Posted by: int13h int13h
- Posted on: August 03 2001 03:41 EDT
- in response to Karthikeyan T
could try:
a) stuff all your c++ *.exe functionalities in a dll and call it from ejb class using JNI.
b) build a c++ .dll with a function which calls your .exe with needed parameters and then you can call that .dll function from your ejb class using JNI.
All this stuff should work on unix too mutatis mutandis (dll->unix lib)
-
Want to Call C++ exe from EJB.[ Go to top ]
- Posted by: Bharat Kumar
- Posted on: August 24 2001 17:23 EDT
- in response to int13h int13h
Enterprise beans make use of the services provided by the EJB container, such as life-cycle management. To avoid conflicts with these services, enterprise beans are restricted from performing certain operations:
1.Managing or synchronizing threads
2.Accessing files or directories with the java.io package
3.Using AWT functionality to display information or to accept information from a keyboard
4.Listening on a socket, accepting connections on a socket, or using a socket for multicast
5.Setting a socket factory used by ServerSocket, Socket, or the stream handler factory used by the URL class
6.Loading a native library.