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()?
1 of 1 people found this helpful
Clebert 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.
i think you got the right way, we should create the interface by ourselves.