[EJB 3.0] - ne emf.createEntityManager(EXTENDED) any more?
by taprogge
Hi!
I am using ejb3-rc8 on JBoss-4.0.4.GA.
I am trying to get an EXTENDED EntityManager inside a servlet. Doing this in a lervlet just seemed to be the simplest way to write some data to the DB while migrating to a new, rewritten version of our application.
I look up the EntityManagerFactory and UserTransaction from JNDI, call em.join(utx) and would be happy if I did not need an EntityManager in EXTENDED PersistenceContext.
The docs I found all mention using
| EntityManagerFactory.createEntityManager(PersistenceContextType.EXTENDED)
|
but that method does not seem to be there. I can only find
| createEntityManager();
| createEntityManager(Map properties);
|
How do I go about getting this job done?
If injection into servlets worked, I just would do
| @PersistenceContext(type=EXTENDED)
| EntityManager em;
|
in my Servlet, but since it doesn't, there has to be another way.
Thanks for any hints you can offer.
Regards,
Phil
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3978191#3978191
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3978191
19 years, 8 months
[JBoss jBPM] - BPEL process waiting for an user action
by javilaalonso
Hi ,
I have been reading again many of the topics about BPEL vs JBPM, differences, etc since I was too new to understand.
Let me know if i am wrong.
I understand the difference btw web service orchestration (BPEL) and java components (JBPM).
The problem is that I want to get web service orchestration. Imagine a process where several web services are called (think of the loan approval example) and at some point I want a human to accept or refuse my loan request.
My first question is (): is there any library to manage this case using jbpel ?Is this case out of the scope of BPEL ? do I have to use jbpm then ?
In my first question I am thinking of an easy way or automatic way to do such a thing.
My second question, idea is : Since BPEL process is only aware of web services is it possible to create (code) a web service that can be called by the process and by another user so that the process response will be release after the user called to the same web services ??
Any other suggestion to deploy such an example ??
thanks
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3978190#3978190
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3978190
19 years, 8 months