help java question :Can I have two findByPrimaryKey methods?

macsym (日进斗斤)
I have a entity bean (BMP) with two findByPrimaryKey methods. It works well in iPlanet, when I migrate to weblogic. I can't ejbc these EJB classes.

public Account findByPrimaryKey(AccountPK primaryKey) throws FinderException, RemoteException;


public Account findByPrimaryKey(String primaryKey,String desc) throws FinderException, RemoteException;

I got the error: findByPrimaryKeyweblogic.ejb20.internal.MethodDescriptor,java.lang.Object) in weblogic.ejb20.internal.EntityEJBHome cannot be applied to (weblogic.ejb20.internal.MethodDescriptor,java.lang.String,java.lang.String) super.findByPrimaryKey(md_ejbFindByPrimaryKey_SS, arg0, arg1 );

So Is this avalible in Weblogic 6.0?
(#269558@0)
2001-11-21 -05:00

回到话题: help java question :Can I have two findByPrimaryKey methods?

回到论坛: HOME枫下论坛枫下论坛主坛工作学习IT技术讨论

URL:   
http://www.rolia.net/zh/post.php?f=0&p=269558