ola,

    estou tendo problemas com ejb. Estou tentando rodar um codigo que achei na net sobre cmp 2.0, mas ele est� dando alguns erros ainda.

Rodei o verifier do deploytool e ele me gerou os seguintes erros descritos abaixo:

For [ AddressBean ]
Error: There are no method permissions within this bean [ AddressBean ].   Transaction attributes must be specified for the methods defined in the remote interface [ customer.LocalAddress ].  Method [ getState ] has no transaction attribute defined.

For [ SubscriptionBean ]
Error: There are no method permissions within this bean [ SubscriptionBean ].   Transaction attributes must be specified for the methods defined in the remote interface [ customer.LocalSubscription ].  Method [ getType ] has no transaction attribute defined.

For [ SubscriptionBean ]
For Home Interface [ customer.LocalSubscriptionHome ] method [ findAllSubscriptions ]
Error: A [ findAllSubscriptions ] method was found, but did not have a query element assigned

For [ CustomerBean ]
Error: There are no method permissions within this bean [ CustomerBean ].   Transaction attributes must be specified for the methods defined in the remote interface [ customer.LocalCustomer ].  Method [ getLastName ] has no transaction attribute defined.

For [ CustomerBean ]
For Home Interface [ customer.LocalCustomerHome ] method [ findByFirstName ]
Error: A [ findByFirstName ] method was found, but did not have a query element assigned

Algu�m j� teve algum problema parecido com este?

o codigo deste ejb pode ser encontrado no site:

http://developer.java.sun.com/developer/technicalArticles/ebeans/EJB20CMP/

 

Abra�os,

    Henrique



Busca Yahoo!
O melhor lugar para encontrar tudo o que voc� procura na Internet

Responder a