I changed to "value2" in source code without rebuilding/redeployment. In this
case should I expect to see "value2" due to Java hot-swapping when
breakpoint is reached?

I remembered I can see changed value for class extended from
SimpleFormController in this scenario. I am not sure if it is a ClassLoader
issue for class extended from AbstractController. Does hot-swapping work in
the same servlet/thread or different one? Thanks!


Konstantin Kolinko wrote:
> 
> Isn't is obvious? Why do you expect it to become "value2"?
> 
> What are you changing? Are you changing the source code for the class?
> I do not expect hot-swapping of compiled classes to be available here.
>  If it is the same class instance, it will still be "value".  Restart
> your webapp, or reload your spring context, and it will be "value2"
> 
>> Then I change String urlReq = "value2" and fire http
>> request again. When breakpoint is reached again this time urlReq still
>> equals to "value" rather than "value2".
> 
> ---------------------------------------------------------------------
> To start a new topic, e-mail: users@tomcat.apache.org
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Value-can%27t-be-changed-in-bean-extended-from-AbstractController-of-Spring-tf4944277.html#a14217645
Sent from the Tomcat - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to