Discussions
Categories
Choose a Product
THRUST SERVICES
CORE APPS
CE PRODUCTS
...
Quick Links
POPULAR
HELPFUL TIPS
Groups
My Links
FOR SIGNED IN MEMBERS:
Back to website
Home
TeamSite
TeamSite, LiveSite and OpenDeploy
Blocking Servlet- long operation - Best solution
Migrateduser
Hello -
We run teamsite 7.3.1 on redhat.
I have a requirement to generate 50 different images with different aspect ratios of an asset that's in Media Bin.
The 50 different images will be saved in teamsite.
I'm implementing this as follows
- Open a DCT
- Browse to MediaBin and select asset
- Save XML (DCR). Now this contains the asset id of the asset
- Kick off a workflow
- Use URLExternalTask that'll use a Webservice client to interact with MediaBin WebService (all Java).
- Generate all 50 versions and save them in teamsite.
URLExternalTask, ultimately invokes a servlet if I understand it right.
Each call to MediaBin WebService is a blocking call.
As a result calling the websvc 50 times can take a long time (1 minute or more).
So running this inside a servlet container is not the best approach.
It seems like teamsite runs jboss container.
Is there a way to implement asynchronous servlets in teamsite?
Alternately I could just use externaltask or CGITask to avoid the whole thing I guess.
Thanks
A
Find more posts tagged with
Comments
There are no comments yet