n'accede pas à mon ejb stateless
bonjour,
je suis sous netbeans 6.0
j'utilise le JPA de glasshfish V2
mon statelesse bean
Code:
1 2 3 4 5 6 7 8 9 10 11 12 13
|
@SuppressWarnings(value = "unchecked")
@TransactionAttribute(value = TransactionAttributeType.REQUIRED)
@Stateless(name = "CustomerSB", mappedName = "statelessclient")
public class ClientBean implements ClientRemote, ClientLocal {
// ======================================
// = Attributs =
// ======================================
@PersistenceContext(unitName = "EJBModule2PU")
private EntityManager em;
private final String cname = this.getClass().getName(); |
mon interface pour rechercher le stateless bean
Code:
1 2 3 4 5 6
|
private static ClientRemote getCustomerRemote() {
ClientRemote customerRemote;
customerRemote = (ClientRemote) ServiceLocator.getInstance().getRemoteInterface("statelessclient");
return customerRemote;
} |
et apparemment il ne me le trouve pas :(
avec sun app sever v9 (donc glassfish)
c'est bien comme ça la declaration du nom du bean en memoire
@Stateless(name = "CustomerSB", mappedName = "statelessclient")