on 10-03-2006 11:38 AM
Hello,
I am trying to implement a synchronous XI-generated java proxy example for the FlightAvailabilityOut scenario as-per the demo-guide:
I have created the EJB from the generated proxy code, and I have also created a WAR project containing a servlet to call the EJB. Both the EJB (JAR) and WAR files are then packaged into a single EAR project and deployed to the J2EE engine successfully from within the NWDS IDE.
I have added the following external JARs to the build paths of both the EJB and the WAR projects:
com.sap.aii.proxy.xiruntime
com.sap.aii.messaging.runtime
com.sap.xi.util.misc
com.sap.guid
I have also added weak references to these libraries in the application-j2ee-engine.xml of the EAR project.
When I run the servlet, the EJB object is created and the remote interface is returned successfully, however when I run the synchronous method (flightSeatAvailabilityQueryOut) on the remote interface, I receive the following exception:
"I/O operation failed : java.lang.ClassNotFoundException: com.sap.aii.af.ra.ms.api.DeliveryException Found in negative cache"
This issue only seems to occur when calling synchronous methods, I have implemented asynchronous proxies exactly the same without encountering any issues.
Seems as I am only doing a proof-of-concept at this point, I am currently deploying the EAR file to the J2EE engine of the integration server itself, this is because this is the only NW2004s server that we have in our development environment that is currently running the Java Adapter Framework. The demo-guide advises that you should use a separate install of the adapter framework for deploying bespoke proxies, could this be what is causing the negative-cache issue with my synchronous calls?
Any help would be greatly appreciated.
Thanks in advance,
Paul.
Thanks for the help, I looked at the adapter engine in the message monitor of the RWB (I had to make some changes according to OSS Note 928862 to get this working), and realised that the messages were making it to the Integration Server after all. The 'negative cache' message was just a red-herring, the problem was caused by some invalid settings against the business service in the Integration Directory.
Thanks for pointing me in the right direction.
Paul.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
When you have a sync call, you should also check the message monitor of the adapter framework for errors.
Regards
Stefan
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
95 | |
13 | |
13 | |
11 | |
11 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.