Hello guys .. I am trying to do simple method injection but i am having problem so please help me .... I have a class "NewClass " -----
then I have a second class "Helper " -----package lookupMethodInjection;
public class NewClass {
public String getMessage() {
String makedUpMessage = "UUM say some thing -- ";
makedUpMessage = makedUpMessage + makeUpMessage();
return makedUpMessage;
}
public String makeUpMessage() {
return "";
}
}
and the XML Definition is ----package lookupMethodInjection;
public class Helper {
public String makeUpMessage() {
return "Hello ";
}
}
now when i tried to run using NetBeans IDE it shows "The module has not been deployed."<bean id="helpersss" class="lookupMethodInjection.Helper" scope="prototype" ></bean>
<bean id="newClasss" class="lookupMethodInjection.NewClass">
<lookup-method bean="helpersss" name="makeUpMessage"/>
</bean>
so someone please tell me what is the problem . Is it in the class or in the XML definition...
Thank


Reply With Quote
