I am a beginner in JMS.Could anyone give me an idea of how to implement a message driven bean in JBoss.plz give a sample ejb and jboss jar file. i want immediate reply .plz.................
public abstract class MessageBean1 implements MessageDrivenBean, MessageListener { MessageDrivenContext ctx;
/** * Sets the context. * * @param ctx MessageDrivenContext Context for bean session */ public void setMessageDrivenContext(MessageDrivenContext ctx) { this.ctx = ctx; } /** * This method is required by the EJB Specification, * */ public void ejbCreate() {
} /** * This method is required by the EJB Specification, * * */ public void ejbRemove() { }
public void onMessage(Message message) { //WRITE CODE HERE }
}
WRITE DEPLOYEMENT DESCRIPTOR AND MENTION QUEUE NAME UNDER: <destination-jndi-name>
PACKAGE IT AND DEPLOY AS JAR.
thanks
Don't get me started about those stupid light bulbs.