J Aaron Farr wrote:

--- Robert McIntosh <[EMAIL PROTECTED]> wrote:

I didn't get a response on the user list, so I'm trying here. sorry for the (late) cross post....

I am, for the moment, using the ExcaliburComponentManagerCreator during my development with an eye towards going to Fortress for production (after I learn how to use it wisely, coming from the old ECM). My question is, how do I mark a service as thread safe or poolable without using the marker interfaces like old ECM?


Your role entry should look something like this:

<role name="com.browsersoft.eq.bc.BusinessObjectService">
<component shorthand="buisiness-object-service"
class="o.a.a.e.component.ThreadSafeComponentHandler"

handler="org.apache.avalon.fortress.impl.handler.ThreadSafeComponentHandler"/>
</role>
Or something like that. The trick is the handler. The
ThreadSafeComponentHandler should properly handle any Threadsafe components
(even without the Threadsafe marker). Similarly there is a
PoolableComponentHandler for poolable components. While I'm not as familiar
with ECM, I believe this is the correct translation.

Is the "o.a.a.e.component.ThreadSafeComponentHandler" class your implementation
of "com.browsersoft.eq.bc.BusinessObjectService"? This is the only part I'm
not sure of with your example. In any case, what you're looking for is using
the right handler found in the org.apache.avalon.fortress.impl.handler package.

In a word, no :-)
What I need is the ThreadSafeHandler for my service, which is the class c.b.e.b.BusinessObjectServiceImpl. So what if I did:

<role name="com.browsersoft.eq.bc.BusinessObjectService">
<component shorthand="buisiness-object-service"
class="com.browsersoft.eq.bc.BusinessObjectServiceImpl"

handler="org.apache.avalon.fortress.impl.handler.ThreadSafeComponentHandler"/>
</role>

???
I _think_ the 'handler' attribute is what I was looking for(?)

Robert

jaaron


__________________________________________________
Do you Yahoo!?
Yahoo! Shopping - Send Flowers for Valentine's Day
http://shopping.yahoo.com

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to