Commit 2edb7362 authored by msingh's avatar msingh

Changed by Manish on 12/05/16


git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@101613 ce508802-f39f-4f6c-b175-0d175dae99d5
parent b673b736
...@@ -32,6 +32,7 @@ import ibase.webitm.utility.wms.CommonWmsUtil; ...@@ -32,6 +32,7 @@ import ibase.webitm.utility.wms.CommonWmsUtil;
import javax.xml.transform.*; import javax.xml.transform.*;
import javax.xml.transform.dom.*; import javax.xml.transform.dom.*;
import javax.xml.transform.OutputKeys;
import javax.xml.transform.TransformerFactory; import javax.xml.transform.TransformerFactory;
import javax.xml.transform.Transformer; import javax.xml.transform.Transformer;
import javax.xml.transform.stream.StreamSource; import javax.xml.transform.stream.StreamSource;
...@@ -2369,7 +2370,8 @@ public class StockTransferGrlIC extends ValidatorEJB implements StockTransferGrl ...@@ -2369,7 +2370,8 @@ public class StockTransferGrlIC extends ValidatorEJB implements StockTransferGrl
}//if ( "N".equalsIgnoreCase(selectedVal.trim()) ) }//if ( "N".equalsIgnoreCase(selectedVal.trim()) )
}//if ( currDetail.getAttributes().getNamedItem( "selected" ) }//if ( currDetail.getAttributes().getNamedItem( "selected" )
}//outer for loop }//outer for loop
updatedDetailDomStr = genericUtility.serializeDom( detailDom ); // updatedDetailDomStr = genericUtility.serializeDom( detailDom );
updatedDetailDomStr = serializeDom( detailDom ); //Added by manish on 12/05/16 for wildfly [override method serializeDom from genericutility and change for lot_no and lot_sl]
System.out.println("updatedDetailDomStr:>>>>>>>>>>> "+updatedDetailDomStr); System.out.println("updatedDetailDomStr:>>>>>>>>>>> "+updatedDetailDomStr);
} }
catch (Exception e) catch (Exception e)
...@@ -3201,4 +3203,54 @@ public class StockTransferGrlIC extends ValidatorEJB implements StockTransferGrl ...@@ -3201,4 +3203,54 @@ public class StockTransferGrlIC extends ValidatorEJB implements StockTransferGrl
} }
//Changed by wasim on 13-04-2015 to get the location weigth and volume end. //Changed by wasim on 13-04-2015 to get the location weigth and volume end.
// Changed by Manish on 05/11/15 for DDWMS merging [end] // Changed by Manish on 05/11/15 for DDWMS merging [end]
//Changed by Manish on 12/05/16[start]
public String serializeDom(Node dom)throws ITMException
{
String retString = null;
//changed by Nilesh Soor on 24/07/2014 [Memory Leak Issue]
ByteArrayOutputStream out = null;
Transformer serializer = null;
//changed by Nilesh Soor on 24/07/2014 [Memory Leak Issue]
try
{
out = new ByteArrayOutputStream();
serializer = TransformerFactory.newInstance().newTransformer();
serializer.setOutputProperty(OutputKeys.OMIT_XML_DECLARATION, "yes");
serializer.setOutputProperty(OutputKeys.ENCODING, CommonConstants.ENCODING);
serializer.setOutputProperty(OutputKeys.CDATA_SECTION_ELEMENTS,"lot_no__fr lot_no__to lot_sl__fr lot_sl__to"); //Added by manish on 12/05/16 for wildfly
serializer.transform(new DOMSource(dom), new javax.xml.transform.stream.StreamResult(out));
retString = out.toString( CommonConstants.ENCODING );
out.flush();
out.close();
out = null;
}
catch (Exception e)
{
System.out.println("Exception : GenericUtility : serializeDom :"+e);
throw new ITMException(e);
}
finally//changed by Nilesh Soor on 24/07/2014 [Memory Leak Issue]
{
if(out != null)
{
try
{
out.close();
}
catch (IOException e)
{
throw new ITMException(e);
}
finally
{
out = null;
}
}
serializer = null;
}
return retString;
}
//Changed by Manish on 12/05/16[end]
} }
\ No newline at end of file
package ibase.webitm.ejb.wms; package ibase.webitm.ejb.wms;
import ibase.webitm.ejb.ActionHandlerLocal;
import javax.ejb.Local; import javax.ejb.Local;
@Local @Local
public interface UploadOrderEJBLocal public interface UploadOrderEJBLocal extends ActionHandlerLocal
{ {
public String uploadSalesOrder( String xmlString,String xtraParams) throws Exception; public String uploadSalesOrder( String xmlString,String xtraParams) throws Exception;
} }
package ibase.webitm.ejb.wms; package ibase.webitm.ejb.wms;
import ibase.webitm.ejb.ActionHandlerLocal;
import ibase.webitm.ejb.ActionHandlerRemote;
import javax.ejb.Remote; import javax.ejb.Remote;
@Remote @Remote
public interface UploadOrderEJBRemote public interface UploadOrderEJBRemote extends ActionHandlerRemote
{ {
public String uploadSalesOrder( String xmlString,String xtraParams) throws Exception; public String uploadSalesOrder( String xmlString,String xtraParams) throws Exception;
} }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment