Alguien sabe que realiza este codigo?
Código Java:
Ver originalpackage com.xpertal.semessagebroker.salesservicevalidation.server;
import java.util.Hashtable;
import java.util.ResourceBundle;
import javax.naming.Context;
import javax.naming.InitialContext;
import javax.naming.NamingException;
//import com.xpertal.bam.sales.ejb.SalesBAMClient;
public class SendBAMData
{
{
/*
try
{
SalesBAMClient clientBAM = (SalesBAMClient)getInitialContext().lookup(resources.getString("bamProxy.jndi"));
clientBAM.sendToBAM(aIdTransaccion, aCodigoTienda, aEstatus, aNombreTienda);
}
catch (Exception e) {
System.out.println("XXXXXXX TRACE BAM XXXXXXXX");
e.printStackTrace();
}
*/
}
try {
if (null == context) {
env.put("java.naming.factory.initial", "weblogic.jndi.WLInitialContextFactory");
env.put("java.naming.provider.url", resources.getString("osb.url"));
}
e.printStackTrace();
}
return context;
}
public static void main
(String[] args
) { String aIdTransaccion
= "3042012029119214"; String aCodigoTienda
= "0291"; String aEstatus
= "Integrados"; String aNombreTienda
= "PABLO NERUDA"; SendBAMData client = new SendBAMData();
client.sendDataBAM(aIdTransaccion, aCodigoTienda, aEstatus, aNombreTienda);
System.
out.
println("XXXXXXX TRACE BAM XXXXXXXX"); }
}