hivemind-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "James Carman" <ja...@carmanconsulting.com>
Subject RE: Thoughts on how to put Hivemind inside a J2EE Container or Web Container?
Date Fri, 03 Sep 2004 01:51:45 GMT
There is a servlet filter (http://jakarta.apache.org/hivemind/filter.html)
built into the HiveMind framework that will put a HiveMind registry (the
"default registry") on each servlet request as it comes in.  Then, your
servlets can use the HiveMind-managed services by looking them up in the
registry...

// Inside your servlet...
Registry registry = HiveMindFilter.getRegistry( request );
MyService svc = ( MyService )registry.getService( MyService.class );
svc.someServiceMethod( someParameter );

-----Original Message-----
From: Jian Wu [mailto:jianwu88@gmail.com] 
Sent: Thursday, September 02, 2004 9:19 PM
To: hivemind-user@jakarta.apache.org
Subject: Thoughts on how to put Hivemind inside a J2EE Container or Web
Container?

Hi,

Usually, J2EE/Web Container will instantiate EJB/Servlet Object for you.
Now, Hivemind will also instantiate these service object.

To integrate these two together, I can think that Hivemind is invoked
through ServletContextListener to set up the basic services before
Servlet get instantiated.

Any suggestion or best practice?

Thanks a lot!

Jian

---------------------------------------------------------------------
To unsubscribe, e-mail: hivemind-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: hivemind-user-help@jakarta.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: hivemind-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: hivemind-user-help@jakarta.apache.org


Mime
View raw message