0 votes
153 views
in Integrations by (16.1k points)
For performance reasons we may want to make logging asynchronous what are the possible ways of accomplishing it in a BPM service.

3 Answers

0 votes
by (2k points)
Hi. You can create an "utility service" (in a toolkit) that use the JMS/MQ connector (part of the BPM provided "Integration.jar") to "write" the log on a queue (a JMS queue or a WebSphere Queue). This is a fast and asynchronous way to log messages.

Another application can "dequeue" the messages from the queue and manage the informations as required (eg. put them on a relational DB).
0 votes
by (16.1k points)

If you dont want to use external processing of log messages a simple way is to use the javascript timeout function

setTimeout(function(){ <write to log/db> }, 3000);

where 3000 is the delay in processing the function, this way the current thread does not wait for the completion of the write.

0 votes
by (1.3k points)
you can use any async logging framework in bpm. just create a server side js function and call the underlying logging l

Related questions

0 votes
0 answers 584 views
0 votes
1 answer 324 views
0 votes
0 answers 44 views
0 votes
1 answer 114 views
0 votes
1 answer 791 views
0 votes
0 answers 59 views
0 votes
1 answer 243 views
0 votes
0 answers 173 views
0 votes
0 answers 45 views
0 votes
2 answers 869 views
0 votes
0 answers 129 views
0 votes
0 answers 87 views
0 votes
0 answers 175 views

589 questions

485 answers

90 comments

1.8k users

Dosvak IBM BPM /BAW Products, Download Evaluation
Process & Performance Tools Process & Performance Tools
Code Analyzer Code Analyzer
UI Toolkit UI Toolkit
Integration Monitoring Integration Monitoring
Welcome to BPM Tips Q&A, Community wiki/forum where you can ask questions and receive answers from other IBM BPM experts and members of the community. Users with 2000 points will automatically be promoted to expert level.
Created by Dosvak LLC
Our Youtube Channel
...