sending an intance of a class to servlet from session bean
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   miro_con
Posted On:   Friday, November 30, 2007 06:00 PM

I have a class with
Static block
Which has dao call.
So when this class is called for first time static block is called .
Now suppose I return instance of this class from my session bean to a servlet.
Will this servlet also call static block ?

Re: sending an intance of a class to servlet from session bean

Posted By:   sreenath_reddy  
Posted On:   Tuesday, December 4, 2007 05:17 AM

If the EJB and servlet running on same JVM then the static block will not be excuted.
If they are running on different machines it will be excuted.
Correct me if I am wrong.
About | Sitemap | Contact