File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes JBoss/WildFly and the fly likes javax.naming.NameNotFoundException: MyQueueName not bound Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » JBoss/WildFly
Bookmark "javax.naming.NameNotFoundException: MyQueueName not bound" Watch "javax.naming.NameNotFoundException: MyQueueName not bound" New topic

javax.naming.NameNotFoundException: MyQueueName not bound

Everson Jr

Joined: Nov 18, 2010
Posts: 3
Hi everyone,

First of all, sorry for any english mistakes.

I've used the Jboss 4.2 for my applications for a long time.

But now, I need to upgrade to the 5.1 version.

In the older version, when I deployed my app and the destination mapping of my queues weren't found , a new temporary queue was created and bounded to a JNDI name.

In the 5.1 version, this not happens and I receive a "GetrafProvisaoTDMA not bound", where GetrafProvisaoTDMA is the name of my queue.

I can't edit the destination-service.xml only for create a new destination, so I hope do this in a different way.

Is it possible to configure the JBoss to create automatic a new queue, when it's not found in destination-service.xml file? There are any other JBoss configuration or EJB annotation...

It used to work in the previous version.

Can someone help me??


Jaikiran Pai

Joined: Jul 20, 2005
Posts: 10441

Welcome to JavaRanch

In AS5, to auto-create queue/topics for a MDB, you'll need a jboss.xml which has <create-destination> true for the MDB. For example:

[My Blog] [JavaRanch Journal]
Everson Jr

Joined: Nov 18, 2010
Posts: 3
Thanks man,

I don't posted here before, cause english it's not my native language and it's not easy for me to write very well.

But, thanks a lot for the answer, I will try do it.
Everson Jr

Joined: Nov 18, 2010
Posts: 3
Unfornutately, it still not work.

I created the jboss.xml under the myFile.jar/META-INF, with the follow content:

So, now I have the follow error:

After this, I replace this part of jboss.xml:

for this:

And I got a error message:

org.xml.sax.SAXException: Element type "create-destination" must be declared.
I agree. Here's the link:
subject: javax.naming.NameNotFoundException: MyQueueName not bound
It's not a secret anymore!