<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	>
<channel>
	<title>Comments on: Scheduling a servlet in WebSphere Application Server</title>
	<atom:link href="http://www.albeesonline.com/blog/2008/01/16/scheduling-a-servlet-in-websphere-application-server/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.albeesonline.com/blog/2008/01/16/scheduling-a-servlet-in-websphere-application-server/</link>
	<description>Something about JEE and WebSphere. Java, JEE and WebSphere tips and tutorials</description>
	<pubDate>Thu, 04 Dec 2008 00:47:37 +0000</pubDate>
	<generator>http://wordpress.org/?v=abc</generator>
		<item>
		<title>By: carl</title>
		<link>http://www.albeesonline.com/blog/2008/01/16/scheduling-a-servlet-in-websphere-application-server/#comment-1598</link>
		<dc:creator>carl</dc:creator>
		<pubDate>Wed, 09 Jul 2008 11:02:32 +0000</pubDate>
		<guid isPermaLink="false">http://www.albeesonline.com/2008/01/16/scheduling-a-servlet-in-websphere-application-server/#comment-1598</guid>
		<description>It appears you can use the Scheduler API for what you want (servlet) - bit check the Info Center for more details under the 'Developing and scheduling tasks' section:
"Creating and manipulating scheduled tasks through the Scheduler interface is only supported from within the EJB container or Web container (Enterprise beans or servlets). Looking up and using a configured scheduler from a J2EE application client container is not supported."</description>
		<content:encoded><![CDATA[<p>It appears you can use the Scheduler API for what you want (servlet) - bit check the Info Center for more details under the &#8216;Developing and scheduling tasks&#8217; section:<br />
&#8220;Creating and manipulating scheduled tasks through the Scheduler interface is only supported from within the EJB container or Web container (Enterprise beans or servlets). Looking up and using a configured scheduler from a J2EE application client container is not supported.&#8221;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: carl</title>
		<link>http://www.albeesonline.com/blog/2008/01/16/scheduling-a-servlet-in-websphere-application-server/#comment-1589</link>
		<dc:creator>carl</dc:creator>
		<pubDate>Wed, 09 Jul 2008 09:38:03 +0000</pubDate>
		<guid isPermaLink="false">http://www.albeesonline.com/2008/01/16/scheduling-a-servlet-in-websphere-application-server/#comment-1589</guid>
		<description>HI. IBM notes:When inside these managed environments, the Timer API (or WebSphere Scheduler API) is a much better alternative to java.util.Timer: ** java.util.Timer should never be used within managed environments, as it creates threads outside the purview of the container. **</description>
		<content:encoded><![CDATA[<p>HI. IBM notes:When inside these managed environments, the Timer API (or WebSphere Scheduler API) is a much better alternative to java.util.Timer: ** java.util.Timer should never be used within managed environments, as it creates threads outside the purview of the container. **</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Albin Joseph</title>
		<link>http://www.albeesonline.com/blog/2008/01/16/scheduling-a-servlet-in-websphere-application-server/#comment-780</link>
		<dc:creator>Albin Joseph</dc:creator>
		<pubDate>Mon, 23 Jun 2008 08:09:15 +0000</pubDate>
		<guid isPermaLink="false">http://www.albeesonline.com/2008/01/16/scheduling-a-servlet-in-websphere-application-server/#comment-780</guid>
		<description>As you mentioned if we create our own thread in WebSphere, none of the WebSphere resources will be available in our thread. So if our scheduler needs the context or any other container provided information we should not go for the TimerTask scheduler approach. 

We should use this approach only if we need a scheduler that does not require any of the container resources. I feel this approach is more like creating a scheduler using Cron job or something. I was using this approach for polling a directory and for invoking a webservice using the polled data. In my case it worked well as I was not using any of the WebSphere resources. This approach is good if we need a very simple scheduler in WebSphere that does not require any container resources. 

Unluckily there is no other option to schedule a servlet in WebSphere as far as I know. The WebSphere scheduler or alarm manager is used for scheduling an EJB or JMS. Correct me if I am wrong.</description>
		<content:encoded><![CDATA[<p>As you mentioned if we create our own thread in WebSphere, none of the WebSphere resources will be available in our thread. So if our scheduler needs the context or any other container provided information we should not go for the TimerTask scheduler approach. </p>
<p>We should use this approach only if we need a scheduler that does not require any of the container resources. I feel this approach is more like creating a scheduler using Cron job or something. I was using this approach for polling a directory and for invoking a webservice using the polled data. In my case it worked well as I was not using any of the WebSphere resources. This approach is good if we need a very simple scheduler in WebSphere that does not require any container resources. </p>
<p>Unluckily there is no other option to schedule a servlet in WebSphere as far as I know. The WebSphere scheduler or alarm manager is used for scheduling an EJB or JMS. Correct me if I am wrong.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Gary Pankey</title>
		<link>http://www.albeesonline.com/blog/2008/01/16/scheduling-a-servlet-in-websphere-application-server/#comment-751</link>
		<dc:creator>Gary Pankey</dc:creator>
		<pubDate>Sun, 22 Jun 2008 12:30:18 +0000</pubDate>
		<guid isPermaLink="false">http://www.albeesonline.com/2008/01/16/scheduling-a-servlet-in-websphere-application-server/#comment-751</guid>
		<description>Thanks for the information.  One question.

I typically avoid creating my own threads within the WebSphere container because I'm taking away resources 
away from the container.  I realize if I were to use something like the WebSphere scheduler or alarm manger
resources will be used but at least WebSphere will know about the resource use.  The example you provide is
lightweight and straitforward and therefore I'm inclined to use the strategy as you have documented.

Can you comment on your experiences with using this strategy in WebSphere and creating your own threads within 
the container?</description>
		<content:encoded><![CDATA[<p>Thanks for the information.  One question.</p>
<p>I typically avoid creating my own threads within the WebSphere container because I&#8217;m taking away resources<br />
away from the container.  I realize if I were to use something like the WebSphere scheduler or alarm manger<br />
resources will be used but at least WebSphere will know about the resource use.  The example you provide is<br />
lightweight and straitforward and therefore I&#8217;m inclined to use the strategy as you have documented.</p>
<p>Can you comment on your experiences with using this strategy in WebSphere and creating your own threads within<br />
the container?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: leonardo</title>
		<link>http://www.albeesonline.com/blog/2008/01/16/scheduling-a-servlet-in-websphere-application-server/#comment-106</link>
		<dc:creator>leonardo</dc:creator>
		<pubDate>Sat, 17 May 2008 09:54:34 +0000</pubDate>
		<guid isPermaLink="false">http://www.albeesonline.com/2008/01/16/scheduling-a-servlet-in-websphere-application-server/#comment-106</guid>
		<description>Thanks, exacly what I looking for :-)</description>
		<content:encoded><![CDATA[<p>Thanks, exacly what I looking for <img src='http://www.albeesonline.com/blog/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /></p>
]]></content:encoded>
	</item>
</channel>
</rss>
