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 » Invoking Java class as activity implementation in webclient

Post new topic  Reply to topic
 Invoking Java class as activity implementation in webclient « View previous topic :: View next topic » 
Author Message
anuppc
PostPosted: Wed Jan 21, 2004 8:22 am    Post subject: Invoking Java class as activity implementation in webclient Reply with quote

Voyager

Joined: 22 Oct 2002
Posts: 93
Location: Montreal

Hi,

I have been trying to figure out a standard way to invoke ejbs from workflow. We have a customized webclient. The activity implementations are usually jsps. Is it a good practice to invoke ejb by using the jsp as the ejb client? For manual activities it may be a reasonable approach! What about automatic activities?

This is what i attempted to do ... unfortunately i could not get what i wanted...

In the original fdl i had a manual Activity B which had an associated program ProgramB.jsp ... which resides in the /programs folder of the web application.

I modified the fdl to make the Activity B as automatic. The ProgramB properties were also altered to "run unattended".

To Invoke the test java class i tried using the fmcoxjvm.dll to invoke automatic activity. I ran the dll in unfenced mode. The java class was passed as Command line parameters.

Do i have to provide the path to fmcoxjvm.dll ? Where do i put the java class? Under /programs folder of the web application?

Im using MQWorkflow 3.4 and websphere 5 .(both on the same box).

thanks

Anup
_________________
BlowFish
Back to top
View user's profile Send private message Send e-mail Yahoo Messenger MSN Messenger
anuppc
PostPosted: Wed Jan 21, 2004 8:28 am    Post subject: Reply with quote

Voyager

Joined: 22 Oct 2002
Posts: 93
Location: Montreal

By the way had a look at the wa03 support pack... too bad it is based on websphere 3.5 uggghh.... and has brief explanation... if anyone has implemented standard framework to invoke java classes/ejbs as activity implementation do let me know.

Thanks.
Anup
_________________
BlowFish
Back to top
View user's profile Send private message Send e-mail Yahoo Messenger MSN Messenger
anuppc
PostPosted: Wed Jan 21, 2004 10:46 am    Post subject: Reply with quote

Voyager

Joined: 22 Oct 2002
Posts: 93
Location: Montreal

I tried the same with the fat client... made some modifications in the fdl too to test my setup... in the program properties i set "path and file name" to C:\Program Files\IBM WebSphere MQ Workflow\BIN\fmcnshow.exe

It still didnt invoke! The activity is still in ready state.. is there anything wrong with what iam trying to do? how do i debug?

Thanks
Anup
_________________
BlowFish
Back to top
View user's profile Send private message Send e-mail Yahoo Messenger MSN Messenger
Ratan
PostPosted: Wed Jan 21, 2004 11:23 am    Post subject: Reply with quote

Grand Master

Joined: 18 Jul 2002
Posts: 1245

When the Activity is automatic there is nothing to do on the webClient.

Run a PEA with the user you assigned for the automatic activity on the server side.

have the EJB (or Whatever) be accessible to your PEA.
_________________
-Ratan
Back to top
View user's profile Send private message Send e-mail
anuppc
PostPosted: Wed Jan 21, 2004 11:36 am    Post subject: Reply with quote

Voyager

Joined: 22 Oct 2002
Posts: 93
Location: Montreal

Run a PEA with the user you assigned for the automatic activity on the server side.

what do u mean by that? user is admin and i thought the program being "run unattended" would run automatically without any intervention.

i have the activity modeled as automatic and i have simple batch file exec.bat which has a command like

set path=blah blah

java Test

The batch file is defined for the associated program's windows NT tab
It doesnt seem to invoke the batch file..

Any ideas...thanks

Anup
_________________
BlowFish
Back to top
View user's profile Send private message Send e-mail Yahoo Messenger MSN Messenger
Ratan
PostPosted: Wed Jan 21, 2004 1:42 pm    Post subject: Reply with quote

Grand Master

Joined: 18 Jul 2002
Posts: 1245

Where do you expect the program to run?

Ans: PEA.
_________________
-Ratan
Back to top
View user's profile Send private message Send e-mail
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 » Invoking Java class as activity implementation in webclient
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.