Hi,
Well, my problem is how to call the Local EJB.
This is the ejb-jar.xml,
<enterprise-beans>
<session>
<ejb-name>CustomerSessionBean</ejb-name>
<ejb-local-ref>
<ejb-ref-name>ejb/CustomerSessionBean</ejb-ref-name>
<ejb-ref-type>Session</ejb-ref-type>
<local>com.mycustomer.ejb.CustomerSessionLocal</local>
<ejb-link>CustomerSessionBean</ejb-link>
</ejb-local-ref>
</session>
</enterprise-beans>
This is the web.xml file,
<ejb-local-ref>
<ejb-ref-name>ejb/CustomerSessionBean</ejb-ref-name>
<ejb-ref-type>Session</ejb-ref-type>
<local>com.mycustomer.ejb.CustomerSessionLocal</local>
</ejb-local-ref>
And here is how I call the Ejb
public class CustomerList {
@EJB(name="ejb/CustomerSessionBean", beanInterface=CustomerSessionLocal.class)
private CustomerSessionLocal customerSessionBean;
/** Creates a new instance of CustomerList */
public CustomerList() {
try {
InitialContext ic = new InitialContext();
customerSessionBean = (CustomerSessionLocal)ic.lookup("java:comp/env/ejb/CustomerSessionBean");
} catch (NamingException ex) {
Logger.getLogger(CustomerList.class.getName()).log(Level.SEVERE, null, ex);
}
setCustomerId((Integer)FacesUtil.getSessionMapValue("customer.customerId"));
}
It is strange that the GF v2.1.1 log does not write any message about the EJB
Any help will be appreciated!!!
Best Regards,
Jose
[Message sent by forum member 'josealvarezdelara' (dakhla.0563_at_hotmail.com)]
http://forums.java.net/jive/thread.jspa?messageID=384261