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

Popular posts from this blog

linux - xterm copying to CLIPBOARD using copy-selection causes automatic updating of CLIPBOARD upon mouse selection -

c++ - qgraphicsview horizontal scrolling always has a vertical delta -