Hi all... I am stuck with some  technical  problem and need some help to
get out of it. I am basically trying to call a CORBA  object from my
servlet i.e in simple words I am trying to establish Servlet-CORBA
connection.

I have made a succesful (have tested it) connection to CORBA object
using JNI(Java Native Interface). Enclosed is the code of the Java
program from which I am calling CORBA object implemented in C++.

1. public class err {
2.        static {System.loadLibrary("clib");}
3.        public static native String print();
4.        public static void main(String args[]) {
5.            System.out.println(print());}}

I have placed clib.dll in the same file as Java program, it works well.
On running this file it gives the required output.
Now I designed a servlet and simply put thsese lines in that servlet at
appropriate places. I am using ApacheJServ1.3.6. The servlet takes a
very long time for execution and then returns a message that "This
document contained no dataTry again later or contact the server's
administrator". I have also placed "clib.dll" dll file in the servlets
directory, but it is not working. I have also even tried experimenting
with the placement of the dll file, but no success. Can somebody guide
me where I am going wrong??? How should I implement my servlet to call
CORBA object ???

Thanks in advance ,

Vaibhav

===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
FAQs on JSP can be found at:
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html

Reply via email to