• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

javax.naming.NameNotFoundException: MyQueueName not bound

 
Everson Jr
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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??



My MDB:








thks
 
Jaikiran Pai
Marshal
Pie
Posts: 10447
227
IntelliJ IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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:

 
Everson Jr
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic