This content has been marked as final.
Show 3 replies
-
1. Re: Init a JNDI in embedded hornetq module
pgmjsd Jul 29, 2013 3:21 PM (in response to zhongcy)I have the same question. I'm using EmbeddedJMS for some examples and tests and I would like to access JMS resources via JNDI. I've noticed that most of the examples start HornetQ using the distro 'run.sh' script, which can be configured to launch the JNDI server. Is there some similar config that we can use to start the JNDI server with EmbeddedJMS()?
-
2. Re: Init a JNDI in embedded hornetq module
pgmjsd Aug 1, 2013 9:47 AM (in response to zhongcy)1 of 1 people found this helpfulClebert sez this isn't supported, btw. I work around it by creating an interface for looking up ConnectionFactory and destinations, and having two implementations: one for JNDI, one for HornetQ embedded JMS. I suppose could also make a JNDI implementation that uses the embedded server lookup() function.
-
3. Re: Init a JNDI in embedded hornetq module
zhongcy Aug 1, 2013 9:24 PM (in response to pgmjsd)i think you got the right way, we should create the interface by ourselves.