views:

47

answers:

0

Newbie to EJB, exploring CMP and trying to figure out the angles...

I'm using Weblogic 10.3. I've created entities, utilized them from a session bean via JPA and called the session bean from a command line app. This gave me CMP. When I tried to use the entities directly from a command line app via JPA without using the session bean, I didn't get CMP. I had to manually add the transaction code myself. So...

Is it possible:

  1. for Weblogic to host the entities directly?
  2. for a command line app to invoke the entities directly, without going through a session bean?

If so, how? How would I configure this?

I'm trying to understand if it's possible to get CMP by invoking an entity from a command line app or from a Weblogic based JSP.