1 Reply Latest reply: Jun 27, 2013 1:24 PM by sb92075 RSS

    WEBLOGIC-EJB

    eac8aa31-ed35-455a-ab45-2099a8b38750

      hi,

                we are migrating ejb from jboss to weblogic. In my ServiceBean class application context is set as following

      @Resource(name="appContext",mappedName="java:lnp/appContext")

      public void setApplicationContext(ApplicationContext ac){

       

      }

      when deployed war and trying to query am getting following exception

      No Unique Bean Found ApplicationContext

       

      in jboss

      they are injecting applicationContext in ejb-jar.xml as following

      <res-ref>

      <res-env-name>appContext</res-env-name>

      <jndi-name>java:lnp/appContext</jndi-name>

      <injection-target>applicationContext</injection-target>

      <bean>xxxBean</bean>

      </res-ref>

       

      how can i inject application context in weblogic?. we are using 10.3.5 version