<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	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/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>underdog-blog &#187; BusinessWorks</title>
	<atom:link href="http://blog.underdog-projects.net/tag/businessworks/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.underdog-projects.net</link>
	<description>Just another WordPress weblog</description>
	<lastBuildDate>Sat, 23 Oct 2010 18:43:18 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1.3</generator>
		<item>
		<title>handling a few thousand simultaneous connections in TIBCO BusinessWorks</title>
		<link>http://blog.underdog-projects.net/2009/12/handling-a-few-thousand-simultaneous-connections-in-tibco-businessworks/</link>
		<comments>http://blog.underdog-projects.net/2009/12/handling-a-few-thousand-simultaneous-connections-in-tibco-businessworks/#comments</comments>
		<pubDate>Tue, 08 Dec 2009 15:22:16 +0000</pubDate>
		<dc:creator>jens</dc:creator>
				<category><![CDATA[TIBCO]]></category>
		<category><![CDATA[BusinessWorks]]></category>
		<category><![CDATA[c10k]]></category>
		<category><![CDATA[nio]]></category>
		<category><![CDATA[tomcat]]></category>

		<guid isPermaLink="false">http://blog.underdog-projects.net/?p=472</guid>
		<description><![CDATA[Scaling with TIBCO BusinessWorks can sometimes be a bit tricky. Recently I began testing some scenarios how to scale a Webservice a bit larger. The first source of information was of course the official documentation and to look at the proposed best practice values for such an engine. To start small, I tried a HTTP [...]]]></description>
			<content:encoded><![CDATA[<p>Scaling with TIBCO BusinessWorks can sometimes be a bit tricky. Recently I began testing some scenarios how to scale a Webservice a bit larger. The first source of information was of course the official documentation and to look at the proposed best practice values for such an engine.<br />
To start small, I tried a HTTP Receiver with a 32bit JVM runtime. I set the heap to the maximum amount possible (something about 1.7gig) and tried how many connections I could handle with that. After a few hundred (300-400) the engine alsways ran into an Out-Of-Memory Exception. From that point the engine was often not recoverable and had to be killed.<br />
After that I tried my luck with an 64bit JVM. Theoretically, with more RAM more connections should be possible, so lets go for it.<br />
I increased the heap size to about 4gig. With that value, the engine actually consumed something about 6gig of memory (I only had 8gig on my test machine). Running the same test as before the connection count increased linearly. That was something I didn&#8217;t expect. First of I expeceted the Memory consumption should lower on the amount of connections (because of the more reusable objects) and an increase in CPU load because of the more and more complicated handling of the larger heap on the JVM end.<br />
Despite that I came close to handle about one thousand connections. This seems pretty good but was not enough for what I had in mind. The only possibility I saw at that point was to increase the Memory further and further to get more connections running. A second concern which came to my mind was the thread handling. In a default Tomcat installation ever connection gets its own thread. This does consume a lot of memory but also increases the thread count of the server engine dramatically.<br />
With that in mind I remembered something I read about Tomcat 6 a while ago. For the purpose of handling a lot of simultaneous and enduring Javascript requests Tomcat introduced a new kind of connector engine which uses the Java NIO Framework. To explain this a little, Sun introduced this framework in Java 1.4 to handle IO over a single thread mechanism and use mostly OS provided functions for memory allocation and interaction. So in theory this could be the ideal framework for handling a lot of network IO. Tomcat introduced this feature with the c10k problem specifically in mind. So I began searching around how I could get a similar behvior out of BusinessWorks.<br />
What I didn&#8217;t know at that point was, that TIBCO already introduced this feature into BusinessWorks with version 5.7. You can switch the HTTP connector engine with some parameter in the HTTP Connection resource.</p>
<div id="attachment_511" class="wp-caption aligncenter" style="width: 359px"><img src="http://blog.underdog-projects.net/wp-content/uploads/2009/12/http_connection.jpg" alt="HTTP Connection - engine selector" title="http_connection" width="349" height="281" class="size-full wp-image-511" /><p class="wp-caption-text">HTTP Connection - engine selector</p></div>
<p>So I changed the connector engine and restartet the test. This time I started small. I set the heap to 512MB and limited the maxProcessor to 500. What I then saw was unexpected. The engine filled up right to the ten thousand requests I send. There occured no Out-Of-Memory at all. What was also interesting was, that the engine held 10k connections despite the maxprocessors was set to 500.<br />
So to conclude the result, the new connector is quite impressive when you need to handle a lot of simultanous connection and have not a lot of memory to spare. On the other hand, when you use it, you loose some of the TIBCO integrated features to limit your load. Further to that, the TIBCO documentation states that due to the single thread arcitecture you increase latency. So as always there is a tradeoff.</p>
<p>One final sidenote. I had some issues with the BusinessWorks 5.7.1 engine so I upgraded it to 5.7.2. Than it ran without a glitch.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.underdog-projects.net/2009/12/handling-a-few-thousand-simultaneous-connections-in-tibco-businessworks/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>TIBCO Designer Panel too small</title>
		<link>http://blog.underdog-projects.net/2009/10/tibco-designer-panel-too-small/</link>
		<comments>http://blog.underdog-projects.net/2009/10/tibco-designer-panel-too-small/#comments</comments>
		<pubDate>Tue, 13 Oct 2009 16:52:38 +0000</pubDate>
		<dc:creator>jens</dc:creator>
				<category><![CDATA[TIBCO]]></category>
		<category><![CDATA[BusinessWorks]]></category>
		<category><![CDATA[designer]]></category>

		<guid isPermaLink="false">http://blog.underdog-projects.net/?p=459</guid>
		<description><![CDATA[Recently I ran into some rather trivial problem which isn&#8217;t really addressed by the TIBCO Designer. I had a process which wouldn&#8217;t fit into the Design Panel. There was just not enough space on the canvas to fit in the actual flow. After asking around I came to the conclusion that every designer (from different [...]]]></description>
			<content:encoded><![CDATA[<p>Recently I ran into some rather trivial problem which isn&#8217;t really addressed by the TIBCO Designer. I had a process which wouldn&#8217;t fit into the Design Panel. There was just not enough space on the canvas to fit in the actual flow.<br />
After asking around I came to the conclusion that every designer (from different colleges I work with) had a different resolution for the Design canvas. Nobody knew any kind of property where you can set this resolution, so I began searching around.<br />
The designer uses basically 2 Folder for its configs. One is the installation folder with the designer.tra (<a href="http://blog.underdog-projects.net/2009/04/improve-tibco-designer-tester-performance-under-linux/">already explored this one</a>). The other one is the .TIBCO folder in your user home directory. In that folder there exists a file with the name &#8220;Designer5.prefs&#8221;.<br />
The content of this file consists mainly of position data of the various dialogs. Further to that it includes all the values which you can set through the designer preferences window. Back to the actual topic, I found the following two values:</p>
<blockquote><p>graph.height.pref=712<br />
graph.width.pref=1515</p></blockquote>
<p>These values represent the default size which the Designer allocated for its canvas. As you can see the default is pretty small on this one. I also found installations where both values where ten times larger then this. So far I found no performance penalty to this.<br />
The only pattern I found is that newer installation had smaller values as default. Where this value comes from and how it is determined stays unclear to me.</p>
<p>One other thing I found during my research. If the panel is to small for the current process you can drag one activity right next to the border and then start to move it via keyboard (&#8216;Shift + Cursor&#8217;). By doing so you drag the icon out of the canvas, but the position will be updated internally. After that you just need to refresh the process view and voila you have expanded the canvas size. But this is just a quick and dirty work-around.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.underdog-projects.net/2009/10/tibco-designer-panel-too-small/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>init script for the TIBCO Administrator</title>
		<link>http://blog.underdog-projects.net/2009/09/init-script-for-the-tibco-administrator/</link>
		<comments>http://blog.underdog-projects.net/2009/09/init-script-for-the-tibco-administrator/#comments</comments>
		<pubDate>Sat, 05 Sep 2009 17:03:06 +0000</pubDate>
		<dc:creator>jens</dc:creator>
				<category><![CDATA[TIBCO]]></category>
		<category><![CDATA[Administrator]]></category>
		<category><![CDATA[BusinessWorks]]></category>
		<category><![CDATA[shell]]></category>

		<guid isPermaLink="false">http://blog.underdog-projects.net/?p=428</guid>
		<description><![CDATA[I recently ran into the situation that I needed to install a TIBCO BusinessWorks with Administrator onto a RedHat Server. Under Windows the installer provides everthing you need to run your domain as a Service. In Linux this looks different. I have found no init script templates nor did the installer generate me some stubs. [...]]]></description>
			<content:encoded><![CDATA[<p>I recently ran into the situation that I needed to install a TIBCO BusinessWorks with Administrator onto a RedHat Server. Under Windows the installer provides everthing you need to run your domain as a Service. In Linux this looks different. I have found no init script templates nor did the installer generate me some stubs. So I had to write them myself. So here is what I came up with (I know it isn&#8217;t perfect, but it works &#8211; suggestions are always welcome).</p>
<p><strong>for the Administrator:</strong></p>
<pre class='prettyprint lang-shell'>
#!/bin/bash

DOMAIN=tibcoesb
USER=esb
TIBCO_HOME=/home/$USER/tibco
PATH=/bin:/usr/bin:/sbin:/usr/sbin
NAME=tibco-admin

start() {
# Start daemons.
echo "Starting Tibco Admin"
/bin/su $USER -c"cd $TIBCO_HOME/administrator/domain/$DOMAIN/bin;./tibcoadmin_$DOMAIN 2>&#038;1 | /usr/bin/logger -t $NAME" &#038;
echo "done"
}

stop() {
# Stop daemons.
echo "Shutting down Tibco Admin"
killall tibcoadmin_$DOMAIN
echo "done"
}

case "$1" in
  start)
	start
	    ;;
  stop)
	stop
    	    ;;
  *)
        echo $"Usage: $0 {start|stop}"
    	exit 2
esac
</pre>
<p><strong>for the Hawk</strong></p>
<pre class='prettyprint lang-shell'>
#!/bin/bash

DOMAIN=tibcoesb
USER=esb
TIBCO_HOME=/home/$USER/tibco
PATH=/bin:/usr/bin:/sbin:/usr/sbin
NAME=tibco-hawk

start() {
# Start daemons.
echo "Starting Tibco Hawk"
/bin/su $USER -c"cd $TIBCO_HOME/tra/domain/$DOMAIN;./hawkagent_$DOMAIN 2>&#038;1 | /usr/bin/logger -t $NAME" &#038;
echo "done"
}

stop() {
# Stop daemons.
echo "Shutting down Tibco Hawk"
killall hawkagent_$DOMAIN
echo "done"
}

case "$1" in
  start)
	start
	    ;;
  stop)
	stop
    	    ;;
  *)
        echo $"Usage: $0 {start|stop}"
    	exit 2
esac
</pre>
]]></content:encoded>
			<wfw:commentRss>http://blog.underdog-projects.net/2009/09/init-script-for-the-tibco-administrator/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>adding IP-restriction to BusinessWorks processes</title>
		<link>http://blog.underdog-projects.net/2009/08/adding-ip-restriction-to-businessworks-processes/</link>
		<comments>http://blog.underdog-projects.net/2009/08/adding-ip-restriction-to-businessworks-processes/#comments</comments>
		<pubDate>Sun, 16 Aug 2009 23:16:07 +0000</pubDate>
		<dc:creator>jens</dc:creator>
				<category><![CDATA[TIBCO]]></category>
		<category><![CDATA[BusinessWorks]]></category>
		<category><![CDATA[TRA]]></category>

		<guid isPermaLink="false">http://blog.underdog-projects.net/?p=417</guid>
		<description><![CDATA[Recently I got into the situation that somebody used some interface a way it was not designed for and so created an out-of-memory situation which couldn&#8217;t be handled by the engine itself. So now I got the case that one client block the complete service due to invalid requests which he shouldn&#8217;t do in the [...]]]></description>
			<content:encoded><![CDATA[<p>Recently I got into the situation that somebody used some interface a way it was not designed for and so created an out-of-memory situation which couldn&#8217;t be handled by the engine itself. So now I got the case that one client block the complete service due to invalid requests which he shouldn&#8217;t do in the first place.<br />
In the short term there seemed to be only one solution, block the client. So I began to search around how this could be done.</p>
<p>The easiest way to achieve this would be to change the authentication for this service. Unluckily this service is used by a lot of other clients, so I can&#8217;t change it out of the blue. Next thing that came to my mind was using the underlying tomcat to do some IP-based blocking. After some searching around I gave that one up. Tibco has a really complex deployment model for BusinessWorks so I wasn&#8217;t able to even find the process-specific section for the tomcat engine.<br />
After some searching around in the documentation (actually several hours &#8211; hooray to a usable documentation) I found some parameter which allows you to block IPs with some TRA-file parameters. In case you want to look it up yourself it is in the BusinessWorks documentation under &#8216;Administration&#8217; -> Chapter 8 &#8216;Custom Engine Properties&#8217; -> &#8216;Available Custom Engine Properties&#8217; (and another hooray to the excellent formatting &#8211; Note to Tibco: HTML has tags, so you can do more with the content then continuous text &#8211; even some breaks would enhance the experience).<br />
So back to the point:</p>
<blockquote><p>
bw.plugin.http.server.allowIPAddresses<br />
bw.plugin.http.server.restrictIPAddresses
</p></blockquote>
<p>Both tags are rather self explanatory so you can use right away. Tibco says you can use it with a single IP, a list of IPs (comma-separated) or regular expression. As stated before this highlight of a documentation doesn&#8217;t say what reg-exp syntax means. I guess Tibco means they use the Tomcat engine for evaluation of these values an that means they use the Java syntax described <a href="http://java.sun.com/developer/technicalArticles/releases/1.4regex/">here</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.underdog-projects.net/2009/08/adding-ip-restriction-to-businessworks-processes/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>writing Unicode characters to Oracle with TIBCO BusinessWorks</title>
		<link>http://blog.underdog-projects.net/2009/05/writing-unicode-characters-to-oracle-with-tibco-businessworks/</link>
		<comments>http://blog.underdog-projects.net/2009/05/writing-unicode-characters-to-oracle-with-tibco-businessworks/#comments</comments>
		<pubDate>Thu, 28 May 2009 12:19:33 +0000</pubDate>
		<dc:creator>jens</dc:creator>
				<category><![CDATA[TIBCO]]></category>
		<category><![CDATA[BusinessWorks]]></category>
		<category><![CDATA[NCLOB]]></category>

		<guid isPermaLink="false">http://blog.underdog-projects.net/?p=282</guid>
		<description><![CDATA[As always, I get the most puzzling mysteries from work requirements. I got the requirement of sending an email with Russian characters through TIBCO BusinessWorks. So far so good. BusinessWorks has full support of Unicode, so it should be not a problem to get this one running. Lucky me the reality looks different. For this [...]]]></description>
			<content:encoded><![CDATA[<p>As always, I get the most puzzling mysteries from work requirements. I got the requirement of sending an email with Russian characters through TIBCO BusinessWorks. So far so good. BusinessWorks has full support of Unicode, so it should be not a problem to get this one running. Lucky me the reality looks different.</p>
<p>For this email system a database template system was used and of course the database was an upgraded Oracle 10g, so all the columns (for historic reasons) were Latin-1 and not Unicode.</p>
<p>But a simple Google query even showed a solution for this problem. Oracle introduced, exactly for this case, a new data type (NCHAR &#8211; means Unicode character). After changing the table column from CLOB to NCLOB the database should have the ability to store Unicode characters, even if it is running in Latin-1 mode.</p>
<p>First thing I tried, was to insert a valid Russian email template into the database and lucky me, the text which was stored in the database, was still a bunch of invalid Latin-1 characters (character code 0xbf).</p>
<p>After quite some googling I came  to <a href="http://www.Oracle.com/technology/sample_code/tech/java/codesnippet/jdbc/nchar/readme.html">this Oracle article</a>. In that article Oracle explains a bit more how to force the JVM to use Unicode characters for the JDBC connection instead of the character set presented from the database. With nothing to lose I tried it in my designer via modifying the designer.tra (I just appended the following parameter).</p>
<pre>
 -DOracle.jdbc.defaultNChar=true
</pre>
<p>After that, it worked like a charm. Now it was possible to write Unicode characters to the new created NCLOB columns in the database.</p>
<p>After creating the template and doing a trial run I got curious what would happen if I removed that parameter and tried to read from the Unicode column. To my surprise it worked out-of-box. So you can read Unicode characters from an Oracle database without modifying anything. The indifferences just happen if you want to write via JDBC.</p>
<p>To round this up this bug is not limited to TIBCO BusinessWorks. I also tried it with a tool named <a href="http://www.minq.se/products/dbvis/">DbVisualizer</a> (also Java based) and (what really annoys me, because it is c-based and shouldn&#8217;t have this JDBC bug) <a href="http://tora.sf.net">tora</a>. All showed the same result on writing to that database.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.underdog-projects.net/2009/05/writing-unicode-characters-to-oracle-with-tibco-businessworks/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

