Multidomain MDM
- Multidomain MDM 10.3
- All Products
Properties properties = new Properties(); properties.put(SiperianClient.SIPERIANCLIENT_PROTOCOL, "ejb"); properties.put(Context.INITIAL_CONTEXT_FACTORY, "org.jboss.naming.remote.client.InitialContextFactory"); properties.put( "java.naming.factory.url.pkgs", "org.jboss.ejb.client.naming" ); properties.put( Context.PROVIDER_URL, "remote://<JBoss host name>:<JBoss port>"); properties.put("jboss.naming.client.ejb.context", true); properties.put(Context.SECURITY_PRINCIPAL, "<User name of the MDM Hub user registered in JBoss>"); properties.put(Context.SECURITY_CREDENTIALS, "<Password of the MDM Hub user registered in JBoss>"); properties.put("siperian-client.orsId", "<Operational Reference Store ID>"); properties.put("siperian-client.username", "<User name of the MDM Hub user registered in JBoss>"); properties.put("siperian-client.password", "<Password of the MDM Hub user registered in JBoss>"); System.setProperty("jboss.node.name", "localhost"); //Value of this property should be the same as it was provided while starting JBoss with the -Djboss.node.name option. client = SiperianClient.newSiperianClient(properties);
UserTransaction tx = client.createTX(30);
The following sample code rolls back a transaction:tx.begin(); // sif api calls tx.commit();
tx.rollback()