JNDI lookup in JBoss

This post illustrates a simple JNDI lookup in Jboss Server that can be used to lookup Data Sources etc. 1. Open a command prompt and set the class path to the jbossall-client.jar file. set classpath=%classpath%;G:\jboss-5.1.0.GA\client\jbossall-client.jar 2. Compile and execute the JNDITest.java program. import java.security.Security; import java.util.Properties; import javax.naming.Context; import javax.naming.InitialContext;

Continue reading »

JBoss JMS using HornetQ

JBoss JMS feature using HornetQ

Continue reading »

JBoss JMS Queue configuration

Configuring JMS providers in JBoss:- ******************************** The below example demonstrates a JMS example using Queue Destination (Point – To – Point messaging feature) using the JBoss default Queue. JBoss defines default JMS queue and Topic Destination defined in $JBOSS_HOME/server/<server-profile>/deploy/messaging/ destinations-service.xml. You can add/remove destinations to this file, or deploy another

Continue reading »

SSL Configuration with Jboss server

The below post describes the steps to configure SSL for your JBoss Server. Steps: 1:- Create a self signed certificate by using the keytool utility. a: Create a private key – public key pair. keytool –genkey –alias mykey –keypass password –keystore identity.jks –storepass password b: Self sign the certificate. keytool

Continue reading »

Creating Virtual Hosts on JBoss

Create an application having the virtual host element in the jboss-web.xml present in the WEB-INF folder of the applicatio jboss-web.xml <?xml version="1.0"?> <!DOCTYPE jboss-web PUBLIC "-//JBoss//DTD Web Application 5.0//EN" "http://www.jboss.org/j2ee/dtd/jboss-web_5_0.dtd"> <jboss-web> <context-root>/VhostApp</context-root> <virtual-host>virtual.bea.com</virtual-host> </jboss-web> In the server.xml present in C:\JBoss\jboss-5.1.0.CR1\server\all\deploy\jbossweb.sar create a virtual host server.xml <Host name="virtual"> <Alias>virtual.bea.com</Alias> <Valve className="org.jboss.web.tomcat.service.jca.CachedConnectionValve" cachedConnectionManagerObjectName="jboss.jca:service=CachedConnectionManager"

Continue reading »