The class I'm connecting from is standalone, outside of server - so resource
injection doesn't work.

Using java:openejb/ or openejb: doesnt' work either; result is:
javax.naming.NamingException: scheme java not recognized
        at
org.apache.activemq.jndi.ReadOnlyContext.lookup(ReadOnlyContext.java:221)
        at javax.naming.InitialContext.lookup(Unknown Source)
        at sandbox.TestJMS.main(TestJMS.java:36)

or 
javax.naming.NamingException: scheme openejb not recognized
        at
org.apache.activemq.jndi.ReadOnlyContext.lookup(ReadOnlyContext.java:221)
        at javax.naming.InitialContext.lookup(Unknown Source)
        at sandbox.TestJMS.main(TestJMS.java:36)

???

BTW - an update on Datasource:
Turned out I *must* define a datasource called ""Default Unmanaged JDBC
Database".
Specifying Datasource= results in TomEE still wanting to use a datasource;
specifying Datasource=<MyDataSource> results in TomEE ignoring it as if it
was blank, and proceeding to try and use the default one (broker fails to
start if it's not there).

Even bigger ?????



--
View this message in context: 
http://openejb.979440.n4.nabble.com/Problem-starting-ActiveMQ-broker-using-TomEE-tp4658076p4658094.html
Sent from the OpenEJB Dev mailing list archive at Nabble.com.

Reply via email to