Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
The moose likes Web Services and the fly likes Handler Chain not working for JBoss 5.1 but fine for JBoss 6.0 Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Web Services
Bookmark "Handler Chain not working for JBoss 5.1 but fine for JBoss 6.0" Watch "Handler Chain not working for JBoss 5.1 but fine for JBoss 6.0" New topic
Author

Handler Chain not working for JBoss 5.1 but fine for JBoss 6.0

Azrael Noor
Ranch Hand

Joined: Jul 29, 2010
Posts: 382
I need to shift back to JBoss 5.1 from JBoss 6.0, as it is client requirement,

I have made a Web Service Client and Embedded Handler Chain for getting Request and Response data as it is to be inserted in Database.

Handler Chain is working fine for JBoss 6.0 but it is not working at all for JBoss 5.1. It is also not showing any error too. Using JRE 6

Following is code, please show some directions, what i should do or what should not:

Client Class:


ChainHandle.xml

<handler-chains xmlns="http://java.sun.com/xml/ns/javaee"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://java.sun.com/xml/ns/javaee">
<handler-chain>
<handler>
<handler-name>WebServiceResponseHandler</handler-name>
<handler-class>eMavenInbound.WebServiceResponseHandler</handler-class>
</handler>
</handler-chain>
</handler-chains>

SOAP HANDLER CLASS:






Regards
Azrael Noor
Azrael Noor
Ranch Hand

Joined: Jul 29, 2010
Posts: 382
whewwwwwwwww

I have done following which helped to resolved this and Handler Chain worked n JBoss 5.1. My problem looks solved, but is this method appropriate?

Removed Handler Annotation from the service wich extends Jax WS Service class and use folloing at calling end

Vijitha Kumara
Bartender

Joined: Mar 24, 2008
Posts: 3816

There might be differences the way it handles it in two major versions (due to many reasons). You may check the appropriate documentation.


SCJP 5 | SCWCD 5
[How to ask questions] [Twitter]
 
 
subject: Handler Chain not working for JBoss 5.1 but fine for JBoss 6.0
 
Similar Threads
Order of SOAP Handler call in JAX-WS
NullPointerException Trying to Get RemoteIP (why?)
JAX-RPC web service soap message handler issues
"OR operator" Design and Readability
Convert SOAP response to SOAP XmL string using JAX WS