Sorry may be I wrote it somehow complicated.
Let's say I have a backing bean for my JSF page. This backing bean is configured in a spring bean configuration like this:
Code:
<bean id="myBean" class="com.remo.myApplication.beans.MyBean"/>
This bean looks like:
Code:
public class MyBean implements Serializable{
public void doSomething(){
System.out.println("hello I did something");
}
}
Then I would like to have inject another bean into MyBean. Therefore, I have to change MyBean and the spring bean configuration.
Code:
<bean id="myBean" class="com.remo.myApplication.beans.MyBean">
<property name="otherBean" ref="myOtherBean" />
</bean>
This bean looks like:
Code:
public class MyBean implements Serializable{
MyOtherBean bean;
public void setOtherBean(MyOtherBean bean){
this.bean = bean;
}
public void doSomething(){
System.out.println("hello I did something");
bean.doSomething();
}
}
The MyBean is deployed by eclipse hot deployment to tomcat. But the spring bean configuration isn't. Now I would like to refresh the spring bean configuration somehow.
How is this possible?
Thanks,
Remo