<?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>JEE &#8211; Manuel Bogner&#039;s Blog</title>
	<atom:link href="https://blog.mbo.dev/archives/category/dev/jee/feed" rel="self" type="application/rss+xml" />
	<link>https://blog.mbo.dev</link>
	<description>Solutions to everyday IT problems</description>
	<lastBuildDate>Wed, 21 Sep 2022 09:39:10 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	

<image>
	<url>https://blog.mbo.dev/wp-content/uploads/2022/11/cropped-cropped-mbo-white_opt-32x32.png</url>
	<title>JEE &#8211; Manuel Bogner&#039;s Blog</title>
	<link>https://blog.mbo.dev</link>
	<width>32</width>
	<height>32</height>
</image> 
	<item>
		<title>java.lang.ClassNotFoundException: javax.annotation.PostConstruct</title>
		<link>https://blog.mbo.dev/archives/1860</link>
		
		<dc:creator><![CDATA[Manuel Bogner]]></dc:creator>
		<pubDate>Wed, 21 Sep 2022 09:38:55 +0000</pubDate>
				<category><![CDATA[Development]]></category>
		<category><![CDATA[Java]]></category>
		<category><![CDATA[JEE]]></category>
		<category><![CDATA[Kotlin]]></category>
		<category><![CDATA[Uncategorized]]></category>
		<guid isPermaLink="false">https://blog.coffeebeans.at/?p=1860</guid>

					<description><![CDATA[When upgrading to the latest tools and libraries in a Spring Boot application with OpenAPI code generator in place the OpenAPI Kotlin generator introduced jakarta.annotation:jakarta.annotation-api. But with this in place the application refused to start with something like org.springframework.context.ApplicationContextException: Unable to start web server; nested exception is org.springframework.boot.web.server.WebServerException: Unable to start embedded Tomcat…Caused by: java.lang.IllegalStateException: [&#8230;]]]></description>
										<content:encoded><![CDATA[
<p>When upgrading to the latest tools and libraries in a Spring Boot application with OpenAPI code generator in place the OpenAPI Kotlin generator introduced <strong><em>jakarta.annotation:jakarta.annotation-api</em></strong>. But with this in place the application refused to start with something like</p>



<p><code><em>org.springframework.context.ApplicationContextException: Unable to start web server; nested exception is org.springframework.boot.web.server.WebServerException: Unable to start embedded Tomcat<br>…<br>Caused by: java.lang.IllegalStateException: StandardEngine[Tomcat].StandardHost[localhost].TomcatEmbeddedContext[] failed to start</em></code></p>



<p>Digging a bit deeper I found the real reason:</p>



<p><code><em>java.lang.NoClassDefFoundError: javax/annotation/PostConstruct</em></code></p>



<p>This can be fixed by also including <strong><em>javax.annotation:javax.annotation-api</em></strong> as a dependency. The new jakarta based library only includes <em>jakarta.annotation.*</em> but not <em>javax.annotation.*</em>. But Spring Boot still requires the old namespace to work. I didn&#8217;t dig deeper why including the dependency broke the app though it was working before without both of the dependencies.</p>



<p>Another great sample for how convenient this rename is and further will be.</p>
]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>How to access BeanManager in a JEE application</title>
		<link>https://blog.mbo.dev/archives/992</link>
					<comments>https://blog.mbo.dev/archives/992#respond</comments>
		
		<dc:creator><![CDATA[Manuel Bogner]]></dc:creator>
		<pubDate>Fri, 18 Sep 2015 13:39:51 +0000</pubDate>
				<category><![CDATA[Development]]></category>
		<category><![CDATA[JEE]]></category>
		<guid isPermaLink="false">http://blog.coffeebeans.at/?p=992</guid>

					<description><![CDATA[There are different ways to get a reference to javax.enterprise.inject.spi.BeanManager in an JEE application: @Inject private BeanManager beanManager; private BeanManager bm = javax.enterprise.inject.spi.CDI.current().getBeanManager(); Especially the second one can be very handy if you hit a part that doesn&#8217;t support CDI already.]]></description>
										<content:encoded><![CDATA[<p>There are different ways to get a reference to javax.enterprise.inject.spi.BeanManager in an JEE application:</p>
<ul>
<li>@Inject private BeanManager beanManager;</li>
<li>private BeanManager bm = javax.enterprise.inject.spi.CDI.current().getBeanManager();</li>
</ul>
<p>Especially the second one can be very handy if you hit a part that doesn&#8217;t support CDI already.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://blog.mbo.dev/archives/992/feed</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>JBoss show JDBC Queries</title>
		<link>https://blog.mbo.dev/archives/965</link>
					<comments>https://blog.mbo.dev/archives/965#respond</comments>
		
		<dc:creator><![CDATA[Manuel Bogner]]></dc:creator>
		<pubDate>Fri, 10 Apr 2015 10:39:08 +0000</pubDate>
				<category><![CDATA[Java]]></category>
		<category><![CDATA[JEE]]></category>
		<guid isPermaLink="false">http://blog.coffeebeans.at/?p=965</guid>

					<description><![CDATA[Sometimes it is necessary to see which queries are executed and what the parameters of these queries have been. To get this data from a JBoss 7+ you have to follow these steps: Enable JDBC-Spy on Datasource: /subsystem=datasources/data-source=ExampleDS/:write-attribute(name=spy,value=true) Or just add spy=&#8221;true&#8221; as attribute in standalone.xml. Then you have to enable the spy by adding a [&#8230;]]]></description>
										<content:encoded><![CDATA[<p>Sometimes it is necessary to see which queries are executed and what the parameters of these queries have been. To get this data from a JBoss 7+ you have to follow these steps:</p>
<p>Enable JDBC-Spy on Datasource:</p>
<pre class="lang:sh decode:true ">/subsystem=datasources/data-source=ExampleDS/:write-attribute(name=spy,value=true)</pre>
<p>Or just add spy=&#8221;true&#8221; as attribute in standalone.xml.</p>
<p>Then you have to enable the spy by adding a loglevel:</p>
<pre class="lang:sh decode:true ">/subsystem=logging/logger=jboss.jdbc.spy/:add(level=TRACE)</pre>
<p>If this doesn&#8217;t output anything your loglevel is above trace. Default is INFO. So nothing is displayed.</p>
<p>Add the following part to your logging configuration to enable TRACE-logging for a single package:</p>
<pre class="lang:xhtml decode:true ">&lt;subsystem xmlns="urn:jboss:domain:logging:2.0"&gt;
...
&lt;console-handler name="TRACER"&gt;
  &lt;level name="TRACE"/&gt;
  &lt;formatter&gt;
    &lt;named-formatter name="COLOR-PATTERN"/&gt;
  &lt;/formatter&gt;
&lt;/console-handler&gt;
...
&lt;logger category="jboss.jdbc.spy" use-parent-handlers="false"&gt;
  &lt;level name="TRACE"/&gt;
  &lt;handlers&gt;
    &lt;handler name="TRACER"/&gt;
  &lt;/handlers&gt;
&lt;/logger&gt;
...
&lt;/subsystem&gt;</pre>
<p>I didn&#8217;t use command line for this but of course it would be possible to do so.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://blog.mbo.dev/archives/965/feed</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>JBoss Maven Repository</title>
		<link>https://blog.mbo.dev/archives/939</link>
					<comments>https://blog.mbo.dev/archives/939#respond</comments>
		
		<dc:creator><![CDATA[Manuel Bogner]]></dc:creator>
		<pubDate>Wed, 25 Feb 2015 19:34:48 +0000</pubDate>
				<category><![CDATA[Development]]></category>
		<category><![CDATA[JEE]]></category>
		<guid isPermaLink="false">http://blog.coffeebeans.at/?p=939</guid>

					<description><![CDATA[To use the jboss maven repository under https://repository.jboss.org/nexus/ you have to add a profile in your settings.xml (~/.m2 or $M2_HOME/conf). &#60;settings&#62; ... &#60;profiles&#62; ... &#60;profile&#62; &#60;id&#62;jboss-public-repository&#60;/id&#62; &#60;repositories&#62; &#60;repository&#62; &#60;id&#62;jboss-public-repository-group&#60;/id&#62; &#60;name&#62;JBoss Public Maven Repository Group&#60;/name&#62; &#60;url&#62;https://repository.jboss.org/nexus/content/groups/public-jboss/&#60;/url&#62; &#60;layout&#62;default&#60;/layout&#62; &#60;releases&#62; &#60;enabled&#62;true&#60;/enabled&#62; &#60;updatePolicy&#62;never&#60;/updatePolicy&#62; &#60;/releases&#62; &#60;snapshots&#62; &#60;enabled&#62;true&#60;/enabled&#62; &#60;updatePolicy&#62;never&#60;/updatePolicy&#62; &#60;/snapshots&#62; &#60;/repository&#62; &#60;/repositories&#62; &#60;pluginRepositories&#62; &#60;pluginRepository&#62; &#60;id&#62;jboss-public-repository-group&#60;/id&#62; &#60;name&#62;JBoss Public Maven Repository Group&#60;/name&#62; &#60;url&#62;https://repository.jboss.org/nexus/content/groups/public-jboss/&#60;/url&#62; &#60;layout&#62;default&#60;/layout&#62; &#60;releases&#62; [&#8230;]]]></description>
										<content:encoded><![CDATA[<p>To use the jboss maven repository under <a title="JBoss Maven Repository" href="https://repository.jboss.org/nexus/" target="_blank" rel="noopener">https://repository.jboss.org/nexus/</a> you have to add a profile in your settings.xml (~/.m2 or $M2_HOME/conf).</p>
<pre class="lang:xhtml decode:true">&lt;settings&gt;  
  ...  
  &lt;profiles&gt;  
    ...  
    &lt;profile&gt;  
      &lt;id&gt;jboss-public-repository&lt;/id&gt;  
      &lt;repositories&gt;  
        &lt;repository&gt;  
          &lt;id&gt;jboss-public-repository-group&lt;/id&gt;  
          &lt;name&gt;JBoss Public Maven Repository Group&lt;/name&gt;  
          &lt;url&gt;https://repository.jboss.org/nexus/content/groups/public-jboss/&lt;/url&gt;  
          &lt;layout&gt;default&lt;/layout&gt;  
          &lt;releases&gt;  
            &lt;enabled&gt;true&lt;/enabled&gt;  
            &lt;updatePolicy&gt;never&lt;/updatePolicy&gt;  
          &lt;/releases&gt;  
          &lt;snapshots&gt;  
            &lt;enabled&gt;true&lt;/enabled&gt;  
            &lt;updatePolicy&gt;never&lt;/updatePolicy&gt;  
          &lt;/snapshots&gt;  
        &lt;/repository&gt;  
      &lt;/repositories&gt;  
      &lt;pluginRepositories&gt;  
        &lt;pluginRepository&gt;  
          &lt;id&gt;jboss-public-repository-group&lt;/id&gt;  
          &lt;name&gt;JBoss Public Maven Repository Group&lt;/name&gt;  
          &lt;url&gt;https://repository.jboss.org/nexus/content/groups/public-jboss/&lt;/url&gt;  
          &lt;layout&gt;default&lt;/layout&gt;  
          &lt;releases&gt;  
            &lt;enabled&gt;true&lt;/enabled&gt;  
            &lt;updatePolicy&gt;never&lt;/updatePolicy&gt;  
          &lt;/releases&gt;  
          &lt;snapshots&gt;  
            &lt;enabled&gt;true&lt;/enabled&gt;  
            &lt;updatePolicy&gt;never&lt;/updatePolicy&gt;  
          &lt;/snapshots&gt;  
        &lt;/pluginRepository&gt;  
      &lt;/pluginRepositories&gt;  
    &lt;/profile&gt;  
  
  &lt;/profiles&gt;  
  
  &lt;activeProfiles&gt;  
    &lt;activeProfile&gt;jboss-public-repository&lt;/activeProfile&gt;  
  &lt;/activeProfiles&gt;  
  ...  
&lt;/settings&gt;</pre>
<p>[copied from <a href="https://developer.jboss.org/wiki/MavenGettingStarted-Users" target="_blank" rel="noopener">https://developer.jboss.org/wiki/MavenGettingStarted-Users</a>, 25.02.2015]</p>
<p>Of course you have to activate it.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://blog.mbo.dev/archives/939/feed</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>Encrypted Database Passwords in JBoss</title>
		<link>https://blog.mbo.dev/archives/884</link>
					<comments>https://blog.mbo.dev/archives/884#respond</comments>
		
		<dc:creator><![CDATA[Manuel Bogner]]></dc:creator>
		<pubDate>Mon, 15 Sep 2014 14:47:09 +0000</pubDate>
				<category><![CDATA[Development]]></category>
		<category><![CDATA[JEE]]></category>
		<guid isPermaLink="false">http://blog.coffeebeans.at/?p=884</guid>

					<description><![CDATA[JBoss provides a simple mechanism to encrypt database passwords with blowfish. So the standalone.xml does not include our database passwords in plaintext anymore. First you have to encrypt your password with org.picketbox.datasource.security.SecureIdentityLoginModule. This class includes a main method so you can run it with a single argument which has to be your plaintext password. The result will look like [&#8230;]]]></description>
										<content:encoded><![CDATA[<p>JBoss provides a simple mechanism to encrypt database passwords with blowfish. So the standalone.xml does not include our database passwords in plaintext anymore.</p>
<p>First you have to encrypt your password with org.picketbox.datasource.security.SecureIdentityLoginModule. This class includes a main method so you can run it with a single argument which has to be your plaintext password. The result will look like this:</p>
<pre class="lang:default decode:true">Encoded password: 1ab234cf321cca</pre>
<p>The class is included in jboss modules.</p>
<p>Then create a security-domain in your standalone.xml file:</p>
<pre class="lang:xhtml decode:true">&lt;security-domain name="databaseSecure" cache-type="default"&gt;
  &lt;authentication&gt;
    &lt;login-module code="org.picketbox.datasource.security.SecureIdentityLoginModule" flag="required"&gt;
      &lt;module-option name="username" value="username"/&gt;
      &lt;module-option name="password" value="1ab234cf321cca"/&gt;
    &lt;/login-module&gt;
  &lt;/authentication&gt;
&lt;/security-domain&gt;</pre>
<p>Or with cli:</p>
<pre class="lang:sh decode:true ">/subsystem=security/security-domain=databaseSecure:add(cache-type=default)  
/subsystem=security/security-domain=databaseSecure/authentication=classic:add(login-modules=[{"code"=&gt;"org.picketbox.datasource.security.SecureIdentityLoginModule", "flag"=&gt;"required", "module-options"=&gt;[("username"=&gt;"username"), ("password"=&gt;"1ab234cf321cca")]}])
</pre>
<p>&nbsp;</p>
<p>The last step is to replace the username+password part of your datasource with a security-domain element. This would look like this in its simplest way:</p>
<pre class="lang:xhtml decode:true ">&lt;datasource jndi-name="java:jboss/datasources/mypgDS" pool-name="MypgDS" enabled="true" use-java-context="true"&gt;
  &lt;connection-url&gt;jdbc:postgresql:db1&lt;/connection-url&gt;
  &lt;driver&gt;postgresql&lt;/driver&gt;
  &lt;security&gt;
    &lt;security-domain&gt;databaseSecure&lt;/security-domain&gt;
  &lt;/security&gt;
&lt;/datasource&gt;</pre>
<p>After theses changes start your application server.</p>
<p>ATTENTION! The passphrase that is used for the Blowfish algorithm is hardcoded in the login module. To make this secure you have to change the password in that component. Change the source and recompile or create an extension and overwrite all necessary parts and add it as a new module.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://blog.mbo.dev/archives/884/feed</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>Connect to JBoss CLI with port offset</title>
		<link>https://blog.mbo.dev/archives/881</link>
					<comments>https://blog.mbo.dev/archives/881#respond</comments>
		
		<dc:creator><![CDATA[Manuel Bogner]]></dc:creator>
		<pubDate>Fri, 12 Sep 2014 10:03:43 +0000</pubDate>
				<category><![CDATA[Development]]></category>
		<category><![CDATA[JEE]]></category>
		<guid isPermaLink="false">http://blog.coffeebeans.at/?p=881</guid>

					<description><![CDATA[Simply use the following with an example port offset of 100: ./jboss-cli.sh --connect --controller=&#60;BindIP&#62;:10099 &#160;]]></description>
										<content:encoded><![CDATA[<p>Simply use the following with an example port offset of 100:</p>
<pre class="lang:default decode:true">./jboss-cli.sh --connect --controller=&lt;BindIP&gt;:10099</pre>
<p>&nbsp;</p>
]]></content:encoded>
					
					<wfw:commentRss>https://blog.mbo.dev/archives/881/feed</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>Disable Stacktrace in Response of JBoss</title>
		<link>https://blog.mbo.dev/archives/878</link>
					<comments>https://blog.mbo.dev/archives/878#respond</comments>
		
		<dc:creator><![CDATA[Manuel Bogner]]></dc:creator>
		<pubDate>Fri, 12 Sep 2014 09:49:58 +0000</pubDate>
				<category><![CDATA[Development]]></category>
		<category><![CDATA[JEE]]></category>
		<guid isPermaLink="false">http://blog.coffeebeans.at/?p=878</guid>

					<description><![CDATA[To disable the source body in a stacktrace you have to add the following configuration to your web subsystem in standalone.xml: &#60;configuration&#62; &#60;jsp-configuration display-source-fragment="false"/&#62; &#60;/configuration&#62; Or with cli: /subsystem=web/configuration=jsp-configuration:write-attribute(name=display-source-fragment, value=false) &#160;]]></description>
										<content:encoded><![CDATA[<p>To disable the source body in a stacktrace you have to add the following configuration to your web subsystem in standalone.xml:</p>
<pre class="lang:xhtml decode:true ">&lt;configuration&gt;
  &lt;jsp-configuration display-source-fragment="false"/&gt;
&lt;/configuration&gt;</pre>
<p>Or with cli:</p>
<pre class="lang:default decode:true ">/subsystem=web/configuration=jsp-configuration:write-attribute(name=display-source-fragment, value=false)</pre>
<p>&nbsp;</p>
]]></content:encoded>
					
					<wfw:commentRss>https://blog.mbo.dev/archives/878/feed</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>Disable Deployment-Scanner in JBoss</title>
		<link>https://blog.mbo.dev/archives/873</link>
					<comments>https://blog.mbo.dev/archives/873#respond</comments>
		
		<dc:creator><![CDATA[Manuel Bogner]]></dc:creator>
		<pubDate>Fri, 12 Sep 2014 09:34:48 +0000</pubDate>
				<category><![CDATA[Development]]></category>
		<category><![CDATA[JEE]]></category>
		<guid isPermaLink="false">http://blog.coffeebeans.at/?p=873</guid>

					<description><![CDATA[Look for the deployment-scanner config in your standalone.xml and configure the scan interval to -1 to allow deployment onyl from shell or at startup. Here is the relevant part: &#60;subsystem xmlns="urn:jboss:domain:deployment-scanner:1.1"&#62; &#60;deployment-scanner path="deployments" relative-to="jboss.server.base.dir" scan-interval="-1"/&#62; &#60;/subsystem&#62; Or with cli: /subsystem=deployment-scanner/scanner=default:write-attribute(name=scan-interval, value=-1) &#160;]]></description>
										<content:encoded><![CDATA[<p>Look for the deployment-scanner config in your standalone.xml and configure the scan interval to -1 to allow deployment onyl from shell or at startup. Here is the relevant part:</p>
<pre class="lang:default decode:true ">&lt;subsystem xmlns="urn:jboss:domain:deployment-scanner:1.1"&gt;
  &lt;deployment-scanner path="deployments" relative-to="jboss.server.base.dir" scan-interval="-1"/&gt;
&lt;/subsystem&gt;</pre>
<p>Or with cli:</p>
<pre class="lang:default decode:true ">/subsystem=deployment-scanner/scanner=default:write-attribute(name=scan-interval, value=-1)</pre>
<p>&nbsp;</p>
]]></content:encoded>
					
					<wfw:commentRss>https://blog.mbo.dev/archives/873/feed</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>Remove X_POWERED_BY Header in JBoss EAP6</title>
		<link>https://blog.mbo.dev/archives/859</link>
					<comments>https://blog.mbo.dev/archives/859#respond</comments>
		
		<dc:creator><![CDATA[Manuel Bogner]]></dc:creator>
		<pubDate>Fri, 12 Sep 2014 08:42:14 +0000</pubDate>
				<category><![CDATA[Development]]></category>
		<category><![CDATA[JEE]]></category>
		<guid isPermaLink="false">http://blog.coffeebeans.at/?p=859</guid>

					<description><![CDATA[First you have to disable it in standalone.xml by adding jsp-configuration x-powered-by=&#8221;false&#8221;. Here the relevant part of my config: &#60;subsystem xmlns="urn:jboss:domain:web:1.5" default-virtual-server="default-host" native="false"&#62; &#60;connector name="http" protocol="HTTP/1.1" scheme="http" socket-binding="http"/&#62; &#60;virtual-server name="default-host" enable-welcome-root="false"&#62; &#60;alias name="localhost"/&#62; &#60;/virtual-server&#62; &#60;configuration&#62; &#60;jsp-configuration x-powered-by="false"/&#62; &#60;/configuration&#62; &#60;/subsystem&#62; Or with cli: /subsystem=web/configuration=jsp-configuration:write-attribute(name=x-powered-by,value=false) In a JSF application you have to add the following context param: &#60;context-param&#62; [&#8230;]]]></description>
										<content:encoded><![CDATA[<p>First you have to disable it in standalone.xml by adding jsp-configuration x-powered-by=&#8221;false&#8221;. Here the relevant part of my config:</p>
<pre class="lang:xhtml decode:true">&lt;subsystem xmlns="urn:jboss:domain:web:1.5" default-virtual-server="default-host" native="false"&gt;
  &lt;connector name="http" protocol="HTTP/1.1" scheme="http" socket-binding="http"/&gt;
  &lt;virtual-server name="default-host" enable-welcome-root="false"&gt;
    &lt;alias name="localhost"/&gt;
  &lt;/virtual-server&gt;
  &lt;configuration&gt;
    &lt;jsp-configuration x-powered-by="false"/&gt;
  &lt;/configuration&gt;
&lt;/subsystem&gt;</pre>
<p>Or with cli:</p>
<pre class="lang:default decode:true  ">/subsystem=web/configuration=jsp-configuration:write-attribute(name=x-powered-by,value=false)</pre>
<p>In a JSF application you have to add the following context param:</p>
<pre class="lang:xhtml decode:true ">&lt;context-param&gt;
    &lt;param-name&gt;com.sun.faces.sendPoweredByHeader&lt;/param-name&gt;
    &lt;param-value&gt;false&lt;/param-value&gt;
&lt;/context-param&gt;</pre>
<p>Then start your server and the header should be gone.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://blog.mbo.dev/archives/859/feed</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>Make your webapplication log debug messages under jboss</title>
		<link>https://blog.mbo.dev/archives/842</link>
					<comments>https://blog.mbo.dev/archives/842#respond</comments>
		
		<dc:creator><![CDATA[Manuel Bogner]]></dc:creator>
		<pubDate>Sat, 30 Aug 2014 19:39:58 +0000</pubDate>
				<category><![CDATA[Development]]></category>
		<category><![CDATA[JEE]]></category>
		<guid isPermaLink="false">http://blog.coffeebeans.at/?p=842</guid>

					<description><![CDATA[I often catch myself writing info-messages because jboss is configured to info-mode by default. By adding the following few lines you can make your application use debug mode: &#60;subsystem xmlns="urn:jboss:domain:logging:2.0"&#62; ... &#60;!-- add begin --&#62; &#60;console-handler name="DEBUGCONSOLE"&#62; &#60;level name="DEBUG" /&#62; &#60;formatter&#62; &#60;pattern-formatter pattern="%d{HH:mm:ss,SSS} %-5p [%c] (%F:%L) %s%E%n" /&#62; &#60;/formatter&#62; &#60;/console-handler&#62; &#60;logger category="pm.mbo" use-parent-handlers="false"&#62; &#60;level name="DEBUG" [&#8230;]]]></description>
										<content:encoded><![CDATA[<p>I often catch myself writing info-messages because jboss is configured to info-mode by default. By adding the following few lines you can make your application use debug mode:</p>
<pre class="lang:xhtml decode:true">&lt;subsystem xmlns="urn:jboss:domain:logging:2.0"&gt;
  ...
  &lt;!-- add begin --&gt;
  &lt;console-handler name="DEBUGCONSOLE"&gt;
    &lt;level name="DEBUG" /&gt;
    &lt;formatter&gt;
      &lt;pattern-formatter pattern="%d{HH:mm:ss,SSS} %-5p [%c] (%F:%L)  %s%E%n" /&gt;
    &lt;/formatter&gt;
  &lt;/console-handler&gt;
  &lt;logger category="pm.mbo" use-parent-handlers="false"&gt;
    &lt;level name="DEBUG" /&gt;
    &lt;handlers&gt;
      &lt;handler name="DEBUGCONSOLE" /&gt;
    &lt;/handlers&gt;
  &lt;/logger&gt;
  &lt;!-- add end --&gt;
  ...
&lt;/subsystem&gt;</pre>
<p>Of course you have to change the category (your package name) in the logger. The snippet is from Wildfly 8.1. But it is the same approach for JBoss AS 7+.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://blog.mbo.dev/archives/842/feed</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
	</channel>
</rss>
