[jboss-user] [JBoss Web Services] - Throttling of WS Response for JBPM
Aftab Mahmood
do-not-reply at jboss.com
Mon Jan 31 01:24:25 EST 2011
Aftab Mahmood [http://community.jboss.org/people/aftabm] created the discussion
"Throttling of WS Response for JBPM"
To view the discussion, visit: http://community.jboss.org/message/584196#584196
--------------------------------------------------------------
The user of my system was creating a JBPM process which was query a remote database repeatedly. The response of the query was some time so large so that it was crashing JBPM. I implemented a throttling mechanism by modifying and adding new classes in JBPM and JBossWS. In SOAPClient of JBPM I added two new attributes in HTTP header RESPONSE_LIMIT and OVER_LIMIT_RESPONSE_ACTION. I then modified SOAPMessageUnMarshaller class of JBossWS and managed HTTP Input Stream as per the action defined in the higher layer.
I have attached the source code in case some one else is facing the same issue.
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/584196#584196]
Start a new discussion in JBoss Web Services at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2044]
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-user/attachments/20110131/3cdd4da6/attachment.html
More information about the jboss-user
mailing list