users@glassfish.java.net

Re: Glassfish v3: Can't Deploy MessageDriven Bean - Missing ...

From: <forums_at_java.net>
Date: Fri, 19 Aug 2011 11:55:16 -0500 (CDT)

The second error was because I set the "Physical Destination Name" to
"jms/FileUploadedQueue" (same as JNDI name).  However, the destination name
has greater restrictions on valid characters.  Changing it to simply
"FileUploadedQueue" allowed it to be deployed.  From
http://markmail.org/message/zetfwrp2hlesynje:

Yes - the failure is due to the "queue/myDestination" being 'Illegal' syntax
for
the particular JMS provider's physical destination naming syntax - which is
provider dependent and not standardized. In this case, GF includes Sun Java
System Message Queue and the rules for legal destination names are set by
JMQ.

Unfortunately, this is not easy to find in the docs - but if you look hard
enough, you'll find the following in the MQ Admin Guide on physical
destination
names.

# The physical destination name. The naming rules are as follows:

* The name must contain only alphanumeric characters. It cannot contain
spaces. * The name can begin with an alphabetic character, the underscore
character
(_ ) or the dollar sign ($)."


--
[Message sent by forum member 'sdoca']
View Post: http://forums.java.net/node/834880