users@glassfish.java.net

Re: JMS Implementation - UnsupportedOperationException

From: Daniel Cavalcanti <dhcavalcanti_at_gmail.com>
Date: Thu, 15 Feb 2007 13:35:08 -0500

You should check your code because the send method javadoc declares to throw
that exception (UnsupportedOperationException) if the MessageProducer did
not specify a destination at creation time, i.e. it doesn't have where to
send the message to.

Hope that helps.
Daniel.

On 2/15/07, Sivakumar Thyagarajan <Sivakumar.Thyagarajan_at_sun.com> wrote:
>
> Could you share the full exception trace in the server log?
>
> Thanks
> --Siva.
>
> glassfish_at_javadesktop.org wrote:
> > javax.jms.QueueSender sender = session.createSender(queue);
> > javax.jms.Message jmsmessage = session.createTextMessage(message);
> > [i][b]sender.send(jmsmessage);[/b][/i]
> >
> > When the execution reaches sender.sendMessage, I get an
> UnsupportedOperationException. Any particular reason?
> >
> > Environment: GlassFish Version is
> > Sun Java System Application Server Platform Edition 9.0_01 (build b14)
> > [Message sent by forum member 'manikantaniyer' (manikantaniyer)]
> >
> > http://forums.java.net/jive/thread.jspa?messageID=203847
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: users-unsubscribe_at_glassfish.dev.java.net
> > For additional commands, e-mail: users-help_at_glassfish.dev.java.net
> >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe_at_glassfish.dev.java.net
> For additional commands, e-mail: users-help_at_glassfish.dev.java.net
>
>