<?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"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments for .zugiart</title>
	<atom:link href="http://www.zugiart.com/comments/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.zugiart.com</link>
	<description>Software Engineering, buddhism, and everything else in between.</description>
	<lastBuildDate>Sat, 04 Feb 2012 08:14:00 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3</generator>
	<item>
		<title>Comment on Stateful &amp; standalone apache XML-RPC server by zen</title>
		<link>http://www.zugiart.com/2010/09/java-apache-simple-xmlrpc-server/comment-page-2/#comment-501</link>
		<dc:creator>zen</dc:creator>
		<pubDate>Sat, 04 Feb 2012 08:14:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.zugiart.com/?p=1393#comment-501</guid>
		<description>have you tried using synchronized keyword? 
let&#039;s say, the stack is like this 

xmlrpcClient  xmlrpcServer  FOO(withNonThreadSafeConns)  other servers. 

You are right, the key is then to control no two threads of execution uses FOO and the resources within it at the same time. If that is true, the synchronized keyword might be enough (I don&#039;t know what your scenario is). Basically FOO needs to wrap around the non-threadsafe resources and ensures that when clients of FOO calls its methods/services, it does so in a thread-safe way. 

You can try: Ihttp://www.google.co.com/search?q=synchronized+keyword for synchronized keyword in java. 

If this won&#039;t do, and you think you want to use a request queue. The queue mechanism itself must be threadsafe, and it also need to be blocking. the flow then becomes: 

client  xmlrpcserver  queue  FOO  servers

1. client(s) call server 
2. server receive request, put request in the queue and blocks the thread of execution until a the result is processed by FOO. 
3. once result is received by server, returns result back to client. 

the blocking part is important because RPC is a synchronous style operation. It is not event-style operation.

good luck!</description>
		<content:encoded><![CDATA[<p>have you tried using synchronized keyword?<br />
let&#8217;s say, the stack is like this </p>
<p>xmlrpcClient  xmlrpcServer  FOO(withNonThreadSafeConns)  other servers. </p>
<p>You are right, the key is then to control no two threads of execution uses FOO and the resources within it at the same time. If that is true, the synchronized keyword might be enough (I don&#8217;t know what your scenario is). Basically FOO needs to wrap around the non-threadsafe resources and ensures that when clients of FOO calls its methods/services, it does so in a thread-safe way. </p>
<p>You can try: Ihttp://www.google.co.com/search?q=synchronized+keyword for synchronized keyword in java. </p>
<p>If this won&#8217;t do, and you think you want to use a request queue. The queue mechanism itself must be threadsafe, and it also need to be blocking. the flow then becomes: </p>
<p>client  xmlrpcserver  queue  FOO  servers</p>
<p>1. client(s) call server<br />
2. server receive request, put request in the queue and blocks the thread of execution until a the result is processed by FOO.<br />
3. once result is received by server, returns result back to client. </p>
<p>the blocking part is important because RPC is a synchronous style operation. It is not event-style operation.</p>
<p>good luck!</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Stateful &amp; standalone apache XML-RPC server by Ctgaurav</title>
		<link>http://www.zugiart.com/2010/09/java-apache-simple-xmlrpc-server/comment-page-2/#comment-500</link>
		<dc:creator>Ctgaurav</dc:creator>
		<pubDate>Sat, 04 Feb 2012 07:37:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.zugiart.com/?p=1393#comment-500</guid>
		<description>Hi want add a functionality to my XML RPC  server  , Server uses a set of connections to other servers and connections are non serilizable and not thread safe , so to process request of multiple clients at same time problem comes at a time connection used just for one client , i want to aad a request queue and response queue for clients ...how i acn implement this ..what is better way to acomplish this </description>
		<content:encoded><![CDATA[<p>Hi want add a functionality to my XML RPC  server  , Server uses a set of connections to other servers and connections are non serilizable and not thread safe , so to process request of multiple clients at same time problem comes at a time connection used just for one client , i want to aad a request queue and response queue for clients &#8230;how i acn implement this ..what is better way to acomplish this</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on zroundup, a demo by Anonymous</title>
		<link>http://www.zugiart.com/2009/09/zero-configuration-roundup/comment-page-1/#comment-490</link>
		<dc:creator>Anonymous</dc:creator>
		<pubDate>Wed, 25 Jan 2012 01:52:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.zugiart.com/?p=525#comment-490</guid>
		<description>This was a while back!  Yes I did, but didn&#039;t have time to push it all the way as a proper product. I used the demo script as a template and modified it from there. I did managed to get it fit into the USB stick, which is ultra portable but the performance is slow as. I thought it&#039;ll be better if I could make some program to copy it into a temp folder in the C: drive and upon closure copies the data back to USB. But I never finished it to that point. 

I&#039;d love to have more spare time to continue it though. Atm an instance of this is running locally in my home to manage my life task. Python Roundup is very versatile and flexible, I loved it.</description>
		<content:encoded><![CDATA[<p>This was a while back!  Yes I did, but didn&#8217;t have time to push it all the way as a proper product. I used the demo script as a template and modified it from there. I did managed to get it fit into the USB stick, which is ultra portable but the performance is slow as. I thought it&#8217;ll be better if I could make some program to copy it into a temp folder in the C: drive and upon closure copies the data back to USB. But I never finished it to that point. </p>
<p>I&#8217;d love to have more spare time to continue it though. Atm an instance of this is running locally in my home to manage my life task. Python Roundup is very versatile and flexible, I loved it.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on zroundup, a demo by interestedparty</title>
		<link>http://www.zugiart.com/2009/09/zero-configuration-roundup/comment-page-1/#comment-489</link>
		<dc:creator>interestedparty</dc:creator>
		<pubDate>Wed, 25 Jan 2012 01:11:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.zugiart.com/?p=525#comment-489</guid>
		<description>Hi,

Did you ever get it to work as zero config?</description>
		<content:encoded><![CDATA[<p>Hi,</p>
<p>Did you ever get it to work as zero config?</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Java: Date, ISO string, and timezone by Balu</title>
		<link>http://www.zugiart.com/2010/09/java-converting-to-and-from-iso-date/comment-page-1/#comment-458</link>
		<dc:creator>Balu</dc:creator>
		<pubDate>Sat, 31 Dec 2011 10:59:24 +0000</pubDate>
		<guid isPermaLink="false">http://www.zugiart.com/?p=1388#comment-458</guid>
		<description>Hey AB.. thanks a lot... its solved my issue.  :)</description>
		<content:encoded><![CDATA[<p>Hey AB.. thanks a lot&#8230; its solved my issue.  <img src='http://www.zugiart.com/main/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on The Ten Factors by Siddharth</title>
		<link>http://www.zugiart.com/2010/05/ten-factors-of-life/comment-page-1/#comment-449</link>
		<dc:creator>Siddharth</dc:creator>
		<pubDate>Sat, 17 Dec 2011 19:12:23 +0000</pubDate>
		<guid isPermaLink="false">http://www.zugiart.com/?p=1151#comment-449</guid>
		<description>Thank you very much!! I love the way you explained everything pictorially! Maybe you can also talk about consistency from the beginning to the end :)</description>
		<content:encoded><![CDATA[<p>Thank you very much!! I love the way you explained everything pictorially! Maybe you can also talk about consistency from the beginning to the end <img src='http://www.zugiart.com/main/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Stateful &amp; standalone apache XML-RPC server by zen</title>
		<link>http://www.zugiart.com/2010/09/java-apache-simple-xmlrpc-server/comment-page-2/#comment-396</link>
		<dc:creator>zen</dc:creator>
		<pubDate>Wed, 26 Oct 2011 08:11:24 +0000</pubDate>
		<guid isPermaLink="false">http://www.zugiart.com/?p=1393#comment-396</guid>
		<description>@ben, ah thats what you mean. So yeah in short if you use the above snippets, you do have to make your handler object thread-safe. Try this: http://www.google.com/search?q=java+thread+safe</description>
		<content:encoded><![CDATA[<p>@ben, ah thats what you mean. So yeah in short if you use the above snippets, you do have to make your handler object thread-safe. Try this: <a href="http://www.google.com/search?q=java+thread+safe" rel="nofollow">http://www.google.com/search?q=java+thread+safe</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Stateful &amp; standalone apache XML-RPC server by zen</title>
		<link>http://www.zugiart.com/2010/09/java-apache-simple-xmlrpc-server/comment-page-2/#comment-395</link>
		<dc:creator>zen</dc:creator>
		<pubDate>Wed, 26 Oct 2011 08:09:17 +0000</pubDate>
		<guid isPermaLink="false">http://www.zugiart.com/?p=1393#comment-395</guid>
		<description>Hm, I don&#039;t understand your question, sorry - it&#039;s a bit unclear. But the xml rpc library from apache is quite flexible, so the answer is actually &quot;depends on your configuration&quot;. You can have it so that a new handler is created for every request (and every request is a new thread). You can also make it so that the handler gets recycled for all request that asks for handler.methodName() thus allowing the handler to be stateful. 

This example uses the same object and reuse it as the handler for each request. In the above example &quot;SimpleXMLRpcTest&quot; - if 3 clients calls zen.hello() at (roughly) the same time, the one object will be accessed concurrently. Therefore if you use my example, and you then share key variables between functions, you have to be careful and handle the concurrent access properly (just use &#039;synchronized&#039; keyword as appropriate).</description>
		<content:encoded><![CDATA[<p>Hm, I don&#8217;t understand your question, sorry &#8211; it&#8217;s a bit unclear. But the xml rpc library from apache is quite flexible, so the answer is actually &#8220;depends on your configuration&#8221;. You can have it so that a new handler is created for every request (and every request is a new thread). You can also make it so that the handler gets recycled for all request that asks for handler.methodName() thus allowing the handler to be stateful. </p>
<p>This example uses the same object and reuse it as the handler for each request. In the above example &#8220;SimpleXMLRpcTest&#8221; &#8211; if 3 clients calls zen.hello() at (roughly) the same time, the one object will be accessed concurrently. Therefore if you use my example, and you then share key variables between functions, you have to be careful and handle the concurrent access properly (just use &#8216;synchronized&#8217; keyword as appropriate).</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Stateful &amp; standalone apache XML-RPC server by Ben</title>
		<link>http://www.zugiart.com/2010/09/java-apache-simple-xmlrpc-server/comment-page-2/#comment-394</link>
		<dc:creator>Ben</dc:creator>
		<pubDate>Wed, 26 Oct 2011 07:55:01 +0000</pubDate>
		<guid isPermaLink="false">http://www.zugiart.com/?p=1393#comment-394</guid>
		<description>In apache xmlrpc: what happens if 2 or more clients send a request at the same time? Are they queued? Do I have the guarantee that if two clients call the same or different functions they are executed one after another and not at the same time?</description>
		<content:encoded><![CDATA[<p>In apache xmlrpc: what happens if 2 or more clients send a request at the same time? Are they queued? Do I have the guarantee that if two clients call the same or different functions they are executed one after another and not at the same time?</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Stateful &amp; standalone apache XML-RPC server by Ben</title>
		<link>http://www.zugiart.com/2010/09/java-apache-simple-xmlrpc-server/comment-page-2/#comment-393</link>
		<dc:creator>Ben</dc:creator>
		<pubDate>Wed, 26 Oct 2011 07:47:48 +0000</pubDate>
		<guid isPermaLink="false">http://www.zugiart.com/?p=1393#comment-393</guid>
		<description>thx for your article! Hey,zen,I wanna ask a question: Does xmlrpc server call multi-threads to cope with the requests from different clients?  thats to say: server calls the handler-method one by one request OR server uses multi-threads to call the method to handle different requests from different clients at same time? i really wanna know~pls~~</description>
		<content:encoded><![CDATA[<p>thx for your article! Hey,zen,I wanna ask a question: Does xmlrpc server call multi-threads to cope with the requests from different clients?  thats to say: server calls the handler-method one by one request OR server uses multi-threads to call the method to handle different requests from different clients at same time? i really wanna know~pls~~</p>
]]></content:encoded>
	</item>
</channel>
</rss>

