<?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>in a rush &#187; JRun</title>
	<atom:link href="http://robrusher.com/category/jrun/feed/" rel="self" type="application/rss+xml" />
	<link>http://robrusher.com</link>
	<description>experience is everything</description>
	<lastBuildDate>Tue, 17 Apr 2012 14:59:01 +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>Create a Windows Service for Flex Server</title>
		<link>http://robrusher.com/2008/04/28/create-a-windows-service-for-flex-server/</link>
		<comments>http://robrusher.com/2008/04/28/create-a-windows-service-for-flex-server/#comments</comments>
		<pubDate>Tue, 29 Apr 2008 04:04:04 +0000</pubDate>
		<dc:creator>Rush</dc:creator>
				<category><![CDATA[Flex]]></category>
		<category><![CDATA[JRun]]></category>
		<category><![CDATA[admininstration]]></category>
		<category><![CDATA[server]]></category>

		<guid isPermaLink="false">http://www.robrusher.com/?p=17</guid>
		<description><![CDATA[<p>There are many reasons why you may want to add a JRun server instance to the Windows Services panel. I&#8221;ve found that its very handy on production machines in a cluster. If one fails, it recovers nicely without me having &#8230;</p>]]></description>
			<content:encoded><![CDATA[<p>There are many reasons why you may want to add a JRun server instance to the Windows Services panel. I&#8221;ve found that its very handy on production machines in a cluster. If one fails, it recovers nicely without me having to help. Here is how I do it.</p>
<p>JRun provides an executable for managing its server instances called <em>jrunsvc.exe</em>. You can find it in the <em>jrun_install_root</em>\\bin directory. Open a command line window to this directory and execute <em>jrunsvc along with some of these options:</em></p>
<table border="1" cellspacing="0" cellpadding="5">
<tbody>
<tr valign="top">
<th align="left">
<div id="1130001" class="CellHeading"><em>Option</em></div>
</th>
<th align="left">
<div id="1130003" class="CellHeading"><em>Description</em></div>
</th>
</tr>
<tr valign="top">
<td align="left">
<div id="1130005" class="CellBody"><em>-install jrun_server [service-name [service-display [service-description]]]</em></div>
</td>
<td align="left">
<div id="1130007" class="CellBody">Installs the JRun server as a Windows service. The Windows service name, Windows service display name, and Windows service description fields are optional. If a name contains spaces, use quotation marks.</div>
<div id="1133738" class="CellBody"><span style="text-decoration: underline;">The Mask:</span><em>jrunsvc -install server_name &#8220;service display name&#8221; &#8220;service description&#8221;</em></p>
<p><span style="text-decoration: underline;">The Example:</span></p>
<p><em><strong>jrunsvc -install flexsamples &#8220;Flex Sample Applications Server&#8221; &#8220;Flex Samples&#8221;</strong></em></p>
</div>
</td>
</tr>
<tr valign="top">
<td align="left">
<div id="1130009" class="CellBody"><em>-remove service-name </em></div>
</td>
<td align="left">
<div id="1130011" class="CellBody"><em>Removes the named Windows service, if you installed it using this utility. You can mark the service for deletion on system start.</em></div>
</td>
</tr>
<tr valign="top">
<td align="left">
<div id="1130013" class="CellBody"><em>-stop service-name</em></div>
</td>
<td align="left">
<div id="1130015" class="CellBody"><em>Starts the named service, if it is not already started.</em></div>
</td>
</tr>
<tr valign="top">
<td align="left">
<div id="1130017" class="CellBody"><em>-start service-name</em></div>
</td>
<td align="left">
<div id="1130019" class="CellBody"><em>Stops the named service, if it has started.</em></div>
</td>
</tr>
<tr valign="top">
<td align="left"><a name="1130206"></a></p>
<div id="1130206" class="CellBody"><em>-console service-name</em></div>
</td>
<td align="left">
<div id="1130208" class="CellBody"><em>Runs the service from the console rather than from the Windows service Control Manager. Use this option for debugging.</em></div>
</td>
</tr>
<tr valign="top">
<td align="left">
<div id="1132565" class="CellBody"><em>-config path-to-jvm.config</em></div>
</td>
<td align="left">
<div id="1132567" class="CellBody"><em>Specifies a path to the JVM configuration file used by the Windows service.</em></div>
<div id="1132575" class="CellBody"><em>Overrides the default, jrun_root\\bin\\jvm.config, to determine the JVM configuration.</em></div>
</td>
</tr>
<tr valign="top">
<td align="left">
<div id="1130021" class="CellBody"><em>-help</em></div>
</td>
<td align="left">
<div id="1130023" class="CellBody"><em>Lists all options.</em></div>
</td>
</tr>
</tbody>
</table>
<p>This table is from the JRun Documentation with some modifications.</p>
<p>That is it! Now, when ever the server is restarted, the necessary Flex servers will start as well.</p>
]]></content:encoded>
			<wfw:commentRss>http://robrusher.com/2008/04/28/create-a-windows-service-for-flex-server/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Feelin&#8217; the Love From Your Logs</title>
		<link>http://robrusher.com/2008/04/28/feelin-the-love-from-your-logs/</link>
		<comments>http://robrusher.com/2008/04/28/feelin-the-love-from-your-logs/#comments</comments>
		<pubDate>Tue, 29 Apr 2008 02:35:17 +0000</pubDate>
		<dc:creator>Rush</dc:creator>
				<category><![CDATA[ColdFusion]]></category>
		<category><![CDATA[JRun]]></category>
		<category><![CDATA[admininstration]]></category>
		<category><![CDATA[logs]]></category>

		<guid isPermaLink="false">http://www.robrusher.com/?p=6</guid>
		<description><![CDATA[<p>I recently had some datasource issues that I was able to figure out with a bit more feedback from the JRun logs.</p>
<p>First, for those of you who are not system admins, make sure you make a copy of the &#8230;</p>]]></description>
			<content:encoded><![CDATA[<p>I recently had some datasource issues that I was able to figure out with a bit more feedback from the JRun logs.</p>
<p>First, for those of you who are not system admins, make sure you make a copy of the files before you modify them.</p>
<p>Now, there are a couple of XML files that you can modify that will provide a lot more detail of what is going on.</p>
<p>The CF datasources are stored in the jrun-resources.xml file located in {CFMX install}\runtime\servers\default\SERVER-INF. Locate the datasource in question and change the debugging node (&lt;debugging&gt;false&lt;/debugging&gt;) of that element from false to true. This will tell JRun to log more information about this resource. Note: there a lot of other options available several of which you can equate to datasource options in the CF Admin.</p>
<p>Next, we want to modify the the actual logging service. You can do this with the jrun.xml file located in the same directory as jrun-resources.xml above.<br />
Find the LoggerService in the jrun.xml file. Set the following two entries to &#8220;true&#8221;:<br />
&lt;attribute name=&#8221;debugEnabled&#8221;&gt;false&lt;/attribute&gt;<br />
&lt;attribute name=&#8221;metricsEnabled&#8221;&gt;false&lt;/attribute&gt;</p>
<p>A few lines down from these entries, you can separate the logs into separate files by making the following change:</p>
<pre name="code" class="html">
&lt;attribute name="filename"&gt;{jrun.rootdir}/logs/{jrun.server.name}-event.log&lt;/attribute&gt;</pre>
<p>to</p>
<pre name="code" class="javascript">&lt;attribute name="filename"&gt;{jrun.rootdir}/logs/{jrun.server.name}-{log.level}&lt;/attribute&gt;
</pre>
<p>By changing &#8220;event.log&#8221; to &#8220;{log.level}&#8221; it will create separate log files for each type of event. This allows you to narrow in on suspected problems a bit easier.</p>
<p>Finally, the logs produced can be found in {CFMX install}\runtime\logs. Note: You will want to reverse these changes because they do cause a bit of overhead on the server.</p>
]]></content:encoded>
			<wfw:commentRss>http://robrusher.com/2008/04/28/feelin-the-love-from-your-logs/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

