java - Portable datasource jndi for JBoss and OC4j -
i new jboss development, migrating 1 application oc4j jboss, came know jndi names different in oc4j , jboss application server, have 1 jndi datasource named jdbc/sampledatasource in oc4j datasource configuration. have done configuration jboss named java:/jdbc/sampledatasource.
as ear should able deploy on both application server, facing issues while making code compatible jboss oc4j
for e.g @resource(mappedname = "jdbc/sampledatasource") private sampledatasource datasource;
how can make above parameter compatible jboss oc4j jndi name different in both server?
there bean level data source injection:
@resource( name = "jdbc/sampledatasource", type = javax.sql.datasource.class, mappedname = "jdbc/sampledatasource", authenticationtype = resource.authenticationtype.container),
so please let me know changes need perform make code compatible jboss as7 , oc4j well.
Comments
Post a Comment