aspose file tools*
The moose likes BEA/Weblogic and the fly likes entity beans deployment descriptors Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » BEA/Weblogic
Bookmark "entity beans deployment descriptors" Watch "entity beans deployment descriptors" New topic
Author

entity beans deployment descriptors

Simon Elliot
Greenhorn

Joined: Jul 18, 2001
Posts: 11
I am trying to deploy container-managed entity beans on Weblogic 6.0 using jDriver for Oracle 8.1.6. I have problems with my <persistence-descriptor> fields. I have put them in the weblogic-ejb-jar.xml file but get the error that they must be declared. What does this mean?
Also, if my primary key is not a class but a String, what do I put in the <prim-key-class> field?
thanx,
si
Marcos Maia
Ranch Hand

Joined: Jan 06, 2001
Posts: 977
Hi,
You can see an example about the persistent descriptor for EJB1.1 at:
WL_HOME\samples\examples\ejb\basic\containerManaged\package-summary.html
in your instalation of WebLogic
and for EJB2.0 at:
WL_H0ME\samples\examples\ejb20\basic\beanManaged\package-summary.html
In your primary key class you should put:
<prim-key-class>java.lang.String</prim-key-class>
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: entity beans deployment descriptors