[jboss-user] [JBossMQ] - JMS not Bound error in JBOSS server console

anil_potu do-not-reply at jboss.com
Thu Dec 11 16:34:49 EST 2008

trying to create ejb3 MDB with standalone client. When deployed tar file server throwing jms not found error. It is from ejb3 in action book.

My client

public static void main(String[] args) {
		Destination destination;
		ConnectionFactory connectionFactory;

		long item = 10101;
		String address = "101 Easy Street";
		String method = "Snail mail";
		double amount = 101.00;

		try {
			Context context = new InitialContext();

			destination = (Destination) context

			connectionFactory = (ConnectionFactory) context

			Connection connection = connectionFactory.createConnection();

			Session session = connection.createSession(false,

			MessageProducer producer = session.createProducer(destination);

and my MDB

@MessageDriven(name = "ShippingRequestProcessor", activationConfig = {
		@ActivationConfigProperty(propertyName = "destinationType", propertyValue = "javax.jms.Queue"),
		@ActivationConfigProperty(propertyName = "destination", propertyValue = "jms/ShippingRequestQueue") })
public class ShippingRequestProcessorMDB implements MessageListener {
	private Connection connection;

	private DataSource dataSource;

	private MessageDrivenContext context;

	@Resource(name = "jdbc/TurtleDS", mappedName = "java:/DefaultDS")
	public void setDataSource(DataSource dataSource) {
		this.dataSource = dataSource;

	public void initialize() {
		try {
			connection = dataSource.getConnection();
		} catch (SQLException sqle) {

Enev when i tried to run it it says same. JMS not bound..

Any help please?

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4196071#4196071

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4196071

More information about the jboss-user mailing list