• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Rob Spoor
  • Tim Cooke
  • Junilu Lacar
Sheriffs:
  • Henry Wong
  • Liutauras Vilda
  • Jeanne Boyarsky
Saloon Keepers:
  • Jesse Silverman
  • Tim Holloway
  • Stephan van Hulst
  • Tim Moores
  • Carey Brown
Bartenders:
  • Al Hobbs
  • Mikalai Zaikin
  • Piet Souris

javax.naming.NameNotFoundException: MyQueueName not bound

 
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Sheriff
Posts: 10445
227
IntelliJ IDE Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
That is a really big piece of pie for such a tiny ad:
Thread Boost feature
https://coderanch.com/t/674455/Thread-Boost-feature
reply
    Bookmark Topic Watch Topic
  • New Topic