Can we use hornetq in an osgi container? Are there someone tried it?
https://jira.jboss.org/jira/browse/HORNETQ-145
meanwhile you can have a class embedding HornetQ as you would find on Embedded examples.