title: How to inject EJB into a Spring
body: <p>I have a stateless Bean with following heirarchy and present 
  <code>accountserver</code> , <code>accountserverBean implements accountserver</code>.
   with there corresponding <code>ejb-jar.xml</code> and <code>weblogicjar.xml</code></p>
  
  <p>Then I have my spring Bean with the following
  <code>payload.java</code> with corressponding <code>spring.xml</code></p>
  
  <p>So Inside the spring libs folder I have added <code>account.jar</code></p>
  
  <p>So how can I call method present in accountserverBean from payload class????</p>
  
  <p>Also I have used the below Code in payload.java</p>
  
  <pre><code>Context ctx=new InitialContext();
  accountserver as=(accountserver)ctx.lookup("java:com/accountserver");
  </code></pre>
  
  <p>But this doesnt work.</p>
  
  <p>Since both are in same context I can call the EJB method
  Please provide me with solution</p>