Ignoring 'stateful' option on lookup of home interface
vandiesel Nov 4, 2013 9:24 AMHi,
Please let me know if stateful ejb bean is created if this warning appears.
19:21:02,729 WARN [org.jboss.ejb.client.naming] (http-localhost-127.0.0.1-80-1) Ignoring 'stateful' option on lookup of home interface com.mysedan.application.limonet.control.ejb.EJBControllerHome
I am doing lookup of EJB using the home interface like
public static EJBControllerHome getEJBControllerHome() throws NamingException {
Hashtable env = new Hashtable();
env.put(Context.URL_PKG_PREFIXES, "org.jboss.ejb.client.naming");
InitialContext initialContext = new InitialContext(env);
return (EJBControllerHome)initialContext.lookup("ejb:savoya/savoya.jar/ControllerEJB!com.mysedan.application.limonet.control.ejb.EJBControllerHome?stateful");
}
this.ejbController = getEJBControllerHome().create();
In ejb-jar.xml
<session>
<display-name>EJBController Service</display-name>
<ejb-name>ControllerEJB</ejb-name>
<home>com.mysedan.application.limonet.control.ejb.EJBControllerHome</home>
<remote>com.mysedan.application.limonet.control.ejb.EJBController</remote>
<ejb-class>com.mysedan.application.limonet.control.ejb.EJBControllerBean</ejb-class>
<session-type>Stateful</session-type>
<transaction-type>Container</transaction-type>
<resource-ref>
<description>The mysedan DS</description>
<res-ref-name>mysedanDS</res-ref-name>
<res-type>javax.sql.DataSource</res-type>
<res-auth>Container</res-auth>
<lookup-name>java:/mysedanDS</lookup-name>
</resource-ref>
</session>
In jboss.xml
<session>
<ejb-name>ControllerEJB</ejb-name>
<jndi-name>com.mysedan.application.limonet.control.ejb.EJBControllerHome?stateful</jndi-name>
<resource-ref>
<res-ref-name>mysedanDS</res-ref-name>
<resource-name>mysedanDS</resource-name>
</resource-ref>
</session>
Let me know your thoughts!
Thank you,
Diesel