Author |
Message
|
it_qoo |
Posted: Mon May 24, 2004 7:11 am Post subject: access ejb from workflow activity |
|
|
Novice
Joined: 23 Feb 2004 Posts: 24
|
I want to access ejb from the jsp file of the workflow activity. How can I do that?
Thanks in advance |
|
Back to top |
|
 |
manoj |
Posted: Mon May 24, 2004 8:53 am Post subject: |
|
|
 Master
Joined: 30 Jan 2002 Posts: 237 Location: Virgina
|
You can write wrapper classes for MQ Workflow Java APIs and call them within the EJB... This way you are building a custom client.
If you are worried about connecting to MQ Workflow Engine within an EJB you can do it in two ways
1. Use Local bindings ( this will give you good performance but local bindings make use of JNI and this may not be preferred)
2. Use a java Agent _________________ -manoj |
|
Back to top |
|
 |
Ratan |
Posted: Mon May 24, 2004 9:04 am Post subject: |
|
|
 Grand Master
Joined: 18 Jul 2002 Posts: 1245
|
How would you acces an EJB from a JSP? It would not change if the JSP is a Workflow Activity. _________________ -Ratan |
|
Back to top |
|
 |
manoj |
Posted: Mon May 24, 2004 9:08 am Post subject: |
|
|
 Master
Joined: 30 Jan 2002 Posts: 237 Location: Virgina
|
Are you worried about how to extend the webclient to use EJB ?... _________________ -manoj |
|
Back to top |
|
 |
it_qoo |
Posted: Mon May 24, 2004 12:32 pm Post subject: |
|
|
Novice
Joined: 23 Feb 2004 Posts: 24
|
Let me explain in more details. I have written some ejb for doing some business activities. I have also writen jsp files for the activity. So when I check out from the web client, it will open my jsp files. And when I check in again, it will call my ejb to do the business activities. Can I do that in web client? |
|
Back to top |
|
 |
manoj |
Posted: Mon May 24, 2004 12:41 pm Post subject: |
|
|
 Master
Joined: 30 Jan 2002 Posts: 237 Location: Virgina
|
Yes...You have to call the EJB (Application code) within the JSP you developed for MQ Workflow workitem handling.
You may use want to use access beans to call the application EJB.
The typical implementation pattern will
1. JSP calls workflow check out workitem
2. JSP calls the application EJB to do some processing
3. After success JSP calls check in
if you want to use container managed transaction then be carefull that the MQ Workflow Java APIs do not participate in container managed transactions (at least i am not aware). _________________ -manoj |
|
Back to top |
|
 |
|