• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Bear Bibeault
  • Junilu Lacar
  • Jeanne Boyarsky
  • Tim Cooke
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • salvin francis
  • Frits Walraven
  • Scott Selikoff
  • Piet Souris
  • Carey Brown

MDB(Sorry for the last post .It was by mistake)This i want to ask

Posts: 20
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am new to MDB
I am using orion1.5 application server
I tried a simple MDB

import javax.ejb.EJBException;
import javax.ejb.MessageDrivenBean;
import javax.ejb.MessageDrivenContext;
import javax.jms.JMSException;
import javax.jms.MessageListener;
import javax.jms.TextMessage;
import com.sun.corba.se.internal.iiop.Message;

public class MDBExample implements MessageDrivenBean,MessageListener {
private MessageDrivenContext ctx = null;
public MDBExample() { }
public void setMessageDrivenContext(MessageDrivenContext ctx)throws EJBException {
this.ctx = ctx;
public void ejbCreate() {}
public void ejbRemove() {ctx=null;}
public void onMessage(javax.jms.Message message) {
try {
if (message instanceof TextMessage)
System.err.println("Text Message arrvied");

}catch (JMSException e) {
System.err.println("Communication Exception: " + e.getMessage());


and did the changes in deployment descriptor as
in <enterprise-bean> tag

<description>Test MDB</description>

and in assembly-descriptor tag


in application.xml

<display-name>Message Driven Bean</display-name>

I have not written client class yet ,but my server gives me error at start up as
----Unable to link resource MDBExample, no JMS server running ---
Have i done some wrong or yet it is incomplete???When i start Application Server isn't JMS server get started automatically??
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Your application server might not support JMS. Check it.
Posts: 17
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi there,

I am sure that Orion 2.x does support JMS; but I am not sure with the version 1.3. For me it looks like the Orion application server is not configured to start the JMS server during server startup. Make sure that you have the JMS Server configuration file supplied with hostname, address, JNDI resource name etc.

Also Orion website has an article for configuring SonicMQ. You can use that as the starting point.

mooooooo ..... tiny ad ....
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
    Bookmark Topic Watch Topic
  • New Topic