Thread:
 My uncertainty idea about PicoContainer + Hibernat... 
 limo   17 Feb 2004, 15:28 
 Re: My uncertainty idea about PicoContainer + H... 
 ko5tik   18 Feb 2004, 12:13 

Comment
Prev. thread 
 Next thread
 
Prev. posting 
 Next posting
From: ko5tik (18 Feb 2004, 12:13) Replies: 0, Views: 37047
Subject: Re: My uncertainty idea about PicoContainer + Hibernate
>But, I have a problem:
> when and where to initialize the PicoContainer? I need some
>components  in global , but some others partial. So when should I
>create the pico instance.

>The code is under developments now. I haven’t done the whole code
yet. 

>Sorry again for my poor English. Am I make myself understood?

>I hope anyone who can talk and discuss it with me. You will be the
>most helpful.

It depends of your environment. 

There is nanocontainer integration in web-tier & webwork 1.x
Works fine for me. ( Basically you get 3 containers - application ,
session & request scope ) 

Request scope basically implements thread local semantics, since it's
kicked at the end of request. 

And you can move thread-local semantics out of your "session provider" -
it can be pico component adapter, or special refenrence kind.
Prev. thread 
 Next thread
 
Prev. posting 
 Next posting
© Copyright 2006, Red Hat Middleware, LLC. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc. [Privacy Policy]