[jboss-user] [JBoss Seam] - Re: How to get EntityManager without @In?

gothmog do-not-reply at jboss.com
Fri Aug 31 06:46:33 EDT 2007


I thought about using timers but got discouraged when in the spec it says 
anonymous wrote : 
  | While timer durations are express in millisecond units, this is because the millisecond is the unit of time granularity used by the API...it is expected that most timed events will correspond to hours, days or longer...
  | 

and then later on it says

anonymous wrote : 
  | The timer service is intended for the modeling of long lived business processes.

So I came to the conclusion that it was a bit of an overkill and hence thought a simple background thread should do it.

I tried Pete's idea of trying to setup the contexts for the thread, but the problem there lies in the fact that I can't because the ThreadLocal storages access is local to the seam package so I can't actually set anything on it :(

If all else fails, I guess I'll have to use timers.

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4079932#4079932

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4079932



More information about the jboss-user mailing list