Re: Excution of parallel activities concurrently

Anto Paul <[email protected]> Fri, 4 Dec 2009 10:35:57 +0530
Newsgroups gmane.comp.java.enhydra.shark
Message-ID <[email protected]>
This is a multi-part message in MIME format...

------------=_1259903161-8018-2757
Content-Type: multipart/alternative; boundary=00504501674028a4b80479e01067


--00504501674028a4b80479e01067
Content-Type: text/plain; charset=ISO-8859-1

I figured it out. Use SchedulerToolAgent. This is the only way I found to
execute activities in parallel in Shark. Shark by design run in the
execution thread only and don't spawn any new thread. SchedulerToolAgent
uses a thread pool to execute activities. I had trouble with
SchedulerToolAgent on transactions when I was using default HSQLDB and then
I moved to Oracle. Also when caching is disabled, Shark was throwing error
on versioning of processes as it is using optimistic concurrency control.

Hope this will be useful to somebody else.

Anto

On Mon, Nov 9, 2009 at 12:19 PM, Anto Paul <[email protected]> wrote:

> Hi,
>     I have a question on Shark's parallel activity execution. Do Shark
> execute parallel activities in two different threads or is it executed in
> same thread one after another?. My tests show that both parallel activities
> are executed in same thread ie. one after another. I used AND split
> condition for parallel activity.
>
> Anto
>

--00504501674028a4b80479e01067
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable

I figured it out. Use SchedulerToolAgent. This is the only way I found to e=
xecute activities in parallel in Shark. Shark by design run in the executio=
n thread only and don&#39;t spawn any new thread. SchedulerToolAgent uses a=
 thread pool to execute activities. I had trouble with SchedulerToolAgent o=
n transactions when I was using default HSQLDB and then I moved to Oracle. =
Also when caching is disabled, Shark was throwing error on versioning of pr=
ocesses as it is using optimistic concurrency control.<br>
<br>Hope this will be useful to somebody else.<br><br>Anto<br><br><div clas=
s=3D"gmail_quote">On Mon, Nov 9, 2009 at 12:19 PM, Anto Paul <span dir=3D"l=
tr">&lt;<a href=3D"mailto:[email protected]">[email protected]<=
/a>&gt;</span> wrote:<br>
<blockquote class=3D"gmail_quote" style=3D"border-left: 1px solid rgb(204, =
204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Hi,<br>=A0=A0=A0 =
I have a question on Shark&#39;s parallel activity execution. Do Shark exec=
ute parallel activities in two different threads or is it executed in same =
thread one after another?. My tests show that both parallel activities are =
executed in same thread ie. one after another. I used AND split condition f=
or parallel activity.<br>
<font color=3D"#888888">
<br>Anto<br>
</font></blockquote></div><br>

--00504501674028a4b80479e01067--

------------=_1259903161-8018-2757
Content-Type: text/plain; charset="UTF-8"; name="message-footer.txt"
Content-Disposition: inline; filename="message-footer.txt"
Content-Transfer-Encoding: quoted-printable


--
You receive this message as a subscriber of the [email protected] mailing lis=
t.
To unsubscribe: mailto:[email protected]
For general help: mailto:[email protected]?subject=3Dhelp
OW2 mailing lists service home page: http://www.ow2.org/wws

------------=_1259903161-8018-2757--