开发者

EJB 2 home interface

EJB5111 Bean class for ejb [{0}] does not define a method corresponding to [{1}] interface method [{2}]

I got that error despite I ha开发者_运维问答ve the correct method in LocalHome and the bean class. The one in local home:

ProductLocal create(ProductDTO p) throws CreateException

The one in bean class:

public java.lang.Long ejbCreate(ProductDTO p) throws CreateException {
//retrieve data from database and let the setter create a new row
}

The project ran without crashing on the client. The data was transferred to the server, however, it cannot enter the create method.

I don't understand.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜