I am trying to decalre a spring bean in xml (Mule configuration file) and I created a bean like this:
<bean id="IsActiveFilter" class="com.TimeLineListener.IsActiveFilter"> <property name="isChatActive" value="${chatListener.isActive}"/> </bean>
Now, my question is: how can I get the isChatActive value from a valid bean class? I mean, can I just create a variable (private int isChatActive) called isChatActive and it will get some value that the placeholder gives? I mean something like:
public class IsActiveFilter{ { private int isChatActive; }
Will this work? if not, how do I use it?
early
Menyh source share