• Post Reply Bookmark Topic Watch Topic
  • New Topic

EjbHome Problem in Bean Managed

 
sachin sachdeva
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi To all
I am trying to create a jar of Bean Managed Entity Beans.i tried it by Deployer Tool of Weblogic as well as manually.But it is giving the problem that no appropriate ejbFindByPrimaryKey() method found but i have declared ejbFindByPrimaryKey(PrimaryKeyClass obj) i have verified this with EdRoman's Example also but at the sun's site one example is given in which this methos is taking String parameters they dont have any primary key class everywhere they are using a String parameter .
So is Primary Key class is not mandatory or in the new Specs it does not required.
Pls Help Me

Thanx
 
Madhu Juneja
Ranch Hand
Posts: 176
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I also had a similar problem. I had not declared findByPrimaryKey method in the Home Interface.
The following should be the signatures :
In the Home Interface :
public <Remote Interface name> findByPrimaryKey (PKClass obj);
Note there is no "ejb" in the method name.
In the Bean implementation :
public <PKClass> ejbFindByPrimaryKey (PKClass ) ...
HTH
 
sachin sachdeva
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanx Madhu
But Madhu i did the same then also it is giving the same problem By using Deployer Tool but yes manually i have done it actually i was doing a mistake that i have not specified Primary Key name
in the deployment descriptor . But how should i do it in the case of deployer tool.
 
Madhu Juneja
Ranch Hand
Posts: 176
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
In the deployer tool, projects-><jarfile>->Beans-><Remote>->Persistence. Through this you can define the primary key type, primary key filed. Try this.
Actually sometimes this option is displayed and sometimes it is not. I am not able to simulate in what situations it is not displaying. May be need to look thru the docs of weblogic.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!