This content has been marked as final.
Show 5 replies
-
1. Re: javax.naming.NameNotFoundException
adrian.brock Jun 19, 2003 4:41 PM (in response to flower_tang)You can bind an alias into jndi
Add the following to jbossmq-service.xml<mbean code="org.jboss.naming.NamingAlias" name="myalias:name=QueueConnectionFactory"> <attribute name="FromName">ConnectionFactory</attribute> <attribute name="ToName">QueueConnectionFactory</attribute> </mbean>
Or you can create your own myalias-service.xml
in deploy
Regards,
Adrian -
2. Re: javax.naming.NameNotFoundException
viseu_prodigy Mar 24, 2005 4:10 PM (in response to flower_tang)Hi,
I need to get the QueueConnectionFactory using the JNDI "QueueConnectionFactory" instead "ConnectionFactory".
Adrian, when you posted your reply, you were thinking in something like:
QueueConnectionFactory
ConnectionFactory
?
With that declaration, the QueueConnectionFactory still isn´t bound.. i tried to switch the attribute values without sucess... any idea?
Tks -
3. Re: javax.naming.NameNotFoundException
viseu_prodigy Mar 24, 2005 4:14 PM (in response to flower_tang)Oh... strange... my XML declaration has disappeared with the post.. i´ll trie to post again
ConnectionFactory
QueueConnectionFactory -
4. Re: javax.naming.NameNotFoundException
nlmarco Mar 26, 2005 5:17 PM (in response to flower_tang)You should use "code" tags around your xml...
-
5. Re: javax.naming.NameNotFoundException
bensonfungjava Apr 13, 2005 3:57 PM (in response to flower_tang)Adrian, would you provide an example? Your explaination is not so clear. It seems no one understand your solutions.
Thanks
Benson