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?
2001-11-21 -04:00
This post has been archived. It cannot be replied.
Page address has been copied. To share, click to copy page address.
Share Online by QR Code

Back To Topic: help java question :Can I have two findByPrimaryKey methods?

Back To Forum: HOME枫下论坛枫下论坛主坛工作学习IT技术讨论