Home » Tag Archives: JBoss

Tag Archives: JBoss

Configuring multiple context root for a single webapp – JBoss

Sometime back we made changes to our application to support multiple context root leveraging JBoss capabilities by defining one in jboss-web.xml, as follows: webapp/WEB-INF/jboss-web.xml: <?xml version="1.0" encoding="UTF-8"?> <jboss-web> <context-root>appA</context-root> <session-config> <session-timeout>10</session-timeout> </session-config> </jboss-web> And defining the rewrite rule in virtual-server of one of the subsystem in standalone.xml to support other(s) context root, as follows: jboss-eap/standalone/configuration/standalone.xml: <subsystem xmlns="urn:jboss:domain:web:2.2" default-virtual-server="default-host" native="false"> <connector ...

Read More »

How To Import Any JBoss BRMS Example Project

This tips & tricks comes to you after I have been asked the following repeatedly over the last few weeks by users of the JBoss BRMS demos: “How can I import the projects associated with the various JBoss BRMS demo projects into my own existing installation?” What this means is that users want to have an example project in their ...

Read More »

Docker Java App Deployment – 4 App Stacks: Tomcat, GlassFish, Jetty and JBoss

Sign Up for FREE on http://DCHQ.io to get access to out-of-box multi-tier Java application templates (including the Movie Store app on Tomcat, JBoss, GlassFish and Jetty) along with application lifecycle management functionality like monitoring, container updates, scale in/out and continuous delivery. Background Java developers and DevOps professionals have long struggled to automate the deployment of enterprise Java applications. The complex ...

Read More »

A sneak peek at whats coming in JBoss Fuse 6.1

I’m really excited about the forthcoming Fuse 6.1 release as there’s a ton of awesome new features which I’ve really wanted for some time and some really hawt tooling . So here’s a quick sneak peek, focussing mostly on the new version of the Fuse Management Console (which is now implemented by hawtio open source project). A-MQ First let me show ...

Read More »

Using HA Singleton in JBoss 7

Some time ago I had to change standard clustering behavior of Quartz Scheduler, and let it work without synchronizing over database. There are of course a lot of options to do that, but because I’m big fan of simplicity I’ve decided to use standard Spring @Scheduled configuration and totally skip thinking about cluster at this level. The idea was to ...

Read More »

Proper decoding of URL parameters on the server-side in JBoss

I spent many hours today to figure out how to force a proper decoding of encoded characters in JSF applications running on JBoss (using JBoss 7 Final). The problem occurs when you have e.g. chinese characters passed through URL. Assume you have 指事, encoded as %E6%8C%87%E4%BA%8B. Surprise, but these characters arrive you on the server-side as 指事. They are decoded ...

Read More »

Deploying BroadleafCommerce 2.0 on JBoss AS 7

First 2 steps are not really related to Broadleaf specific, but mentioned to make it easy to follow(copy/paste) the steps.                   Step#1: Configure DataSources in JBoss AS. <datasource jta="true" jndi-name="java:jboss/datasources/BroadleafDS" pool-name="BroadleafDS_Pool" enabled="true" use-java-context="true" use-ccm="true"> <connection-url>jdbc:mysql://localhost:3306/broadleaf</connection-url> <driver>mysql</driver> <security> <user-name>root</user-name> <password>admin</password> </security> <timeout> <idle-timeout-minutes>0</idle-timeout-minutes> <query-timeout>600</query-timeout> </timeout> </datasource> <datasource jta="true" jndi-name="java:jboss/datasources/BroadleafSecureDS" pool-name="BroadleafSecureDS_Pool" enabled="true" use-java-context="true" use-ccm="true"> ...

Read More »

Creating a delegating login module (for JBoss EAP 6.1)

[ If you only want to see code, just scroll down ] Motivation In RHQ we had a need for a security domain that can be used to secure the REST-api and its web-app via container managed security. In the past I had just used the classical DatabaseServerLoginModule to authenticate against the database. Now does RHQ also allow to have ...

Read More »

JBoss AS7 JNDI & EJB 3.1 Naming changes

As a result of the “feature train” continuing to march on and us not keeping our software stack up-to-date, our team finds ourselves in the un-enviable position of having to migrate: JBoss 4.2.3 to AS 7.1.x (currently looking at 7.1.1) EJB 2.1 to EJB 3.1 Hibernate 2 to Hibernate 3 or 4 in quick fashion.  I mean, who wants to ...

Read More »