• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Tim Cooke
  • Campbell Ritchie
  • Ron McLeod
  • Junilu Lacar
  • Liutauras Vilda
Sheriffs:
  • Paul Clapham
  • Jeanne Boyarsky
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Stephan van Hulst
  • Piet Souris
  • Carey Brown
Bartenders:
  • Jesse Duncan
  • Frits Walraven
  • Mikalai Zaikin

Unable to invoke the message handlers of a webservice client from an EJB project

 
Ranch Hand
Posts: 69
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,

I am developing a webservice client. The request message to be sent to the webservice is received via MQ using JMS.
I have two projects:
1. A web project in which my webservice client is defined. Here I have the proxy and stub classes generated from the WSDL file. My message handlers are also defined in this project and configured properly in the webservicecleint.xml file.

2. An EJB project for the MDB. The MDB receives the input message and coverts this into a SOAP message to be sent to the webservice. In this project I instantiate the proxy class and call the remote method.

At runtime, the message handlers configured in the webproject are not being invoked.
However, if I instantiate the proxy class in the web project, the handlers ar invoked.

Can any one please expalin me why this is occuring and how I can possibly resolve this?

Thanks in advance.

Regards,
Anup
 
Anup Bansal
Ranch Hand
Posts: 69
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,

At last was able to figure out the problem.
For those who are interested do the following:

1. Include the webservicescleint.xml into the META-INF folder of the EJB project. Change references from WEB-INF to META-INF where ever required in the xml file.

2.Add the following tag in the webservicesclient.xml:
<webservicesclient>
<component-scoped-refs>
<component-name>name of the ejb element</component-name>
<service-ref id="XXXX">
:
:
</component-scoped-refs>

Regards,
Anup
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic