<?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/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>JBoss Product Update</title>
	<atom:link href="http://cred.wordpress.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://cred.wordpress.com</link>
	<description>What to read when you don't have time</description>
	<lastBuildDate>Sat, 14 Jun 2008 11:22:08 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='cred.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://s2.wp.com/i/buttonw-com.png</url>
		<title>JBoss Product Update</title>
		<link>http://cred.wordpress.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://cred.wordpress.com/osd.xml" title="JBoss Product Update" />
	<atom:link rel='hub' href='http://cred.wordpress.com/?pushpress=hub'/>
		<item>
		<title>JBoss ESB client classpath</title>
		<link>http://cred.wordpress.com/2008/06/14/jboss-esb-client-classpath/</link>
		<comments>http://cred.wordpress.com/2008/06/14/jboss-esb-client-classpath/#comments</comments>
		<pubDate>Sat, 14 Jun 2008 11:21:39 +0000</pubDate>
		<dc:creator>Justin</dc:creator>
				<category><![CDATA[jboss esb]]></category>

		<guid isPermaLink="false">http://cred.wordpress.com/?p=17</guid>
		<description><![CDATA[I&#8217;m doing quiet a bit of work with JBoss ESB at the moment. One frustrating thing that I found was the setup up a standalone client classpath. Since ESB is a &#8216;mix&#8217; of JBoss messaging, XML and UDDI components, here is the absolute minimum classpath you will need to run a client against and ESB [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=cred.wordpress.com&amp;blog=263607&amp;post=17&amp;subd=cred&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>I&#8217;m doing quiet a bit of work with JBoss ESB at the moment.  One frustrating thing that I found was the setup up a standalone client classpath.</p>
<p>Since ESB is a &#8216;mix&#8217; of JBoss messaging, XML and UDDI components, here is the absolute minimum classpath you will need to run a client against and ESB (invoke a gateway service):</p>
<p>Note JBOSS_ESB_HOME points to the installation directory of your JBoss ESB server</p>
<p>JBOSS_ESB_HOME/lib/jboss-common.jar<br />
JBOSS_ESB_HOME/lib/concurrent.jar<br />
JBOSS_ESB_HOME/lib/endorsed/xercesImpl.jar<br />
JBOSS_ESB_HOME/server/default/deploy/jboss-aop-jdk50.deployer/trove.jar<br />
JBOSS_ESB_HOME/server/default/deploy/jboss-aop-jdk50.deployer/jboss-aop-jdk50.jar<br />
JBOSS_ESB_HOME/server/default/deploy/jbossesb.sar/lib/juddi-client-2.0rc5.jar<br />
JBOSS_ESB_HOME/server/default/deploy/jbossesb.sar/lib/scout-1.0rc1.jar<br />
Hopefully that will save you some pain&#8230;.</p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/cred.wordpress.com/17/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/cred.wordpress.com/17/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/cred.wordpress.com/17/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/cred.wordpress.com/17/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/cred.wordpress.com/17/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/cred.wordpress.com/17/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/cred.wordpress.com/17/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/cred.wordpress.com/17/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/cred.wordpress.com/17/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/cred.wordpress.com/17/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/cred.wordpress.com/17/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/cred.wordpress.com/17/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/cred.wordpress.com/17/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/cred.wordpress.com/17/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/cred.wordpress.com/17/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/cred.wordpress.com/17/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=cred.wordpress.com&amp;blog=263607&amp;post=17&amp;subd=cred&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://cred.wordpress.com/2008/06/14/jboss-esb-client-classpath/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/cc3c1b028aa7d088e8eec771ae4a0d91?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">justin</media:title>
		</media:content>
	</item>
		<item>
		<title>JBoss 4 classloading &#8211; Getting to the bottom of issues</title>
		<link>http://cred.wordpress.com/2008/05/25/jboss-4-classloading-getting-to-the-bottom-of-issues/</link>
		<comments>http://cred.wordpress.com/2008/05/25/jboss-4-classloading-getting-to-the-bottom-of-issues/#comments</comments>
		<pubDate>Sun, 25 May 2008 14:54:54 +0000</pubDate>
		<dc:creator>Justin</dc:creator>
				<category><![CDATA[classloading]]></category>
		<category><![CDATA[j2ee]]></category>
		<category><![CDATA[jboss]]></category>

		<guid isPermaLink="false">http://cred.wordpress.com/?p=16</guid>
		<description><![CDATA[Whether it is due to the complexity of JBoss&#8217; classloading implementation or the ambiguity in the J2EE specification, JBoss classloading issues remain one of the top issues that application developers struggle to deal with. There is no silver bullet for your classloading problem. A structured approach to resolving the issue taking into account the specific [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=cred.wordpress.com&amp;blog=263607&amp;post=16&amp;subd=cred&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Whether it is due to the complexity of JBoss&#8217; classloading implementation or the ambiguity in the J2EE specification, JBoss classloading issues remain one of the top issues that application developers struggle to deal with.</p>
<p>There is no silver bullet for your classloading problem.  A structured approach to resolving the issue taking into account the specific needs of your application remains the best solution to dealing with these problems when they crop up.  And yes, experience in dealing with them does help too!</p>
<p>There are a number of good resources out there to help you understand the problem domain.</p>
<ul>
<li>http://wiki.jboss.org/wiki/ClassLoading &#8211; This is where is all begins</li>
<li>http://wiki.jboss.org/wiki/JBossClassLoadingUseCases &#8211; If you really want to understand classloading from JBoss&#8217; perspective, then do yourself a favour &#8211; make a pot of coffee, book the night off and settle into this document.   If you understand the concepts here, you are 90% of the way there.</li>
<li>http://docs.jboss.org/jbossas/jboss4guide/r5/  (PDF format) &#8211; There are good sections here which describe the classloading architecture, specifically:  (http://docs.jboss.org/jbossas/jboss4guide/r5/html/ch2.chapter.html#d0e1904)</li>
</ul>
<p>Just as important as the resources is the jmx-console.  This little tool is an extremely useful mechanism for looking under the covers of the JBoss application server.  Take a look at the JMImplementation:<a href="http://localhost:8080/jmx-console/HtmlAdaptor?action=inspectMBean&amp;name=JMImplementation%3Aservice%3DLoaderRepository%2Cname%3DDefault">name=Default,service=LoaderRepository</a> MBean.  This MBean is basically the default UCL.  Information about where the class was loaded from and which jars make up the UCL (to name but a few) are all here.</p>
<p>And then finally, the xml configuration files for your server.  Pay particular attention to:</p>
<ul>
<li>jboss-service.xml of the jboss-web component (deploy/jboss-web.deployer/META-INF)</li>
<li>ear-deployer.xml</li>
</ul>
<p>There are adequate resources out there to feed your brain, and with a little time you should be able to get your head around some of the more perplexing classloading issues.  If you are still stuck, well&#8230;. then its time to pick up the phone.</p>
<p>Cheers</p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/cred.wordpress.com/16/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/cred.wordpress.com/16/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/cred.wordpress.com/16/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/cred.wordpress.com/16/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/cred.wordpress.com/16/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/cred.wordpress.com/16/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/cred.wordpress.com/16/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/cred.wordpress.com/16/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/cred.wordpress.com/16/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/cred.wordpress.com/16/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/cred.wordpress.com/16/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/cred.wordpress.com/16/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/cred.wordpress.com/16/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/cred.wordpress.com/16/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/cred.wordpress.com/16/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/cred.wordpress.com/16/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=cred.wordpress.com&amp;blog=263607&amp;post=16&amp;subd=cred&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://cred.wordpress.com/2008/05/25/jboss-4-classloading-getting-to-the-bottom-of-issues/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/cc3c1b028aa7d088e8eec771ae4a0d91?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">justin</media:title>
		</media:content>
	</item>
		<item>
		<title>Logging Hibernate SQL statements and bind parameters</title>
		<link>http://cred.wordpress.com/2008/05/05/logging-hibernate-sql-statements-and-bind-parameters/</link>
		<comments>http://cred.wordpress.com/2008/05/05/logging-hibernate-sql-statements-and-bind-parameters/#comments</comments>
		<pubDate>Mon, 05 May 2008 09:04:17 +0000</pubDate>
		<dc:creator>Justin</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://cred.wordpress.com/?p=15</guid>
		<description><![CDATA[Although object relational mapping (ORM) frameworks provide an abstraction over data access, there are often cases in which you want to find out what exactly the ORM (in this case Hibernate) framework is doing. These include: Finding out what&#8217;s going on behind the scenes &#8211; especially when first trying out a this type of technology [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=cred.wordpress.com&amp;blog=263607&amp;post=15&amp;subd=cred&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Although object relational mapping (ORM) frameworks provide an abstraction over data access, there are often cases in which you want to find out what exactly the ORM (in this case Hibernate) framework is doing.  These include:</p>
<ul>
<li>Finding out what&#8217;s going on behind the scenes &#8211; especially when first trying out a this type of technology you may want proof of what&#8217;s happening.</li>
<li>Debugging queries &#8211; sometimes what you get may not be what you expect.</li>
<li>Optimising queries &#8211; is your query structured in a way which makes best use of your particular database,  or &#8211; sometimes more pertinent when working with an ORM framework &#8211; is your database structured in a way which makes best use of your query?</li>
<li>Checking query/second level caching.</li>
</ul>
<p>Typically there are two ways of doing this</p>
<ol>
<li>Set properties in the hibernate configuration which write the queries to standard out.  Queries can be formatted and hints can be included.</li>
<li>Enable logging on specific packages which when output at the correct log level, generate the SQL that is being executed.</li>
</ol>
<p>The benefit of the second option is that we can append this information to a specific file for analysis &#8211; i.e. we don&#8217;t have to mix it up with all the other logging information that we generate.</p>
<p>I&#8217;ve got the hibernate &#8216;bible&#8217; in front of me: Java Persistence with Hibernate.    Chapter 2, section entitled &#8216;Enabling logging and statistics&#8217; reads:</p>
<blockquote><p>&#8230;<br />
&#8230;<br />
# Log JDBC bind parameter runtime arguments<br />
log4j.logger.org.hibernate.type=INFO</p>
<p>The last category in this configuration file is especially interesting: It enables the<br />
logging of JDBC bind parameters if you set it to DEBUG level, providing information<br />
you usually don’t see in the ad hoc SQL console log</p></blockquote>
<p>The first problem is that if you want type parameter logging, you need to set the value of org.hibernate.type to TRACE and not DEBUG, i.e.<br />
log4j.logger.org.hibernate.type=TRACE</p>
<p>Secondly, in order to output the actual SQL statement, you need:<br />
log4j.logger.org.hibernate.SQL=DEBUG</p>
<p>The combination of these two configurations will output both the SQL and the bind parameters.  Note that if you are running in JBoss you cannot update the value of the org.hibernate.type value on the fly and expect to see the changes; the value of the threshold is cached at startup for performance reasons.</p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/cred.wordpress.com/15/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/cred.wordpress.com/15/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/cred.wordpress.com/15/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/cred.wordpress.com/15/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/cred.wordpress.com/15/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/cred.wordpress.com/15/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/cred.wordpress.com/15/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/cred.wordpress.com/15/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/cred.wordpress.com/15/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/cred.wordpress.com/15/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/cred.wordpress.com/15/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/cred.wordpress.com/15/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/cred.wordpress.com/15/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/cred.wordpress.com/15/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/cred.wordpress.com/15/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/cred.wordpress.com/15/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=cred.wordpress.com&amp;blog=263607&amp;post=15&amp;subd=cred&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://cred.wordpress.com/2008/05/05/logging-hibernate-sql-statements-and-bind-parameters/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/cc3c1b028aa7d088e8eec771ae4a0d91?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">justin</media:title>
		</media:content>
	</item>
		<item>
		<title>ClasscastExceptions with JBoss and commons-logging</title>
		<link>http://cred.wordpress.com/2008/03/12/classcast-exceptions-with-jboss-and-commons-logging/</link>
		<comments>http://cred.wordpress.com/2008/03/12/classcast-exceptions-with-jboss-and-commons-logging/#comments</comments>
		<pubDate>Wed, 12 Mar 2008 11:06:49 +0000</pubDate>
		<dc:creator>Justin</dc:creator>
				<category><![CDATA[classloading]]></category>
		<category><![CDATA[j2ee]]></category>
		<category><![CDATA[classcastexception]]></category>
		<category><![CDATA[commons-logging]]></category>
		<category><![CDATA[jboss]]></category>
		<category><![CDATA[logging]]></category>

		<guid isPermaLink="false">http://cred.wordpress.com/?p=14</guid>
		<description><![CDATA[I&#8217;ve recently been involved with two clients who had problems relating to classpaths/classloaders and the apache commons logging library. The error typically presents as follows: 12:49:46,251 INFO [STDOUT] log4j:ERROR A "org.jboss.logging.util.OnlyOnceErrorHandler" object is not assignable to a "org.apache.log4j.spi.ErrorHandler" variable. 12:49:46,252 INFO [STDOUT] log4j:ERROR The class "org.apache.log4j.spi.ErrorHandler" was loaded by 12:49:46,252 INFO [STDOUT] log4j:ERROR [WebappClassLoader delegate: [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=cred.wordpress.com&amp;blog=263607&amp;post=14&amp;subd=cred&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve recently been involved with two clients who had problems relating to classpaths/classloaders and the apache commons logging library.</p>
<p>The error typically presents as follows:</p>
<pre>12:49:46,251 INFO  [STDOUT] log4j:ERROR A "org.jboss.logging.util.OnlyOnceErrorHandler" object is not assignable to a "org.apache.log4j.spi.ErrorHandler" variable.
12:49:46,252 INFO  [STDOUT] log4j:ERROR The class "org.apache.log4j.spi.ErrorHandler" was loaded by
12:49:46,252 INFO  [STDOUT] log4j:ERROR [WebappClassLoader
  delegate: false
  repositories:
    /WEB-INF/classes/
----------&gt; Parent Classloader:
java.net.FactoryURLClassLoader@ece36
] whereas object of type
12:49:46,253 INFO  [STDOUT] log4j:ERROR "org.jboss.logging.util.OnlyOnceErrorHandler" was loaded by [org.jboss.system...AnnotationURLClassLoader@183f74d].
12:49:46,299 INFO  [STDOUT] log4j:ERROR Could not create an Appender. Reported error follows.
12:49:46,300 INFO  [STDOUT] java.lang.ClassCastException: org.jboss.logging.appender.DailyRollingFileAppender</pre>
<p>Some backround information at this point is useful.</p>
<p>JBoss classloading is a complex topic discussed in detail in the admin guide for the relevant versions.  In fact is is to well discussed that when I read my first admin guide I took a second look to make sure that I was reading a JBoss book and not a classloading book.   Read this first.<br />
When it comes to classloading  in the web container, the rules are bent slightly.  JBoss defines two attributes in the META-INF/jboss-service.xml file of the web container which modify the classloading behaviour.  In the 4.0.5 -&gt; 4.2.2 product the following values are set:</p>
<p>&lt;attribute name=&#8221;Java2ClassLoadingCompliance&#8221;&gt;false&lt;/attribute&gt;<br />
&lt;attribute name=&#8221;UseJBossWebLoader&#8221;&gt;false&lt;/attribute&gt;</p>
<p><strong> Java2ClassLoadingCompliance</strong></p>
<p>In the normal Java world, classes are loaded from the parent classloader first before an attempt is made to load classes from a child classloader (true).  The servlet 2.3 spec states however that the web container&#8217;s classloader should be used in preference (false).</p>
<p><strong>UseJBossWebLoader</strong></p>
<p>If true, the JBoss classloader (read Unified Class Loader &#8211; UCL) will be used to load resources.  False means that the tomcat classloader will be used.</p>
<p>So the  default setting imply that you are going to have a tomcat classloader which loads from the web archive first.</p>
<p>Recommendation:  Don&#8217;t mess with the default settings.</p>
<p>This then explains why we are getting ClassCastExceptions.  A copy of commons-logging.jar was present in the web application archive (war) and is shipped by default with JBoss.<br />
Since &lt;class com.foo.Bar loaded by classloader x&gt; != &lt;class com.foo.Bar loaded by classloader y&gt; we end up with the exception.</p>
<p>The simple solution in this case was to remove commons-logging.jar from the war&#8217;s WEB-INF/lib folder and rely on the version in JBOSS_HOME/server/lib.</p>
<p>There are of course other solutions which involve classloader scoping, but these are more advanced and need to be tailored to an individual need.</p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/cred.wordpress.com/14/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/cred.wordpress.com/14/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/cred.wordpress.com/14/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/cred.wordpress.com/14/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/cred.wordpress.com/14/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/cred.wordpress.com/14/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/cred.wordpress.com/14/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/cred.wordpress.com/14/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/cred.wordpress.com/14/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/cred.wordpress.com/14/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/cred.wordpress.com/14/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/cred.wordpress.com/14/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/cred.wordpress.com/14/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/cred.wordpress.com/14/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/cred.wordpress.com/14/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/cred.wordpress.com/14/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=cred.wordpress.com&amp;blog=263607&amp;post=14&amp;subd=cred&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://cred.wordpress.com/2008/03/12/classcast-exceptions-with-jboss-and-commons-logging/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/cc3c1b028aa7d088e8eec771ae4a0d91?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">justin</media:title>
		</media:content>
	</item>
		<item>
		<title>Double submit killer &#8211; Redirect after post pattern</title>
		<link>http://cred.wordpress.com/2008/01/08/double-submit-killer-redirect-after-post-pattern/</link>
		<comments>http://cred.wordpress.com/2008/01/08/double-submit-killer-redirect-after-post-pattern/#comments</comments>
		<pubDate>Tue, 08 Jan 2008 11:04:39 +0000</pubDate>
		<dc:creator>Justin</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://jbossupdate.sadalbari.com/2008/01/08/double-submit-killer-redirect-after-post-pattern/</guid>
		<description><![CDATA[I&#8217;m pretty sure you&#8217;ve come across the problem of re-submitting data after a POST operation. This can happen under a number of situations: A page is rendered to the browser directly after a POST operation and the user refreshes the page (thus re-executing the POST) The user hits the back button, browsing back to a [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=cred.wordpress.com&amp;blog=263607&amp;post=13&amp;subd=cred&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>I&#8217;m pretty sure you&#8217;ve come across the problem of re-submitting data after a POST operation.  This can happen under a number of situations:</p>
<ul>
<li>A page is rendered to the browser directly after a POST operation and the user refreshes the page (thus re-executing the POST)</li>
<li>The user hits the back button, browsing back to a page which was previously rendered by a POST operation.</li>
</ul>
<p>Yes &#8211; a lot of browsers do warn the user that something nasty is about to happen.  But do we <i>really</i> expect the user to work around our shortcomings in design?<br />
The impact of the re-POST will vary depending on what you actually performed during the POST.  The best case scenario is that your operation is idempotent; re-executing the operation has the same net effect as executing it once.  An example of this is filling in a search form and POSTing a search.  Re-submitting the POST will just re-execute the search and re-display the search results. On the other hand, an operation such as a credit transfer on an internet banking web application may result in a second credit transfer and a very unhappy internet banking client.</p>
<p>One very effective way to counter this is by applying the redirect after post pattern to your web application.  In essence the pattern can be interpreted as &#8216;ALWAYS redirect your client after a POST action.  NEVER render a page directly from a POST&#8217;</p>
<p>Every web application developer should understand the consequence and cause of this behaviour.  A detailed description of this problem and solution can be found <a href="http://www.theserverside.com/tt/articles/article.tss?l=RedirectAfterPost">here</a></p>
<p>Depending on the web application framework that you are using, this pattern in implemented in a number of ways.  Using tapestry, returning an ILink from a listener method or throwing a RedirectException has the effect of redirecting the client.</p>
<p>Remember that there are considerations when using this pattern.  One of the trickier ones is the concept of application state.  Lets take an example</p>
<p>A developer designs a web page and a struts action/form which handles search functionality.</p>
<ol>
<li>The web form is POSTed to the web container which invokes the struts action.</li>
<li>The parameters are interpreted and the search performed, populating the view (struts form with request scope)  with the search results</li>
<li>The page is rendered using the results contained within the struts form</li>
</ol>
<p>The developer now wants to implement the redirect-after-post pattern, and redirects to the search action between 2) and 3).  The results page is always blank.</p>
<p>The reason for this is that the application state (contained by the struts form) has been lost during the redirect and the search results are empty after redirecting.  Remember. &#8211; redirecting involved a round-trip to the client and thus a new HTTP request.</p>
<p>There are many ways to solve this issue and most involve some transfer of state.  If the underlying model (database) reflects the application state &#8211; then its a simple case of just re-reading the model.  But we don&#8217;t typically save search results in the model and some form of state transfer needs to occur between the two requests.  How you do that also depends on your web application framework, so I&#8217;ll leave that to you to figure out.</p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/cred.wordpress.com/13/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/cred.wordpress.com/13/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/cred.wordpress.com/13/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/cred.wordpress.com/13/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/cred.wordpress.com/13/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/cred.wordpress.com/13/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/cred.wordpress.com/13/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/cred.wordpress.com/13/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/cred.wordpress.com/13/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/cred.wordpress.com/13/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/cred.wordpress.com/13/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/cred.wordpress.com/13/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/cred.wordpress.com/13/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/cred.wordpress.com/13/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/cred.wordpress.com/13/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/cred.wordpress.com/13/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=cred.wordpress.com&amp;blog=263607&amp;post=13&amp;subd=cred&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://cred.wordpress.com/2008/01/08/double-submit-killer-redirect-after-post-pattern/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/cc3c1b028aa7d088e8eec771ae4a0d91?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">justin</media:title>
		</media:content>
	</item>
		<item>
		<title>JBoss ESB 4.2</title>
		<link>http://cred.wordpress.com/2007/09/19/jboss-esb-42/</link>
		<comments>http://cred.wordpress.com/2007/09/19/jboss-esb-42/#comments</comments>
		<pubDate>Wed, 19 Sep 2007 12:24:42 +0000</pubDate>
		<dc:creator>lisaretief</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://jbossupdate.sadalbari.com/2007/09/19/jboss-esb-42/</guid>
		<description><![CDATA[JBoss recently released a long-awaited and in my opinion, the first production-ready release of their Enterprise Service Bus. It includes a gathering of products such as JBoss Rules, JBossWS (web services), JMS and lots of other integration goodies. This is a good 2 minute overview of the product: http://labs.jboss.com/community/newsletters/2007/september/esb_qa.html We are doing some intimate web [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=cred.wordpress.com&amp;blog=263607&amp;post=12&amp;subd=cred&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>JBoss recently released a long-awaited and in my opinion, the first production-ready release of their Enterprise Service Bus. It includes a gathering of products such as JBoss Rules, JBossWS (web services), JMS and lots of other integration goodies.</p>
<p>This is a good 2 minute overview of the product: http://labs.jboss.com/community/newsletters/2007/september/esb_qa.html</p>
<p>We are doing some intimate web service and rules work at the moment, and will be posting some entries on our experience in particular:</p>
<ul>
<li>Securing web service endpoints with certificates</li>
<li>Using the jUUDI server in JBoss</li>
</ul>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/cred.wordpress.com/12/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/cred.wordpress.com/12/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/cred.wordpress.com/12/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/cred.wordpress.com/12/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/cred.wordpress.com/12/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/cred.wordpress.com/12/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/cred.wordpress.com/12/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/cred.wordpress.com/12/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/cred.wordpress.com/12/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/cred.wordpress.com/12/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/cred.wordpress.com/12/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/cred.wordpress.com/12/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/cred.wordpress.com/12/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/cred.wordpress.com/12/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/cred.wordpress.com/12/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/cred.wordpress.com/12/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=cred.wordpress.com&amp;blog=263607&amp;post=12&amp;subd=cred&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://cred.wordpress.com/2007/09/19/jboss-esb-42/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/d7ba6f82d4e842d569abfbb20c7fb503?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">lisaretief</media:title>
		</media:content>
	</item>
		<item>
		<title>Red Hat Developer Studio</title>
		<link>http://cred.wordpress.com/2007/08/29/red-hat-developer-studio/</link>
		<comments>http://cred.wordpress.com/2007/08/29/red-hat-developer-studio/#comments</comments>
		<pubDate>Wed, 29 Aug 2007 15:00:51 +0000</pubDate>
		<dc:creator>lisaretief</dc:creator>
				<category><![CDATA[development environment]]></category>

		<guid isPermaLink="false">http://jbossupdate.sadalbari.com/2007/08/29/red-hat-developer-studio/</guid>
		<description><![CDATA[Red Hat Developer Studio (the next iteration of the JBoss IDE) has been released into beta. It is actually not fair to call it the next iteration of the JBoss IDE, as it is trying to do so much more than JBoss IDE ever did &#8211; the aim is to become an extremely rich integrated [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=cred.wordpress.com&amp;blog=263607&amp;post=11&amp;subd=cred&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Red Hat Developer Studio (the next iteration of the JBoss IDE) has been released into beta. It is actually not fair to call it the next iteration of the JBoss IDE, as it is trying to do so much more than JBoss IDE ever did &#8211; the aim is to become an extremely rich integrated development environment for JSF, AJAX and Seam applications aimed at the JBoss platform. Read the <a href="http://www.redhat.com/about/news/prarchive/2007/rhdsbeta.html">press release</a> and download it from <a href="http://www.redhat.com/developers/rhds/index.html">http://www.redhat.com/developers/rhds/index.html</a>. You can also get the user guide and some other tutorial at the download site.</p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/cred.wordpress.com/11/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/cred.wordpress.com/11/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/cred.wordpress.com/11/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/cred.wordpress.com/11/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/cred.wordpress.com/11/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/cred.wordpress.com/11/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/cred.wordpress.com/11/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/cred.wordpress.com/11/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/cred.wordpress.com/11/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/cred.wordpress.com/11/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/cred.wordpress.com/11/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/cred.wordpress.com/11/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/cred.wordpress.com/11/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/cred.wordpress.com/11/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/cred.wordpress.com/11/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/cred.wordpress.com/11/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=cred.wordpress.com&amp;blog=263607&amp;post=11&amp;subd=cred&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://cred.wordpress.com/2007/08/29/red-hat-developer-studio/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/d7ba6f82d4e842d569abfbb20c7fb503?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">lisaretief</media:title>
		</media:content>
	</item>
		<item>
		<title>JNDI Refresher</title>
		<link>http://cred.wordpress.com/2007/07/30/jndi-refresher/</link>
		<comments>http://cred.wordpress.com/2007/07/30/jndi-refresher/#comments</comments>
		<pubDate>Mon, 30 Jul 2007 06:03:01 +0000</pubDate>
		<dc:creator>lisaretief</dc:creator>
				<category><![CDATA[j2ee]]></category>
		<category><![CDATA[jndi]]></category>

		<guid isPermaLink="false">http://jbossupdate.sadalbari.com/2007/07/30/jndi-refresher/</guid>
		<description><![CDATA[As a J2EE and JBoss trainer, I find that JNDI, and in particular the different namespaces, is perhaps one of the worst understood areas of the J2EE specificition. I try to distill it down to the core issues. We all know that JNDI is an abstraction to naming services, in the same way that JDBC [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=cred.wordpress.com&amp;blog=263607&amp;post=10&amp;subd=cred&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>As a J2EE and JBoss trainer, I find that JNDI, and in particular the different namespaces, is perhaps one of the worst understood areas of the J2EE specificition.</p>
<p>I try to distill it down to the core issues.</p>
<p>We all know that JNDI is an abstraction to naming services, in the same way that JDBC is an abstraction to data storage services. In Java and J2EE, JNDI is used to <em>bind</em> programmer-friendly names to resources that may be defined in another place and time &#8211; either by another piece of code but usually by the application server itself. A good example is a datasource name &#8211; &#8220;java:/myDatasource&#8221; is what you may use to refer to your database, and at startup or deploy time JBoss has bound the details of your connection to that name.</p>
<p>So what about namespaces?</p>
<p>In J2EE there are 3 JNDI namespaces defined by the specification:</p>
<ol>
<li>The global namespace (no prefix)</li>
<li>The VM namespace (java:/)</li>
<li>The component namespace (java:/comp/env)</li>
</ol>
<p>Objects bound in (1) are available to any lookup on the same network. Remote interfaces (implemented as JBoss smart proxies) get bound by JBoss in this namespace so that anyone can do a lookup and retrieve a proxy to the object. Also, if in your code you call ctx.bind(&#8220;someName&#8221;) then your object is bound as &#8220;someName&#8221; in the global namespace.</p>
<p>Objects bound in (2) are available to any lookup in the same virtual machine. This is where JBoss binds resources that your web and server components may want to access, such as datasources, other jca connections, connection pools etc. If you want to bind something in this namespace, for example if you have written an MBean you want only accessible to objects in the VM, the you would traverse the JNDI tree (see the Javadoc for Context) and bind your object in the appropriate place. Remember to create a subcontext first if it does not exist.</p>
<p>Objects bound in (3) are available to a single object only. Even objects in the same package and application will not be able to access them. Typically these are resources or local names for already bound objects which are declared in the deployment descriptor and/or annotation for a particular object.</p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/cred.wordpress.com/10/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/cred.wordpress.com/10/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/cred.wordpress.com/10/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/cred.wordpress.com/10/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/cred.wordpress.com/10/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/cred.wordpress.com/10/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/cred.wordpress.com/10/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/cred.wordpress.com/10/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/cred.wordpress.com/10/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/cred.wordpress.com/10/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/cred.wordpress.com/10/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/cred.wordpress.com/10/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/cred.wordpress.com/10/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/cred.wordpress.com/10/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/cred.wordpress.com/10/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/cred.wordpress.com/10/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=cred.wordpress.com&amp;blog=263607&amp;post=10&amp;subd=cred&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://cred.wordpress.com/2007/07/30/jndi-refresher/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/d7ba6f82d4e842d569abfbb20c7fb503?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">lisaretief</media:title>
		</media:content>
	</item>
		<item>
		<title>Public JBoss websites &#8211; which to avoid</title>
		<link>http://cred.wordpress.com/2007/07/10/public-jboss-websites-which-to-avoid/</link>
		<comments>http://cred.wordpress.com/2007/07/10/public-jboss-websites-which-to-avoid/#comments</comments>
		<pubDate>Tue, 10 Jul 2007 13:36:10 +0000</pubDate>
		<dc:creator>lisaretief</dc:creator>
				<category><![CDATA[information]]></category>

		<guid isPermaLink="false">http://jbossupdate.sadalbari.com/2007/07/10/public-jboss-websites-which-to-avoid/</guid>
		<description><![CDATA[The http://www.jboss.com website used to contain really useful stuff, but lately Red Hat have converted it into a slick sales site, useful for very little if you are actually a user of JBoss or even a new-to-jboss techie. Don&#8217;t despair if you were used to finding what you wanted there and are now out in [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=cred.wordpress.com&amp;blog=263607&amp;post=9&amp;subd=cred&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>The http://www.jboss.com website used to contain really useful stuff, but lately Red Hat have converted it into a slick sales site, useful for very little if you are actually a user of JBoss or even a new-to-jboss techie.</p>
<p>Don&#8217;t despair if you were used to finding what you wanted there and are now out in the cold.</p>
<p>The http://www.jboss.org site is the aimed-at-developers site, and it is the new place to go for downloads, webinars, developer blogs and other useful information. Just follow the &#8220;how to jboss projects fit together&#8221; link and from there you will easily find your way around.</p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/cred.wordpress.com/9/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/cred.wordpress.com/9/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/cred.wordpress.com/9/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/cred.wordpress.com/9/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/cred.wordpress.com/9/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/cred.wordpress.com/9/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/cred.wordpress.com/9/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/cred.wordpress.com/9/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/cred.wordpress.com/9/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/cred.wordpress.com/9/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/cred.wordpress.com/9/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/cred.wordpress.com/9/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/cred.wordpress.com/9/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/cred.wordpress.com/9/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/cred.wordpress.com/9/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/cred.wordpress.com/9/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=cred.wordpress.com&amp;blog=263607&amp;post=9&amp;subd=cred&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://cred.wordpress.com/2007/07/10/public-jboss-websites-which-to-avoid/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/d7ba6f82d4e842d569abfbb20c7fb503?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">lisaretief</media:title>
		</media:content>
	</item>
		<item>
		<title>Why can&#8217;t I connect remotely to my JBoss 4.2.0 server?</title>
		<link>http://cred.wordpress.com/2007/07/10/why-cant-i-connect-remotely-to-my-jboss-420-server/</link>
		<comments>http://cred.wordpress.com/2007/07/10/why-cant-i-connect-remotely-to-my-jboss-420-server/#comments</comments>
		<pubDate>Tue, 10 Jul 2007 13:27:31 +0000</pubDate>
		<dc:creator>lisaretief</dc:creator>
				<category><![CDATA[Jboss as 4.2.0]]></category>

		<guid isPermaLink="false">http://jbossupdate.sadalbari.com/2007/07/10/why-cant-i-connect-remotely-to-my-jboss-420-server/</guid>
		<description><![CDATA[This one has tripped me up a few times, so I thought I would try and prevent it from happening to others. So you decide to use or upgrade to JBoss 4.2.0, and test it locally and it works just fine. Then you go aheas and deploy to the server and you get &#8220;Connection refused&#8221; [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=cred.wordpress.com&amp;blog=263607&amp;post=8&amp;subd=cred&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>This one has tripped me up a few times, so I thought I would try and prevent it from happening to others.</p>
<p>So you decide to use or upgrade to JBoss 4.2.0, and test it locally and it works just fine. Then you go aheas and deploy to the server and you get &#8220;Connection refused&#8221; exceptions. Huh?</p>
<p>Before JBoss 4.2.0, the default behaviour for the JBoss Application server was to bind itself (and thus be available) on all configured network interfaces. Now it _only_ binds to &#8220;localhost&#8221; unless you tell it otherwise. So start the server up using run.sh -b &lt;ipaddress&gt; and all will be well again.</p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/cred.wordpress.com/8/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/cred.wordpress.com/8/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/cred.wordpress.com/8/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/cred.wordpress.com/8/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/cred.wordpress.com/8/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/cred.wordpress.com/8/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/cred.wordpress.com/8/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/cred.wordpress.com/8/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/cred.wordpress.com/8/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/cred.wordpress.com/8/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/cred.wordpress.com/8/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/cred.wordpress.com/8/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/cred.wordpress.com/8/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/cred.wordpress.com/8/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/cred.wordpress.com/8/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/cred.wordpress.com/8/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=cred.wordpress.com&amp;blog=263607&amp;post=8&amp;subd=cred&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://cred.wordpress.com/2007/07/10/why-cant-i-connect-remotely-to-my-jboss-420-server/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/d7ba6f82d4e842d569abfbb20c7fb503?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">lisaretief</media:title>
		</media:content>
	</item>
	</channel>
</rss>
