rhq on as7 - exception wrapping?

Heiko W.Rupp hrupp at redhat.com
Mon Dec 10 13:48:28 UTC 2012


Am 10.12.2012 um 14:30 schrieb Heiko W.Rupp:

> org.rhq.enterprise.server.resource.group.ResourceGroupManagerBean#getResourceGroupById

Looking at it further I first see that my example was incomplete and does not serve any real purpose.

Nevertheless In the rest-api CustomExceptionMapper, an Transaction rolled back exception is received,
that wraps the real exception.

When I mark ResourceGroupNotFoundException wiht @javax.ejb.ApplicationException I get the correct behavior
in the exception mapper and directly get the RGNF Exception and not the TxRolledBack-Wrapper.
Not sure if the old as4-based container made a distinction here, but 

I think we may want to investigate the use of @ApplicationException further

  Heiko

-- 
Reg. Adresse: Red Hat GmbH, Technopark II, Haus C, 
Werner-von-Siemens-Ring 14, D-85630 Grasbrunn
Handelsregister: Amtsgericht München HRB 153243
Geschaeftsführer:  Mark Hegarty, Charlie Peters, Michael Cunningham, Charles Cachera

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 203 bytes
Desc: Message signed with OpenPGP using GPGMail
URL: <https://lists.fedorahosted.org/pipermail/rhq-devel/attachments/20121210/3e89a755/attachment.sig>


More information about the rhq-devel mailing list