×

Loading...

help java question :Can I have two findByPrimaryKey methods?

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?
Report