axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Roumeliotis, Pete" <pete_roumelio...@md.northgrum.com>
Subject RE: Axis with Web Service that uses JNI
Date Fri, 05 Apr 2002 19:09:42 GMT
I'll just reply to my own mail.  Upon re-reading your message I noticed this
statement:

 The test client that I use to test the Web Service, TestMyService.java     
 loads the shared library (MyClass.dll) fine, and I have the web service    
 invoke calls inside the client. 

I'm not sure of exactly what you are trying to do here , but doesn't the
soap server have to load the shared library, not the client?

Just a thought,
Pete R.

-----Original Message-----
From: Roumeliotis, Pete 
Sent: Friday, April 05, 2002 2:05 PM
To: 'axis-dev@xml.apache.org'
Subject: RE: Axis with Web Service that uses JNI


I have no experience with MFC, but we have successfully implemented soap
services that utilize JNI on the Sun with Tomcat 4.0.1 and 4.0.3. This was
done with both Axis and Apache Soap 2.2.

Don't know of any tricks, other than making sure your soap service class can
find the library file.

Pete R.

-----Original Message-----
From: mamoun.hirzalla@us.pwcglobal.com
[mailto:mamoun.hirzalla@us.pwcglobal.com]
Sent: Friday, April 05, 2002 10:13 AM
To: axis-dev@xml.apache.org
Subject: Axis with Web Service that uses JNI


Hello,
                                                                            
 I have an MFC C++ class that I wrapped using Java Native Interfaces, e.g.  
 MyClass.cpp. I have a Java class that wraps the C++ code using JNI, called 
 MyClass.java. The JNI code works fine. The shared library used is called   
 MyClass.dll                                                                
                                                                            
                                                                            
 Now, I deploy MyClass.java as a web service using Axis beta1 and TomCat    
 4.0.1 using WSDD. When I invoke any native method in MyClass.java, I get   
 InvocationTargetException. I tried to add some local method to             
 MyClass.java and it works fine. This implies that the web service is       
 deployed fine and can be invoked for the methods that are implemented      
 inside the java class. It also means that there is a problem invoking the  
 native methods that are referenced in the web service.                     
                                                                            
                                                                            
 The test client that I use to test the Web Service, TestMyService.java     
 loads the shared library (MyClass.dll) fine, and I have the web service    
 invoke calls inside the client.                                            
                                                                            
                                                                            
 The question that I have: Does Axis and TomCat support deploying web       
 services that use JNI?                                                     
                                                                            
                                                                            
 If yes, is there any special trick I need to know.                         
                                                                            
                                                                            
 Environment: Win2000, jdk1.3.1, Tomcat 4.0.1, Axis-beta1, MSVC++6.0        
                                                                            
                                                                            
 Thanks,                                                                    
                                                                            
                                                                            
 Mamoun Hirzalla                                                            
                                                                            



----------------------------------------------------------------
The information transmitted is intended only for the person or entity to
which it is addressed and may contain confidential and/or privileged
material.  Any review, retransmission, dissemination or other use of, or
taking of any action in reliance upon, this information by persons or
entities other than the intended recipient is prohibited.   If you received
this in error, please contact the sender and delete the material from any
computer.

Mime
View raw message