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 WsFilter implements Filter { | |
private ApplicationContextProvider springContext; | |
private FilterConfig filterConfig; | |
private MessageFactory msgFactory = null; | |
private static final Logger logger_ = Logger.getLogger(WsFilter.class.getName()); | |
private static final Logger soap_logger = Logger.getLogger("soapLogger"); | |
@Autowired | |
private WsFilterHelper helper; |
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
Jetty/Certificate setup. | |
Use following command for import | |
keytool -import -keystore c:\Godiva\gdi\pos\res\ssl\.truststore -file xcenter-20140311.cer -alias xcentre-localhost | |
========================================================================================================================= | |
Perform the following procedure to create and deploy Self-Signed Certificates for Xcenter and | |
Xadmin. |
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
@Configuration | |
public class PropertiesConfugurer implements WebApplicationInitializer, ApplicationContextAware, | |
ApplicationContextInitializer<ConfigurableApplicationContext> { | |
private static final Logger logger = Logger.getLogger(XmlFormatter.class); | |
private static ApplicationContext context; | |
private static String relativePath; | |
@Override |
OlderNewer