use of com.adaptris.core.transaction.SharedTransactionManager in project interlok by adaptris.
the class SharedComponentListTest method testSharedTransactionManager_CompEnvLookupName.
@Test
public void testSharedTransactionManager_CompEnvLookupName() throws Exception {
Adapter adapter = new Adapter();
adapter.setUniqueId(getName());
adapter.getSharedComponents().setTransactionManager(new DummyTransactionManager(getName()));
try {
start(adapter);
SharedTransactionManager conn = new SharedTransactionManager("comp/env/" + getName());
conn.init();
assertNotNull(conn.proxiedTransactionManager());
} finally {
stop(adapter);
}
}
use of com.adaptris.core.transaction.SharedTransactionManager in project interlok by adaptris.
the class SharedComponentListTest method testSharedTransactionManager_StandardLookup.
@Test
public void testSharedTransactionManager_StandardLookup() throws Exception {
Adapter adapter = new Adapter();
adapter.setUniqueId(getName());
adapter.getSharedComponents().setTransactionManager(new DummyTransactionManager(getName()));
try {
start(adapter);
SharedTransactionManager conn = new SharedTransactionManager(getName());
conn.init();
assertNotNull(conn.proxiedTransactionManager());
} finally {
stop(adapter);
}
}
Aggregations