title: Spring EJB3 JNDI Environment Variables Problem
body: <p>I am having problem in calling an remote EJB on another server. The JNDI environment variables seem to be used when spring lookup the EJB home on startup. However, those environment variables seem not being used when the EJB methods are invoked and therefore my program keep calling the local server for the EJB.</p>
  
  <p>I am using Spring 2.5.6, Weblogic 10.3.0 and EJB3.0</p>
  
  <p>My EJB spring config is as below:</p>
  
  <pre><code>&lt;jee:remote-slsb id="myService"
      jndi-name="myService#com.test.MyService"
      business-interface="com.test.MyService"&gt;
    &lt;jee:environment&gt;
      java.naming.factory.initial=weblogic.jndi.WLInitialContextFactory
      java.naming.provider.url=t3://remoteserver:7001
      java.naming.security.principal=username
      java.naming.security.credentials=password
    &lt;/jee:environment&gt;
  &lt;/jee:remote-slsb&gt;
  </code></pre>
  
  <p>Has anyone encountered this problem before?</p>
  
  <p>I have tried to run my code on WebLogic 10.3.3 and it is working properly. I guess there may be some problem with Spring 2.5.6 and WebLogic 10.3.0.</p>