ASG
IBM
Zystems
Cressida
Icon
Netflexity
 
  MQSeries.net
Search  Search       Tech Exchange      Education      Certifications      Library      Info Center      SupportPacs      LinkedIn  Search  Search                                                                   FAQ  FAQ   Usergroups  Usergroups
 
Register  ::  Log in Log in to check your private messages
 
RSS Feed - WebSphere MQ Support RSS Feed - Message Broker Support

MQSeries.net Forum Index » Workflow Engines - IBM MQ Workflow & Business Process Choreographer » access ejb from workflow activity

Post new topic  Reply to topic
 access ejb from workflow activity « View previous topic :: View next topic » 
Author Message
it_qoo
PostPosted: Mon May 24, 2004 7:11 am    Post subject: access ejb from workflow activity Reply with quote

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
View user's profile Send private message
manoj
PostPosted: Mon May 24, 2004 8:53 am    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail Yahoo Messenger
Ratan
PostPosted: Mon May 24, 2004 9:04 am    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail
manoj
PostPosted: Mon May 24, 2004 9:08 am    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail Yahoo Messenger
it_qoo
PostPosted: Mon May 24, 2004 12:32 pm    Post subject: Reply with quote

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
View user's profile Send private message
manoj
PostPosted: Mon May 24, 2004 12:41 pm    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail Yahoo Messenger
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » Workflow Engines - IBM MQ Workflow & Business Process Choreographer » access ejb from workflow activity
Jump to:  



You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
Protected by Anti-Spam ACP
 
 


Theme by Dustin Baccetti
Powered by phpBB © 2001, 2002 phpBB Group

Copyright © MQSeries.net. All rights reserved.