This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | |
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> | |
<modelVersion>4.0.0</modelVersion> | |
<groupId>gdi_oms</groupId> | |
<artifactId>gdi_oms</artifactId> | |
<version>0.0.1-SNAPSHOT</version> | |
<packaging>war</packaging> | |
<properties> | |
<cxf.version>3.1.6</cxf.version> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="UTF-8"?> | |
<beans xmlns="http://www.springframework.org/schema/beans" | |
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:jaxws="http://cxf.apache.org/jaxws" | |
xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.5.xsd http://cxf.apache.org/jaxws http://cxf.apache.org/schemas/jaxws.xsd"> | |
<import resource="classpath:META-INF/cxf/cxf.xml" /> | |
<jaxws:endpoint xmlns:tns="http://microsretail.com/Locate" | |
id="locate" implementor="com.godiva.ws.LocatePortImpl" wsdlLocation="wsdl/LocateServices.wsdl" | |
endpointName="tns:LocatePort" serviceName="tns:LocateService" address="/LocatePort"> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class SoapHandler extends SpringBeanAutowiringSupport implements | |
SOAPHandler<SOAPMessageContext> { | |
@Resource | |
private OrderRequesDataBean OrderRequesDataBean; | |
@Override | |
public boolean handleMessage(SOAPMessageContext context) { | |
Boolean outboundProperty = (Boolean) context.get(MessageContext.MESSAGE_OUTBOUND_PROPERTY); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import akka.actor.Actor | |
import akka.event.Logging | |
import akka.actor.{Props, ActorSystem} | |
object ActorDemo { | |
def main(args: Array[String]): Unit = { | |
val system = ActorSystem("drinks-system") | |
val props = Props[DrinkActor] | |
val drinkActor = system.actorOf(props, "drinkActor-1") | |
drinkActor ! "tea" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.godiva.batch.util; | |
public enum ECommerceOrderStatus { | |
/** A status representing a new order in Locate. */ | |
NEW | |
{ | |
@Override | |
public String getStatusName() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
keytool -genkey -keystore server.keystore -alias xcenter-20161109 -keyalg RSA -keysize 2048 -validity 3950 | |
keytool -selfcert -alias xcenter-20161109 -keystore server.keystore -validity 3950 | |
keytool -export -alias xcenter-20161109 -keystore server.keystore -rfc -file xcenter-20161109.cer | |
keytool -import -keystore cacerts -file C:\cert\xstore\xcenter-20161109.cer -alias xcenter-20161109 | |
Import Cert in SOAP UI also: | |
keytool -import -keystore E:\Installed\..\cacerts -file C:\cert\xstore\xcenter-20161109.cer -alias xcenter-20161109 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="UTF-8"?> | |
<!-- File: web-app/WEB-INF/jetty-web.xml --> | |
<!DOCTYPE Configure PUBLIC "-//Mort Bay Consulting//DTD Configure//EN" "http://jetty.mortbay.org/configure.dtd"> | |
<Configure class="org.eclipse.jetty.webapp.WebAppContext"> | |
<!-- Application name is 'gdi_som' --> | |
<Set name="contextPath">/gdi_som</Set> | |
</Configure> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.xyz.batch.listener; | |
import java.io.BufferedReader; | |
import java.io.ByteArrayInputStream; | |
import java.io.File; | |
import java.io.FileInputStream; | |
import java.io.IOException; | |
import java.io.InputStream; | |
import java.io.InputStreamReader; | |
import java.text.DateFormat; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
*We use this process listener if we want to process the items before inserting into the database. | |
*Only used for custom processing. | |
*/ | |
public class OrderItemProcessListener implements ItemProcessListener<Object,Object> { | |
private OrderDao orderDao; | |
private static final Logger logger = Logger.getLogger(OrderItemProcessListener.class); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public static Order getOrder(String orderxml) throws GdiSomException | |
{ | |
try { | |
JAXBContext jaxbContext; | |
jaxbContext = JAXBContext.newInstance(Order.class); | |
Unmarshaller jaxbUnmarshaller = jaxbContext.createUnmarshaller(); | |
StringReader reader = new StringReader(orderxml); | |
Order order= (Order) jaxbUnmarshaller.unmarshal(reader); | |
return order; |
OlderNewer