Código Java:
Ver original
package 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; } SendBAMData client = new SendBAMData(); client.sendDataBAM(aIdTransaccion, aCodigoTienda, aEstatus, aNombreTienda); } }