java - weblogic & websphere DataSource configuration -
my application has deploy , run on weblogic , websphere. in cdi bean use @resource annotation inject datasource.
@resource(name = "datasources/example", mappedname = "datasources/example") datasource datasource;
on weblogic works properly, on websphere doesn't.
resourceinjec e cwowb0102e: jcdi error has occurred: unable obtain instance datasources/example: javax.naming.namenotfoundexception: name comp/env/datasources not found in context "java:".
is there easy configuration possibility works in 2 cases? thanks
Comments
Post a Comment