-
-
2. Re: endpoint handler
dave2 Apr 10, 2006 7:16 AM (in response to dave2)I tried your suggestion. I now have 3 handlers in my chain. That is, two from the standard-jbossws-endpoint-config.xml and one from my webservices.xml.
However, none of them are getting their methods invoked at runtime.
My webservices.xml now reads:
<port-component-name>BankWizardServiceEndpoint</port-component-name>
<wsdl-port>bupa0:BankWizardServiceEndpointPort</wsdl-port>
<service-endpoint-interface>com.whatever.ejb.BankWizardServiceEndpoint</service-endpoint-interface>
<service-impl-bean>
<ejb-link>BankWizardServiceEndpoint</ejb-link>
</service-impl-bean>
<handler-name>JAXRPCExceptionHandler</handler-name>
<handler-class>com.whatever.ejb.JAXRPCServerExceptionHandler</handler-class>
</port-component> -
3. Re: endpoint handler
dave2 Apr 10, 2006 9:00 AM (in response to dave2)I changed to JBoss-4.0.4-RC2 and the handler's handleRequest method is being invoked.
Sadly handleFault() isn't, which is the one I wanted to be invoked.
Posting a bug with JBossws.... -
4. Re: endpoint handler
kpve1 Jul 12, 2006 6:30 PM (in response to dave2)I am experiencing a similar behavior with 4.04.GA. Has anyone else run into this? My handler's init method is called, but the handleRequest method is not.
Thanks,
Ken -
5. Re: endpoint handler
romeufigueira Oct 20, 2006 12:21 PM (in response to dave2)I'm also experiencing a similar behaviour under JBoss AS 4.0.4
I've tried all kind of handlers, mainly Handler and Generic Handler.
None of them is being triggered, as I'm placing a log call under each one of them and checking the server log for info but none of them shows up. -
6. Re: endpoint handler
jason.greene Oct 26, 2006 7:40 PM (in response to dave2)Have you tried jbossws-1.0.3.GA (this installs onto 4.0.4)?
If you guys find a problem, and can produce a small test case that shows it, file a jira issue and we will take a look at it. (jira.jboss.com)
Thanks,
-Jason -
7. Re: endpoint handler
romeufigueira Oct 30, 2006 4:51 AM (in response to dave2)I've solved this problem by:
1º Generating the artifacts first (JbossIDE WS Pluggin (2.0 Beta2))
2º Manually editing webservices.xml to include the following lines:.... </service-impl-bean> <handler> <handler-name>ServiceAttachmentHandler</handler-name> <handler-class>provisioning.ServiceAttachmentHandler</handler-class> </handler> </port-component> .....
Handler is now properly interpreted as shown in the jboss log. -
8. Re: endpoint handler
romeufigueira Oct 30, 2006 5:04 AM (in response to dave2)To further clear my previous post, here's my complete description:
I've got 3 java files
1 - My WS interface
2 - My WS Implementacion
3 - My Handler class (in this case a class for handling attachments)
With the WS Plugin, I've generated my WS artifacts (WSDL file, web.xml, webservices.xml and jaxrpc-mapping.xml).
Problem is that webservices.xml didn't include any link to the handler, so I had to manually insert them (see above post).
Then it was just a case of packagin my files into a .WAR file (ant - f packaging-build.xml) and deploy it to my JBoss AS.
Hope this helps anyone with this sort of problem. -
9. Re: endpoint handler
omatzura Oct 30, 2006 5:08 AM (in response to dave2)Hi,
We'll add handler support to the JBossIDE plugin before the final release... thanks for your feedback.
regards,
/Ole