Skip to Main Content

Oracle Database Discussions

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

WEBLOGIC-EJB

1020698Jun 27 2013 — edited Jun 27 2013

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

Comments

Processing
Locked Post
New comments cannot be posted to this locked post.

Post Details

Locked on Jul 25 2013
Added on Jun 27 2013
1 comment
1,198 views