@TransactionAttribute or @TransactionManagement are here for that

depending on the bus type you want using @Asynchronous + a queue can be
more efficient

*Romain Manni-Bucau*
*Twitter: @rmannibucau <https://twitter.com/rmannibucau>*
*Blog: **http://rmannibucau.wordpress.com/*<http://rmannibucau.wordpress.com/>
*LinkedIn: **http://fr.linkedin.com/in/rmannibucau*
*Github: https://github.com/rmannibucau*



2013/3/23 almos <[email protected]>

> Hi,
>
> When JMS message goes to the MDB deployed in TomEE there are a lot of log
> entries like these:
>
> INFO: Removing non-required WorkContextHandler with no context:
> org.apache.geronimo.connector.work.TransactionContextHandler@19647f24
> Mar 23, 2013 2:25:21 PM org.apache.geronimo.connector.work.WorkerContext
> run
> INFO: Removing non-required WorkContextHandler with no context:
> org.apache.openejb.core.security.SecurityContextHandler@14d72182
> Mar 23, 2013 2:25:21 PM org.apache.geronimo.connector.work.WorkerContext
> run
> INFO: Removing non-required WorkContextHandler with no context:
> org.apache.geronimo.connector.work.HintsContextHandler@37d8e87e
> Mar 23, 2013 2:25:21 PM org.apache.geronimo.connector.work.WorkerContext
> run
>
> So there's a lot of things going behind the scenes according to EE specs.
> For one of the tasks I need to implement I would like to reduce overhead of
> MDB processing and somehow switch off transaction support and other
> handlers/interceptors on MDBs in case of using embedded ActiveMQ with vm://
> type of transport.
> Which broker/TomEE configuration options/MDB annotations you may recommend
> to reduce processing overhead as much as possible?
> Is it even somehow possible or I should just use some lightweight event bus
> alternatives like Akka or whatever else similar?
>
> Regards,
> Alex
>
>
>
> --
> View this message in context:
> http://openejb.979440.n4.nabble.com/Question-on-MDB-processing-tp4661685.html
> Sent from the OpenEJB User mailing list archive at Nabble.com.
>

Reply via email to