new-integration-tests/src/test/resources/apps/txforward/remotesync/src/example/RemoteSyncImpl.java
public static void main(String[] args) throws Exception {
    RemoteSyncImpl remoteSync = new RemoteSyncImpl();
    Environment env = new Environment();
    env.setCreateIntermediateContexts(true);
    env.setReplicateBindings(false);
    Context ctx = env.getInitialContext();
    ctx.rebind(JNDINAME, remoteSync);
    System.out.println("bound " + remoteSync);
  }
// create and bind remote object in local JNDI

create and bind remote object in local JNDI
create and bind remote object in local JNDI
public static void main(String[] args) throws Exception {
    RemoteSyncImpl remoteSync = new RemoteSyncImpl();
    Environment env = new Environment();
    env.setCreateIntermediateContexts(true);
    env.setReplicateBindings(false);
    Context ctx = env.getInitialContext();
    ctx.rebind(JNDINAME, remoteSync);
    System.out.println("bound " + remoteSync);
  }
public static void main ( String [ ] args ) throws Exception { RemoteSyncImpl remoteSync = new RemoteSyncImpl ( ) ; Environment env = new Environment ( ) ; env . setCreateIntermediateContexts ( true ) ; env . setReplicateBindings ( false ) ; Context ctx = env . getInitialContext ( ) ; ctx . rebind ( JNDINAME , remoteSync ) ; System . out . println ( "bound " + remoteSync ) ; }
create and bind remote object in local JNDI
create and bind remote object in local JNDI