@Override public String[] bindAdminObject(URL url, String deployment, Object ao) throws Throwable { JndiStrategy js = ((RAConfiguration) getConfiguration()).getJndiStrategy().clone(); String[] result = js.bindAdminObjects(deployment, new Object[]{ao}); ((RAConfiguration) getConfiguration()).getMetadataRepository().registerJndiMapping(url.toExternalForm(), ao.getClass().getName(), result[0]); log.infof("Bound admin object under: %s", result[0]); return result; }
@Override public String[] bindAdminObject(URL url, String deployment, Object ao, String jndi) throws Throwable { JndiStrategy js = ((RAConfiguration) getConfiguration()).getJndiStrategy().clone(); String[] result = js.bindAdminObjects(deployment, new Object[]{ao}, new String[]{jndi}); ((RAConfiguration) getConfiguration()).getMetadataRepository().registerJndiMapping(url.toExternalForm(), ao.getClass().getName(), jndi); log.infof("Bound admin object under: %s", jndi); return result; }
@Override public String[] bindConnectionFactory(URL url, String deployment, Object cf) throws Throwable { JndiStrategy js = ((RAConfiguration) getConfiguration()).getJndiStrategy().clone(); String[] result = js.bindConnectionFactories(deployment, new Object[]{cf}); ((RAConfiguration) getConfiguration()).getMetadataRepository().registerJndiMapping(url.toExternalForm(), cf.getClass().getName(), result[0]); log.infof("Bound connection factory under: %s", result[0]); return result; }
@Override public String[] bindConnectionFactory(URL url, String deployment, Object cf, String jndi) throws Throwable { JndiStrategy js = ((RAConfiguration) getConfiguration()).getJndiStrategy().clone(); String[] result = js.bindConnectionFactories(deployment, new Object[]{cf}, new String[]{jndi}); ((RAConfiguration) getConfiguration()).getMetadataRepository().registerJndiMapping(url.toExternalForm(), cf.getClass().getName(), jndi); log.infof("Bound connection factory under: %s", jndi); return result; }