How do I create a project in WebLogic Workshop with JPA beans?

How do I create a project in WebLogic Workshop (version 10.3) with JPA beans support?

I am trying to create separate EJB and EJBClient projects in the Workshop and the EJB3 beans session is working fine, but I am having problems with the JPA beans entity.

It looks like when creating a new project, you can add JPA and BEA Kodo support if you are building a web project, but for some reason you cannot add JPA support to the EJB project.

I want to highlight EJB3 / entity bean stuff and web stuff to split projects. How can i do this?

Should I just add Kodo / JPA.jar to the EJB project? Or should I make a separate dynamic web project and treat it as an EJB project.

Working project examples would be nice;)

0


source to share


2 answers


The easiest way is to just add the JPA libraries to the EJB project and be done. The workshop does not appear to provide specific support for JPA in EJB projects. Not that it was necessary.



0


source


http://jaiswaltraining.com/ejb3/weblogic/ch2.php contains some step-by-step examples of EJB3, Entity Beans with JPA, data source creation and everything in Eclipse.



+1


source







All Articles