<?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>Ghattu&#039;s Technology Blog &#187; wlst</title>
	<atom:link href="http://ghattus.com/category/wlst/feed/" rel="self" type="application/rss+xml" />
	<link>http://ghattus.com</link>
	<description>A blog about technology that I work on in my day to day job</description>
	<lastBuildDate>Thu, 03 Dec 2009 00:56:54 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>Old WLST tools</title>
		<link>http://ghattus.com/2009/12/02/old-wlst-tools/</link>
		<comments>http://ghattus.com/2009/12/02/old-wlst-tools/#comments</comments>
		<pubDate>Thu, 03 Dec 2009 00:56:54 +0000</pubDate>
		<dc:creator>sghattu</dc:creator>
				<category><![CDATA[Application Server]]></category>
		<category><![CDATA[WebLogic]]></category>
		<category><![CDATA[jython]]></category>
		<category><![CDATA[wlst]]></category>

		<guid isPermaLink="false">http://ghattus.com/?p=165</guid>
		<description><![CDATA[As you might know after the acquisition of BEA Systems by Oracle, Dev2Dev site has been discontinued. Unfortunately I don&#8217;t see a replacement for that, not only we lost some rich information, but a number of good tools. In that context, in the last few months I had inquiries from some users asking where they could find the original [...]]]></description>
			<content:encoded><![CDATA[<p>As you might know after the acquisition of BEA Systems by Oracle, Dev2Dev site has been discontinued. Unfortunately I don&#8217;t see a replacement for that, not only we lost some rich information, but a number of good tools.<span id="more-165"></span></p>
<p>In that context, in the last few months I had inquiries from some users asking where they could find the original WLST that works with WebLogic 8.1 and 7.0, also WLST Script Generator and Console extension that work with WebLogic 9.x.</p>
<p>Now you can get these from the new google code project <a href="http://wlst-archives.googlecode.com/">wlst-modules</a>. WLST Script Generator 9.x can be downloaded from <a href="http://wlst-archives.googlecode.com/files/wlstScriptGenerator_91.zip">here</a>. The zip contains a ReadMe.html that should walk you through the configurations steps. And for those unfortunate souls who are still using WebLogic 7.0 and 8.1, WLST jar can be downloaded from <a href="http://wlst-archives.googlecode.com/files/wlst.jar">here</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://ghattus.com/2009/12/02/old-wlst-tools/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>No WLST cachedir with python.cachedir.skip</title>
		<link>http://ghattus.com/2009/09/11/no-wlst-cachedir-with-python-cachedir-skip/</link>
		<comments>http://ghattus.com/2009/09/11/no-wlst-cachedir-with-python-cachedir-skip/#comments</comments>
		<pubDate>Fri, 11 Sep 2009 16:11:21 +0000</pubDate>
		<dc:creator>sghattu</dc:creator>
				<category><![CDATA[11g]]></category>
		<category><![CDATA[WebLogic]]></category>
		<category><![CDATA[jython]]></category>
		<category><![CDATA[python]]></category>
		<category><![CDATA[weblogic server]]></category>
		<category><![CDATA[wlst]]></category>
		<category><![CDATA[cachedir]]></category>
		<category><![CDATA[WebLogic 11g]]></category>

		<guid isPermaLink="false">http://ghattus.com/?p=111</guid>
		<description><![CDATA[In one of my previous post I have talked about python.cachedir and how it may cause some errors during WLST/Jython initialization. With WebLogic 11g Oracle has upgraded the Jython Version from 2.1 to 2.2 (see my post here), which opens up yet another way of getting rid of these errors. In fact you can get [...]]]></description>
			<content:encoded><![CDATA[<p>In one of my previous <a href="http://ghattus.com/2009/08/how-are-python-cachedir-and-the-error-sys-package-mgr-cant-create-package-cache-dir-are-related.html">post</a> I have talked about python.cachedir and how it may cause some errors during WLST/Jython initialization.<br />
With WebLogic 11g <a href="http://www.oracle.com">Oracle </a>has upgraded the Jython Version from 2.1 to 2.2 (see my post <a href="http://ghattus.com/2009/08/jython-2-2-in-weblogic-11g.html">here</a>), which opens up yet another way of getting rid of these errors. In fact you can get rid of the cachedir entirely by starting WLST with <strong>-Dpython.cachedir.skip=true</strong>, this will instruct Jython not to create the CacheDir.<br />
I haven&#8217;t done extensive testing with this option but so far I haven&#8217;t seen any issues by not creating this cachedir.</p>
]]></content:encoded>
			<wfw:commentRss>http://ghattus.com/2009/09/11/no-wlst-cachedir-with-python-cachedir-skip/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Jython 2.2 in WebLogic 11g</title>
		<link>http://ghattus.com/2009/08/21/jython-2-2-in-weblogic-11g/</link>
		<comments>http://ghattus.com/2009/08/21/jython-2-2-in-weblogic-11g/#comments</comments>
		<pubDate>Fri, 21 Aug 2009 12:27:24 +0000</pubDate>
		<dc:creator>sghattu</dc:creator>
				<category><![CDATA[11g]]></category>
		<category><![CDATA[WebLogic]]></category>
		<category><![CDATA[fusion middleware]]></category>
		<category><![CDATA[java]]></category>
		<category><![CDATA[jython]]></category>
		<category><![CDATA[oracle]]></category>
		<category><![CDATA[python]]></category>
		<category><![CDATA[wlst]]></category>

		<guid isPermaLink="false">http://ghattus.com/?p=127</guid>
		<description><![CDATA[I just started playing around with WebLogic Server 11g and realised that Oracle has upgraded Jython from 2.1 to 2.2, very nice! For a brief description on what&#8217;s new with Jython 2.2 see my old post here. E:\WebLogic11g\Oracle\Middleware\wlserver_10.3\common\bin&#62;java org.python.util.jython Jython 2.2.1 on java1.6.0_05 &#62;&#62;&#62;]]></description>
			<content:encoded><![CDATA[<p>I just started playing around with WebLogic Server 11g and realised that Oracle has upgraded Jython from 2.1 to 2.2, very nice!</p>
<p><span id="more-127"></span></p>
<p>For a brief description on what&#8217;s new with Jython 2.2 see my old post <a href="http://ghattus.com/2007/08/jython-2-2-is-finally-here.html">here</a>.</p>
<blockquote><p>E:\WebLogic11g\Oracle\Middleware\wlserver_10.3\common\bin&gt;java org.python.util.jython<br />
<strong>Jython 2.2.1 on java1.6.0_05<br />
</strong>&gt;&gt;&gt;</p></blockquote>
]]></content:encoded>
			<wfw:commentRss>http://ghattus.com/2009/08/21/jython-2-2-in-weblogic-11g/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Monitoring your WebLogic SSL Certificates is important</title>
		<link>http://ghattus.com/2009/08/19/monitoring-your-weblogic-ssl-certificates-is-important/</link>
		<comments>http://ghattus.com/2009/08/19/monitoring-your-weblogic-ssl-certificates-is-important/#comments</comments>
		<pubDate>Wed, 19 Aug 2009 14:45:25 +0000</pubDate>
		<dc:creator>sghattu</dc:creator>
				<category><![CDATA[WebLogic]]></category>
		<category><![CDATA[oracle]]></category>
		<category><![CDATA[security]]></category>
		<category><![CDATA[ssl certificate]]></category>
		<category><![CDATA[weblogic server]]></category>
		<category><![CDATA[wlst]]></category>
		<category><![CDATA[ssl]]></category>

		<guid isPermaLink="false">http://ghattus.com/?p=121</guid>
		<description><![CDATA[If you are managing a WebLogic Environment, monitoring your WebLogic SSL Certificates is very essential.]]></description>
			<content:encoded><![CDATA[<p>I was talking to my friend yesterday and he mentioned that he was up all night due to an outage that happened to the WebLogic environments he manages, when asked why?</p>
<p>Expired SSL Certificates!!!<span id="more-121"></span>My initial reaction: You don&#8217;t have Monitoring? Hmm well, that led me to think, realistically how many environments have cert expiry monitoring? I haven&#8217;t seen any environments that have automated monitors that check the WebLogic Certificates. One of the reason why this may not have affected you is one, you are not using SSL and two, the certs you obtained have a life span of more than 10 years.</p>
<p>In our WebLogic environments we do not have monitoring specifically on the Cert&#8217;s, but we do have some monitoring that does warn us in-case  our Certs are about to expire. The way it works is, during boot time WebLogic Server logs a message if the certs configured are about to expire in the next 30 days. This message is logged with severity &#8220;Notice&#8221;. Our monitoring application listens on the Log BroadCaster (I will leave the details for another blog post), this listener will send an alert/EMail whenever a message is logged with severity &#8220;Notice&#8221;. The alert will contain the details of what is logged, in case of a Certificate that is about to expire it will contain the Date when it is going to expire and other Certificate details.</p>
<p>Please note, there is one problem to the above approach, i.e. we are relying on WebLogic Server to be started or restarted atleast once within this 30 days timeframe that your Certificate may expire. If not, you will never recieve the notification.</p>
<p>In one of my subsequent post I will write about an alternate simple approach to monitor your WebLogic Certificates.</p>
]]></content:encoded>
			<wfw:commentRss>http://ghattus.com/2009/08/19/monitoring-your-weblogic-ssl-certificates-is-important/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>How are python.cachedir and the error &quot;*sys-package-mgr*: can&#039;t create package cache dir&quot; are related</title>
		<link>http://ghattus.com/2009/08/04/how-are-python-cachedir-and-the-error-sys-package-mgr-cant-create-package-cache-dir-are-related/</link>
		<comments>http://ghattus.com/2009/08/04/how-are-python-cachedir-and-the-error-sys-package-mgr-cant-create-package-cache-dir-are-related/#comments</comments>
		<pubDate>Tue, 04 Aug 2009 10:50:02 +0000</pubDate>
		<dc:creator>sghattu</dc:creator>
				<category><![CDATA[WebLogic]]></category>
		<category><![CDATA[java]]></category>
		<category><![CDATA[jython]]></category>
		<category><![CDATA[jython syntax]]></category>
		<category><![CDATA[python]]></category>
		<category><![CDATA[wlst]]></category>
		<category><![CDATA[/var/tmp]]></category>
		<category><![CDATA[cachedir]]></category>
		<category><![CDATA[ImportError]]></category>
		<category><![CDATA[sys-package-mgr]]></category>

		<guid isPermaLink="false">http://ghattus.com/?p=57</guid>
		<description><![CDATA[Resolving "*sys-package-mgr*: can't create package cache dir" errors with WLST]]></description>
			<content:encoded><![CDATA[<p>While starting <a href="http://edocs.bea.com/wls/docs91/config_scripting/index.html">WLST </a>or for that matter <a href="http://www.jython.org">Jython</a>, you might have seen this annoying error message,</p>
<blockquote><p>*sys-package-mgr*: can&#8217;t create package cache dir, &#8216;/tmp/cachedir/packages&#8217;<br />
Traceback (innermost last):<br />
File &#8220;&lt;iostream&gt;&#8221;, line 12, in ?<br />
ImportError: no module named java</p></blockquote>
<p><span id="more-57"></span></p>
<p>When Jython initializes it scans all the jar files it can find at startup to build the package and class structure available to the JVM. This information is written to files in a directory named &#8216;cachedir&#8217;, WLST chooses your &#8216;java.io.tmpdir&#8217; to store these files. There is a problem with this approach especially on Unix machines.</p>
<p><strong>Problem:</strong></p>
<p>Most Unix machines are shared across a number of users. Say &#8220;user1&#8243; first logs into the machine and fired up &#8216;java weblogic.WLST&#8217;, Jython will create the &#8216;cachedir&#8217; under <strong>&#8216;/var/tmp/&#8217;</strong> and this directory will be owned by &#8216;user1&#8242;. This user will have no problems using WLST. Now &#8216;user2&#8242; logs in and fires up WLST, this process will try to write to the same directory, <strong>&#8216;/var/tmp/cachedir&#8217;</strong> which is now owned by &#8216;user1&#8242; and hence fails with the above error message.</p>
<p><strong>Solution:</strong></p>
<p>There is a pretty simple and straight forward solution to this problem. Jython supports a System property (<strong>python.cachedir</strong>) that you can set which will determine the directory where this &#8216;cachedir&#8217; is created. So in our case to start WLST you will use,</p>
<blockquote><p>java -Dpython.cachedir=/home/user1 weblogic.WLST</p></blockquote>
<p>This will create the cachedir under /home/user1, and this way all users can have their own cachedir&#8217;s without running into each other. For a more elegant solution you can create a simple unix script that wraps the call to WLST and adding the right cachedir location per user. Sample is shown below,</p>
<blockquote><p>#!/bin/sh</p>
<p># Setup classpath, probably execute setDomainEnv.sh</p>
<p>java -Dpython.cachedir=~ weblogic.WLST</p></blockquote>
<p>As long as the<strong> &#8216;~&#8217;</strong> resolves properly to the home directory for the user executing WLST you will never have to worry about this &#8216;cachedir&#8217; related error messages.. <img src='http://ghattus.com/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://ghattus.com/2009/08/04/how-are-python-cachedir-and-the-error-sys-package-mgr-cant-create-package-cache-dir-are-related/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Default protocol in WebLogic and why is it important</title>
		<link>http://ghattus.com/2009/07/26/default-protocol-in-weblogic-and-why-is-it-important/</link>
		<comments>http://ghattus.com/2009/07/26/default-protocol-in-weblogic-and-why-is-it-important/#comments</comments>
		<pubDate>Sun, 26 Jul 2009 21:17:12 +0000</pubDate>
		<dc:creator>sghattu</dc:creator>
				<category><![CDATA[WebLogic]]></category>
		<category><![CDATA[channel]]></category>
		<category><![CDATA[cluster]]></category>
		<category><![CDATA[java]]></category>
		<category><![CDATA[jython]]></category>
		<category><![CDATA[weblogic server]]></category>
		<category><![CDATA[wlst]]></category>
		<category><![CDATA[protocol]]></category>
		<category><![CDATA[ssl]]></category>
		<category><![CDATA[t3]]></category>
		<category><![CDATA[t3s]]></category>

		<guid isPermaLink="false">http://ghattus.com/?p=55</guid>
		<description><![CDATA[It is a good practice to set the Default Protocol in WebLogic]]></description>
			<content:encoded><![CDATA[<p>If your WebLogic Server makes outbound connections to other systems it is wise to know what a DefaultProtocol is. Generally, when you create a WebLogic domain and haven&#8217;t configured SSL you will not have to do anything.<span id="more-55"></span></p>
<p>But once SSL is configured and you have dis-abled the non-ssl port, you should make sure that the DefaultProtocol your WebLogic Server uses is SSL (either t3s, https or iiops). If you haven&#8217;t done this, your WebLogic Server will try to use &#8220;t3&#8243; (default) for any outbound connections and since the ListenPort is disabled it will fail.</p>
<p>Here&#8217;s a simple wlst script to change the default protocol to t3s for all the servers in the domain.</p>
<blockquote><p># After connecting to the Admin Server</p>
<p>edit()</p>
<p>startEdit()</p>
<p>servers = cmo.getServers()</p>
<p>for i in servers:</p>
<p>i.setDefaultProtocol(&#8220;t3s&#8221;)</p>
<p>save()</p>
<p>activate()</p></blockquote>
]]></content:encoded>
			<wfw:commentRss>http://ghattus.com/2009/07/26/default-protocol-in-weblogic-and-why-is-it-important/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>WebLogic Clustering with Unicast</title>
		<link>http://ghattus.com/2009/06/04/weblogic-clustering-with-unicast/</link>
		<comments>http://ghattus.com/2009/06/04/weblogic-clustering-with-unicast/#comments</comments>
		<pubDate>Fri, 05 Jun 2009 01:49:00 +0000</pubDate>
		<dc:creator>sghattu</dc:creator>
				<category><![CDATA[NetworkAccessPoint]]></category>
		<category><![CDATA[WebLogic]]></category>
		<category><![CDATA[channel]]></category>
		<category><![CDATA[cluster]]></category>
		<category><![CDATA[multicast]]></category>
		<category><![CDATA[unicast]]></category>
		<category><![CDATA[wlst]]></category>
		<category><![CDATA[Clustering]]></category>

		<guid isPermaLink="false">http://ghattus.com/2009/06/weblogic-clustering-with-unicast/</guid>
		<description><![CDATA[Until WebLogic 9.2 the only communication mode available between the Cluster members of your WebLogic domain is ‘Multicast’. Starting with WebLogic 10.0, Oracle in addition to MultiCast, supports communication between the Cluster members using Unicast. Quick definitions of Unicast and Multicast from Wikipedia. Unicast: Unicast messaging is used for all network processes where a private [...]]]></description>
			<content:encoded><![CDATA[<p>Until WebLogic 9.2 the only communication mode available between the Cluster members of your WebLogic domain is ‘Multicast’. Starting with WebLogic 10.0, Oracle in addition to MultiCast, supports communication between the Cluster members using Unicast. Quick definitions of Unicast and Multicast from Wikipedia.</p>
<p><span id="more-42"></span></p>
<p style="font-weight: bold">Unicast:</p>
<p style="font-style: italic"><span lang="EN">Unicast messaging is used for all network processes where a private or unique resource is requested making most networking traffic Unicast in form. Unicast is used where two way connections are needed to complete the network transaction.</span></p>
<p style="font-weight: bold"><span lang="EN">Multicast:</span></p>
<p style="font-style: italic"><span lang="EN">Multicast</span><span lang="EN"> addressing is a network technology for the delivery of information to a group of destinations simultaneously using the most efficient strategy to deliver the messages over each link of the network only once, creating copies only when the links to the multiple destinations split.</span></p>
<p><span lang="EN">I believe, support for Unicast </span>is a very important feature. Although Multicast is efficient when compared to Unicast, it causes a network configuration overhead where your Network Administrator need to dedicate a Multicast address. Also, when using Multicast you should make sure the end points or systems that don’t want the information have to be shielded from receiving these unwanted multicast broadcast messages.</p>
<p>Recently we have automated our Cluster configuration creations to Unicast messaging mode. In this post I would like to share wlst scripts and some guidelines to follow when using Unicast. Assuming you already have a domain, let us create a Cluster definition.<span style="font-size:100%"> First connect to the server and start an edit session</span></p>
<blockquote>
<p style="font-style: italic;font-family:courier new"><span style="font-size:100%">connect(uname,pwd,url)</span></p>
<p style="font-style: italic;font-family:courier new"><span style="font-size:100%">edit()</span></p>
<p style="text-align: left"><span>startEdit()</span></p>
<div><span><br />
 </span></div>
<div><span> </span></div>
<p><span> </p>
<p></span></p></blockquote>
<p style="font-family:courier new"><span style="font-size:100%"> </span></p>
<p><span> </span></p>
<div style="text-align: left">Now create the Cluster and set the messaging mode to &#8216;unicast&#8217;.</div>
<p style="font-style: italic;font-family:courier new"><span style="font-size:100%;color:black"> </span></p>
<blockquote>
<div style="text-align: left">
<p style="font-style: italic;font-family:courier new"><span style="font-size:100%;color:black">theCluster = cmo.createCluster(‘mycluster’)</span></p>
</div>
<div style="text-align: left">
<p style="font-style: italic;font-family:courier new"><span style="font-size:100%;color:black"> </span></p>
<p style="font-style: italic;font-family:courier new"><span style="font-size:100%;color:black">theCluster.setClusterMessagingMode(</span><span style="font-size:100%;color:teal">&#8216;unicast&#8217;</span><span style="font-size:100%;color:black">);</span></p>
</div>
</blockquote>
<div style="text-align: left">
<p style="font-style: italic;font-family:courier new"><span style="font-size:100%;color:black"> </span></p>
<p style="font-family:courier new"><span style="font-size:100%;color:black">It is recommended to use a custom broadcast channel instead of the default. </span></p>
<p style="font-style: italic;font-family:courier new"><span style="font-size:100%;color:black"> </span></p>
<blockquote><p><span style="font-size:100%;color:black">theCluster.setClusterBroadcastChannel(</span><span style="font-size:100%;color:teal">&#8216;myclusterChannel&#8217;</span><span style="font-size:100%;color:black">);</span></p></blockquote>
<p><span style="font-size:100%;color:black"> </span></p>
<p><span> </span></p>
<p><span> </span></p>
<p><span>Now let’s create a basic managed server and add that to the cluster. We will configure a Network access point for the managed server that will be used for communicating with other managed servers in the cluster. </span></p>
<p style="font-style: italic"><span> </span></p>
<blockquote>
<p style="font-style: italic"><span>msSvr = cmo.createServer(“ms1”)</span></p>
<p style="font-style: italic"><span>msSvr.setListenAddress(“msMachine”)</span></p>
<p style="font-style: italic"><span>msSvr.setListenPort(8001)</span></p>
<p style="font-style: italic"><span>msSvr.setCluster(theCluster)</span></p>
<p style="font-style: italic"><span>cd(</span><span>&#8216;/Servers/ms&#8217;</span><span>)</span></p>
<p style="font-style: italic"><span>cmo.createNetworkAccessPoint(</span><span>&#8216;myclusterChannel&#8217;</span><span>)</span><span> </span></p>
<p style="font-style: italic"><span>cd(</span><span>&#8216;/Servers/ms/NetworkAccessPoints/myclusterChannel&#8217;</span><span>)</span></p>
<p style="font-style: italic"><span>cmo.setListenPort(8002)</span></p>
<p style="font-style: italic"><span>cmo.setPublicPort(-1)</span></p>
<p><span>cmo.setEnabled(true)</span></p></blockquote>
<p><span> </span><span>if you would like to secure conmmunication between the servers</span></p>
<p><span> </span></p>
<blockquote><p><span>cmo.setProtocol(</span><span>&#8216;cluster-broadcast-secure&#8217;</span><span>)</span></p></blockquote>
<p><span> </span><span> </span></p>
<p>Now make sure you enable the Outbound communication for this channel, otherwise your managed server will not be able to communicate with other managed servers in the cluster. </p>
<blockquote><p><span>cmo.setOutboundEnabled(true)</span></p></blockquote>
<p> </p>
<p><span>I have pasted the entire working script below that you can use to create a 2 Node Cluster that uses Unicast messaging mode on a custom Network channel.<br />
</span></p>
<blockquote><p>def init():<br />
connect(uname,pwd,url)<br />
edit()<br />
startEdit()</p>
<p>def createCluster(clusterName):<br />
theCluster = cmo.createCluster(clusterName)<br />
theCluster.</p>
<div id=":12f" class="ii gt">setClusterMessagingMode(&#8216;unicast&#8217;);<br />
# It is recommended to use a custom broadcast channel instead of default<br />
theCluster.setClusterBroadcastChannel(&#8216;myclusterChannel&#8217;);<br />
return theCluster</div>
<p>def createMS(msname, port, mname, channelPort, clusterBean):<br />
msSvr1 = cmo.createServer(msname)<br />
msSvr1.setListenAddress(mname)<br />
msSvr1.setListenPort(port)<br />
msSvr1.setCluster(clusterBean)<br />
cd(&#8216;/Servers/&#8217;+msname)<br />
cmo.createNetworkAccessPoint(&#8216;myclusterChannel&#8217;)<br />
cd(&#8216;/Servers/&#8217;+msname+&#8217;/NetworkAccessPoints/myclusterChannel&#8217;)<br />
# if you want secure conmmunication between the servers<br />
cmo.setProtocol(&#8216;cluster-broadcast-secure&#8217;)<br />
cmo.setListenPort(channelPort)<br />
cmo.setPublicPort(-1)<br />
cmo.setEnabled(true)<br />
# This is very very important<br />
cmo.setOutboundEnabled(true)<br />
cd(&#8216;/&#8217;)</p>
<p>def run():<br />
init()<br />
bean = createCluster(&#8216;mycluster&#8217;)<br />
createMS(&#8220;ms1&#8243;,8001,&#8221;ms1Machine&#8221;,8002,bean)<br />
save()<br />
activate()</p>
<p>run()</p></blockquote>
</div>
]]></content:encoded>
			<wfw:commentRss>http://ghattus.com/2009/06/04/weblogic-clustering-with-unicast/feed/</wfw:commentRss>
		<slash:comments>8</slash:comments>
		</item>
		<item>
		<title>Easing WLST syntax while navigating MBeans in interactive mode</title>
		<link>http://ghattus.com/2008/12/12/easing-wlst-syntax-while-navigating-mbeans-in-interactive-mode/</link>
		<comments>http://ghattus.com/2008/12/12/easing-wlst-syntax-while-navigating-mbeans-in-interactive-mode/#comments</comments>
		<pubDate>Fri, 12 Dec 2008 11:45:00 +0000</pubDate>
		<dc:creator>sghattu</dc:creator>
				<category><![CDATA[cd]]></category>
		<category><![CDATA[jython syntax]]></category>
		<category><![CDATA[ls]]></category>
		<category><![CDATA[wlst]]></category>

		<guid isPermaLink="false">http://ghattus.com/2008/12/easing-wlst-syntax-while-navigating-mbeans-in-interactive-mode/</guid>
		<description><![CDATA[This is something I have implemented in WLST but never exposed as a supported feature. If you have used WLST in interactive mode I bet you are tired of typing those quotes around arguments for each command and not to mention the opening and closing brackets. Well not sure about you but I was definitely [...]]]></description>
			<content:encoded><![CDATA[<p><span>This is something I have implemented in WLST but never exposed as a supported feature.<span id="more-38"></span></span></p>
<p><span>If you have used WLST in interactive mode I bet you are tired of typing those quotes around arguments for each command and not to mention the opening and closing brackets. Well not sure about you but I was definitely tired of this while developing WLST. Hence I have implemented a way to ease this syntax at least while navigating MBeans. The way it works is, while you are in Online mode execute the command ‘<span style="font-weight: bold">easeSyntax()</span>’. After this, for commands like ‘<span style="font-weight: bold">cd</span>’ and <span style="font-weight: bold">‘ls</span>’ you do not need to follow the jython syntax. As an example, currently<span style="font-weight: bold"> </span> to navigate to Server MBeans you will use,</span></p>
<p><span> </span></p>
<blockquote><p><span>cd(“/Servers/testServer”)</span></p>
<p><span>ls()</span></p></blockquote>
<p><span> </span></p>
<p><span> </span></p>
<p><span>After executing easeSyntax() to navigate around you will use.<br />
</span></p>
<p><span> </span></p>
<blockquote><p><span>cd /Servers/testServer</span></p>
<p><span>ls</span></p></blockquote>
<p><span> </span></p>
<p><span>aah, I know what you are thinking. Sorry, there is no tab complete .. <img src='http://ghattus.com/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /><br />
</span></p>
]]></content:encoded>
			<wfw:commentRss>http://ghattus.com/2008/12/12/easing-wlst-syntax-while-navigating-mbeans-in-interactive-mode/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
		<item>
		<title>IDE for WLST</title>
		<link>http://ghattus.com/2008/10/22/ide-for-wlst/</link>
		<comments>http://ghattus.com/2008/10/22/ide-for-wlst/#comments</comments>
		<pubDate>Thu, 23 Oct 2008 02:03:00 +0000</pubDate>
		<dc:creator>sghattu</dc:creator>
				<category><![CDATA[JyDT]]></category>
		<category><![CDATA[jython]]></category>
		<category><![CDATA[wlst]]></category>

		<guid isPermaLink="false">http://ghattus.com/2008/10/ide-for-wlst/</guid>
		<description><![CDATA[I have been asked this question many times and recently here, &#8220;What IDE should I use for writing WLST/Jython Scripts?&#8221; Initially I used PyWin, it was great! After I started using Eclipse as my Java IDE I moved to JyDT. JyDT has all the features I needed, integrates nicely with Eclipse, provides Syntax higlighting and [...]]]></description>
			<content:encoded><![CDATA[<p>I have been asked this question many times and recently <a href="https://www.blogger.com/comment.g?blogID=9892791&amp;postID=17367144129766315">here</a>, &#8220;What IDE should I use for writing WLST/Jython Scripts?&#8221; Initially I used <a href="http://pydev.sourceforge.net/">PyWin</a>, it was great! After I started using Eclipse as my Java IDE I moved to <a href="http://www.redrobinsoftware.net/jydt/">JyDT</a>. JyDT has all the features I needed, integrates nicely with Eclipse, provides Syntax higlighting and much more. I recommend JyDT if you are just starting of with Jython.</p>
]]></content:encoded>
			<wfw:commentRss>http://ghattus.com/2008/10/22/ide-for-wlst/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Encrypting a string in weblogic</title>
		<link>http://ghattus.com/2008/06/24/encrypting-a-string-in-weblogic/</link>
		<comments>http://ghattus.com/2008/06/24/encrypting-a-string-in-weblogic/#comments</comments>
		<pubDate>Wed, 25 Jun 2008 02:26:00 +0000</pubDate>
		<dc:creator>sghattu</dc:creator>
				<category><![CDATA[WebLogic]]></category>
		<category><![CDATA[encrypt]]></category>
		<category><![CDATA[wlst]]></category>

		<guid isPermaLink="false">http://ghattus.com/2008/06/encrypting-a-string-in-weblogic/</guid>
		<description><![CDATA[One of my developer was asked me this morning if he can encrypt a string so that he does not have to store a clear string in his scripts or variables while configuring resources especially JDBC connection pool&#8217;s. A quick and easy way to encrypt a String in WebLogic is to use the encrypt command [...]]]></description>
			<content:encoded><![CDATA[<p>One of my developer was asked me this morning if he can encrypt a string so that he does not have to store a clear string in his scripts or variables while configuring resources especially JDBC connection pool&#8217;s. A quick and easy way to encrypt a String in WebLogic is to use the <a href="http://edocs.bea.com/wls/docs100/config_scripting/reference.html#wp1182063">encrypt</a> command in WLST.</p>
<p><span style="font-style: italic">import java.lang.System</span><br /><span style="font-style: italic">encStr = encrypt(&#8220;mypassword&#8221;, java.lang.System.getenv(&#8220;DOMAIN_HOME&#8221;))</span></p>
<p>WLST internally calls the <a href="http://e-docs.bea.com/wls/docs100/admin_ref/utils.html#wp1209592">weblogic.security.Encrypt</a> utility to encrypt the clear string. You can directly use this command line tool to encrypt the password and use the encrypted password in your scripts.</p>
]]></content:encoded>
			<wfw:commentRss>http://ghattus.com/2008/06/24/encrypting-a-string-in-weblogic/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
	</channel>
</rss>
