--- newtostruts struts <[EMAIL PROTECTED]> wrote:
> newtostruts struts <[EMAIL PROTECTED]> wrote:  I
> want to initialize torque in Struts2. I've got the
> code to initialize torque and it works fine. 
> The problem is where do I put that code. 
> Is there a place like an init method which is called
> just once?

Personally I've always used (well... you know what I
mean) a context listener to do one-time app
initialization (and startup servlets before that).

I don't really see any reason to not do the same with
S2, I suppose, although I'll be interested with what
other people are doing.

(I used to use Torque, too... at the time it seemed
like a pretty good choice to me. I don't any more, but
I had great success with it.)

d.



       
____________________________________________________________________________________Got
 a little couch potato? 
Check out fun summer activities for kids.
http://search.yahoo.com/search?fr=oni_on_mail&p=summer+activities+for+kids&cs=bz
 

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

Reply via email to