BizTalk Server General - BAM problem... help needed

This is Interesting: Free IT Magazines  
Home > Archive > BizTalk Server General > November 2005 > BAM problem... help needed





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author BAM problem... help needed
grisha0@gmail.com

2005-11-29, 5:55 pm

Hi,
I'm trying to understand and create a simple monitoring...

i've created very complex orchestration ( recive ... delay(1m) ....
transform .. delay(1m).. transform...send) as it is only test drive ;)

ive created BAM fields(start, transform, out ) all of them milestones


ive mapped milestones :
recive - start
transform - transform
send - out

ive created BAM view and all of that .... (shows all milestones)

my task is to get info when milestone has been reached...
for example : start| 12-11-2005T12:14:23
etc...

and after deploying the orchastration and applying the TPE i start the
orchestration by putting file in port.

as it is being consumed by biztalk i get current status

first
Start - "12-11-2005T12:14:23"
Transform - ""
Send - ""

after one minute i get

Start - "12-11-2005T12:14:23"
Transform - "12-11-2005T12:15:25"
Send - ""

and after another minute


Start - "12-11-2005T12:14:23"
Transform - "12-11-2005T12:15:25"
Send - "12-11-2005T12:16:27"


and this is good :]

but...
if i'll start another instance of orchestration... bam dosen't monitor
it...it only puts the info that it has been compleated
so when i start
i get:
Start - ""
Transform - ""
Send - ""


after a minute

Start - ""
Transform - ""
Send - ""


after another

Start - ""
Transform - ""
Send - ""

and then BOOM it pops right out...

Start - "12-11-2005T12:18:23"
Transform - "12-11-2005T12:19:25"
Send - "12-11-2005T12:20:27"

i've checked the tables in the sql:

and in the first run table active is filledout correctly.
after the run data is being moved to the table completed

in second run table active is empty... empty ... empty ... empty
(proces finishes in background)
BOOM
data shows in the table completed ...

i don't know why ...
any help VERY appreciated

Regards
Grzegorz Piotrowski

Keith Lim

2005-11-29, 5:55 pm

Hi Grzegorz,

The delay is most likely due to TDDS processing.
As each shape is processed, the corresponding TPE mapped item (BAM
milestones or dataitems) are processed, but the BAM data is persisted to
MessageBox first in the TrackingData table.

TDDS will process this in chunks. So depending on what is in the chucks
being processed, (if the block includes the EndActivity events), it will
cause the records to be moved to completed table.
If you want to verify this, you can monitor the TrackingData table in the
BizTalkMsgBoxDb for corresponding records.

Thanks,
Keith


--------------------[vbcol=seagreen]
14:19:02 GMT)[vbcol=seagreen]
rv:1.7.12) Gecko/20050919 Firefox/1.0.7,gzip(gfe),gzip(gfe)[vbcol=seagreen]
TK2MSFTNGXA02.phx.gbl!TK2MSFTNGP08.phx.gbl!newsfeed00.sul.t-online.de!t-onli
ne.de!border2.nntp.dca.giganews.com!border1.nntp.dca.giganews.com!nntp.gigan
ews.com!postnews.google.com!g49g2000cwa.googlegroups.com!not-for-mail[vbcol=seagreen]


--

This posting is provided "AS IS" with no warranties, and confers no rights.
Use of included script samples are subject to the terms specified at
http://www.microsoft.com/info/cpyright.htm

Note: For the benefit of the community-at-large, all responses to this
message are best directed to the newsgroup/thread from which they
originated.

grisha0@gmail.com

2005-11-29, 5:55 pm

I'll chceck it :]
thx.

btw so the BAM is able to monitor only start and end orchestration ??

i'd like to achieve posibility of monitoring each shape in
orchestration
at least for test purposes... but further in deve;popement i will need
at least few steps in each orchestration monitored in real time. i
thought that bam will do the trick.

is there any other solution ??

ofcourse i can create a DB in sql and after each shape put an send to
sql statement (insert or update) but im looking for "out of box"
solution...

Keith Lim

2005-11-30, 5:52 pm

Hi Grzegorz,

There are several ways to "BAMify" an orchestration.
1) Non programatically via deployed TPE tracking profile.
2) Programmatically via EventStream classes (DirectEventStream,
BufferedEventStream and/or OrchestrationEventStream*)

Note that only DirectEventStream writes directly to BAMPrimaryImport db.
This maybe what you want to avoid the small latency. All the others
including TPE enabled tracking, writes data to MessageBox db first.
TDDS will the pick up the data in chunck from the message box and process
and move them to BAMPrimaryImport db.

* OrchestrationEventStream is available in BizTalk 2004 w/SP1 and BizTalk
2006 (currently Beta).
OES is transactional within the context of Orchestration, i.e. when
Orchestration process persists the data, BAM data is persisted as well.

Feel free to post more question.

Thanks,
Keith Lim [MSFT]

P.s: some additional info see my blog on:
http://blogs.msdn.com/keithlim/default.aspx

--------------------[vbcol=seagreen]
23:22:22 GMT)[vbcol=seagreen]
rv:1.7.12) Gecko/20050919 Firefox/1.0.7,gzip(gfe),gzip(gfe)[vbcol=seagreen]
keli.elartnet.pl:8080 (squid/2.5.STABLE10-RC3-20050512)[vbcol=seagreen]
posting-host=193.238.180.190;[vbcol=seagreen]
TK2MSFTNGXA02.phx.gbl!TK2MSFTNGP08.phx.gbl!newsfeed00.sul.t-online.de!t-onli
ne.de!news.glorb.com!postnews.google.com!g47g2000cwa.googlegroups.com!not-fo
r-mail[vbcol=seagreen]


--

This posting is provided "AS IS" with no warranties, and confers no rights.
Use of included script samples are subject to the terms specified at
http://www.microsoft.com/info/cpyright.htm

Note: For the benefit of the community-at-large, all responses to this
message are best directed to the newsgroup/thread from which they
originated.

Keith Lim

2005-11-30, 5:52 pm

And to answer your question on this:

btw so the BAM is able to monitor only start and end orchestration ??
Answer: BAM is able to monitor process at every shape. (See
DirectEventStream and other methods below).

Thanks,
Keith Lim [MSFT]

--------------------[vbcol=seagreen]
li[vbcol=seagreen]
fo[vbcol=seagreen]
rights.[vbcol=seagreen]


--

This posting is provided "AS IS" with no warranties, and confers no rights.
Use of included script samples are subject to the terms specified at
http://www.microsoft.com/info/cpyright.htm

Note: For the benefit of the community-at-large, all responses to this
message are best directed to the newsgroup/thread from which they
originated.

Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com