title: Junit with Embedded Glassfish fails - JMS Resource Adapter should be EMBEDDED
body: <p>I'm trying to test a session bean (NetBeans 6.8, Glassfish V3). Unfortunately, the embedded glassfish is unable to start properly, as it tries to connect to a remote JMS Provider (at localhost:7676):</p>
  
  <pre><code>$ ant test
  ...
  [junit] Mar 23, 2010 12:13:51 PM com.sun.messaging.jms.ra.ResourceAdapter start
  [junit] INFO: MQJMSRA_RA1101: SJSMQ JMS Resource Adapter starting: REMOTE
  [junit] Mar 23, 2010 12:13:51 PM com.sun.messaging.jmq.jmsclient.ExceptionHandler throwConnectionException
  [junit] WARNING: [C4003]: Error occurred on connection creation [localhost:7676]. - cause: java.net.ConnectException: Connection refused
  </code></pre>
  
  <p>The error is in itself correct, as no (other) JMS provider is running. I was expecting the embedded glassfish to start the JMS provider in EMBEDDED mode.</p>
  
  <p>My test uses javax.ejb.embeddable.EJBContainer :</p>
  
  <pre><code>@BeforeClass
  public static void initContainer() throws Exception {
      ec = EJBContainer.createEJBContainer();
      ctx = ec.getContext();
  }
  </code></pre>
  
  <p>When I start glassfish normally, it's fine:</p>
  
  <pre><code>$ bin/asadmin get server.jms-service.type
  server.jms-service.type=EMBEDDED
  </code></pre>
  
  <p>How can I get my junit tests to use an embedded glassfish with an EMBEDDED JMS Provider?</p>