geronimo-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From David Jencks <>
Subject Re: How to get hold of a WorkManager in a web app?
Date Sun, 11 Jan 2009 17:24:32 GMT
I assume you are talking about the j2ca work manager we've had for a  
long time rather than a newer choice -- I think the ee concurrent spec  
may also have a work manager and I don't know about ejb 3.1.

The default work manager isn't bound in jndi right now.  To bind it  
you can include a binding gbean like we use for the transaction  
manager -- see the plan at plugins/connector/transaction/src/main/plan/ 
plan.xml or inside the transaction car.  I think yours will look like  

     <gbean name="WorkManagerBinding"  
         <attribute name="name">DefaultWorkManager</attribute>
         <attribute name="abstractNameQuery">?name=  
         <reference name="Context">

I think the work manager will then be at java:DefaultWorkManager

I think you can put this gbean in your geronimo plan for your web app  
although there might be ordering issues if you try to look it up  
during servlet initialization... you could experiment.

david jencks

On Jan 11, 2009, at 8:16 AM, fladimir wrote:

> I've tried searching for this a lot, but I haven't found any  
> documentation
> yet of any JNDI name for DefaultWorkManager or anything similar.
> Any advice? The WorkManager is to be used by a session bean.
> -- 
> View this message in context:
> Sent from the Apache Geronimo - Users mailing list archive at  

View raw message