Topic Send and Topic Receive demo on JBoss Application Server

1 )Create a topic Add the following in the \deploy\messaging\destinations-service.xml file   <mbean code="org.jboss.jms.server.destination.TopicService" name="jboss.messaging.destination:service=Topic,name=Topic1" xmbean-dd="xmdesc/Topic-xmbean.xml"> <depends optional-attribute-name="ServerPeer">jboss.messaging:service=ServerPeer</depends> <depends>jboss.messaging:service=PostOffice</depends> </mbean> 2) Copy the TopicSend and TopicReceive programs to a folder. TopicSend import java.io.*; import java.util.*; import javax.transaction.*; import javax.naming.*; import javax.jms.*; import javax.rmi.PortableRemoteObject; public class TopicSend { // Defines the

Continue reading »

Changing default ports in Jboss

The Jboss port configuration is defined by the ServiceBindingManager service of JBoss.  There could be scenarios where you might want to change the default JBoss server ports. The Jboss Web Server by default runs on port 8080 and a set of other services run on a predefined set of ports

Continue reading »

JBoss Twiddle utility examples

The below post describes some common usage scenarios of the twiddle JBoss command line utility. JBoss provides a simple command line tool that allows for interaction with a remote JMX server instance. This tool is called twiddle (for twiddling bits via JMX) and is located in the bin directory of

Continue reading »

Thread Dumps in JBoss

The below article shows about capturing the Thread Dumps for JBoss Application Server in event of any server hangs or to diagnose any  performance bottlenecks using the JBoss Server Utilities. Using JMX Console: JMX-Console application is deployed on to the JBoss Application Server by default  and you can access the

Continue reading »

JBoss MDB

This post describes usage of Jboss JMS Feature using a Message Driven Bean (MDB) consumer. Note: In this article , we would be using the default JMS queue ‘/queue/DLQ’. 1. Create a Message Driven Bean with bean class TestMDB.java   import java.io.PrintStream; import javax.ejb.MessageDrivenBean; import javax.jms.*; import weblogic.ejb.GenericMessageDrivenBean; import javax.ejb.MessageDrivenBean;

Continue reading »

JBoss as Windows Service

How to run JBoss AS as a Windows Service JBoss AS comes with Windows service executable as part of JBossNative library that can run JBoss Application Server as service. The service executable jbosssvc.exe transforms the run.bat and shutdown.bat batch scripts to services. This means that any change made to those

Continue reading »