Mukesh Mittal

Greenhorn
+ Follow
since Dec 29, 2005
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Mukesh Mittal

I think I understand that. When you call your application through index.html and then call Servlet. If you print header, you are not going to get JSessionID.

If you access through index.jsp, because of implicit variable in JSP, you will get that JSessionID.



18 years ago
I hava a question regarding that.

I created one index.jsp page and then call Servlet. In servlet I am printing all the headers. I am geting session id in that (not used request.getSession()). I have not created that session and session is old.


Shall I consider as you mentioned, container created that session.
18 years ago
Thanks for the reply guys. I think Bosun, your are right, Container is calling destroy method before actually unloading instance.
18 years ago
I have a question regarding calling servlet Destroy method.

I know, container call destroy method to remove servlet instance.

Just for testing purpose, I called destroy method in the same servlet. Nothing happened? I am calling the same servlet again and system is not calling my init method and system is doing the same previous work.

Can we call destroy method?
18 years ago
Is this the only documentation available for custering in tomcat?
18 years ago
I am planning to do clustering using apache and tomcat server.

Can you suggest me good documentation related with this. I want to create one sample clustered Environment.
18 years ago
Thanks for the clarification.

18 years ago
Can you give one example in which we inspect before invalidate.I am still trying to understand practical use of this.

Can we denied invalidating based on certain condition in this function.
18 years ago
In J2ee 1.4 Servlet Spec mentioned about HttpSessionListener sessionDestroyed() functioon

-- Its a Notification that a session is about to be invalidated

while in previous versions
Notification that a session was invalidated


What's the advantage of changing this?
18 years ago
May be you can try schedular software for this.

You can use OpenSymphony Quartz scheduler. Its open source.

www.opensymphony.com/quartz/
One more disadvantage:

bookmark post page: If you add this to "add to favourite" in your browser. Browser will lost all the post page body content.
18 years ago
I agree with Santosh. Its a compile time error not runtime error.
Please check the class name instanceOf. Actual keyword is instanceof (lowercase o)
Program is definately calling processorA().

processorB is a static method so you don't have to provide {object}.processorB();
I think, if the priority is same then schedular will decide.