What are robust one-way webservices, and how do I enable them in JBoss EAP 6?

Solution Verified - Updated -

Issue

I have a simple oneway webservice which takes single int param. I've marked the ws with @RolesAllowed("dev") and @SecurityDomain("other") annotations. I didn't setup any users in JBoss, so during the call from SoapUI, an exception is logged:

javax.ejb.EJBAccessException: JBAS014502: Invocation on method: public void com.redhat.testapp.OneWayServerEndpoint.testMethod(int) 
                                                       of bean: OneWayServerEndpoint is not allowed

But still the client gets HTTP 202. Since this causes us troubles, I had to study oneway webservices and I found out that this is actually a correct behavior. Is there any way to make JBoss/CXF return a different HTTP status if there was a problem processing the request?

Environment

  • Red Hat JBoss Enterprise Application Platform (EAP)
    • 6.x
  • JBossWS-CXF

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content