hi all,

when I execute this method..I get the error "cannot send a messsage to JMS
server," I have done all the things like getting the context, creating queue
session, creating the message etc..but it gives me the error below when it
executes
queueSender.send(queue, message);
any ideas??
thanks
srini

  public void send(String msg) throws JMSException {

      // Create a message
      TextMessage message = queueSession.createTextMessage();
      message.setText(msg);

      // Send the message
      queueSender.send(queue, message);
   }


org.jboss.mq.SpyJMSException: Cannot send a message to the JMS server
org.jboss.mq.SpyJMSException: Cannot send a message to the JMS server
        at org.jboss.mq.Connection.sendToServer(Connection.java:515)
        at org.jboss.mq.SpySession.sendMessage(SpySession.java:398)
        at org.jboss.mq.SpyQueueSender.send(SpyQueueSender.java:103)
        at org.jboss.mq.SpyQueueSender.send(SpyQueueSender.java:69)
        at com.bms.ecp.oms.jms.MessageSender.send(MessageSender.java:106)
        at com.bms.ecp.oms.jms.MessageSender.main(MessageSender.java:137)
linked exception is:
java.lang.NullPointerException
        <<no stack trace available>>

_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to