Skip to content

Mr Peacock Integration

ferng edited this page Jul 16, 2017 · 1 revision

Development Notes

Libraries

activemq-all-5.8.0.jar
annotations.jar
antlr-2.7.7.jar
axis.jar
commons-codec-1.6.jar
commons-discovery-0.2.jar
commons-logging-api-1.1.1.jar
commons-logging.jar
com.springsource.org.aopalliance-1.0.0.jar
dom4j-1.6.1.jar
hibernate-commons-annotations-4.0.2.Final.jar
hibernate-core-4.2.4.Final.jar
hibernate-jpa-2.0-api-1.0.1.Final.jar
hsqldb.jar
httpclient-4.2.5.jar
httpcore-4.2.4.jar
javassist-3.15.0-GA.jar
jaxrpc.jar
jboss-logging-3.1.0.GA.jar
jboss-transaction-api_1.1_spec-1.0.1.Final.jar
junit-4.11.jar
log4j-1.2.17.jar
mockito-all-1.9.5.jar
peacock-lib-20130516.jar
saaj.jar
spring-aop-3.2.1.RELEASE.jar
spring-beans-3.2.1.RELEASE.jar
spring-context-3.2.1.RELEASE.jar
spring-core-3.2.1.RELEASE.jar
spring-expression-3.2.1.RELEASE.jar
spring-jdbc-3.2.1.RELEASE.jar
spring-jms-3.2.1.RELEASE.jar
spring-orm-3.2.1.RELEASE.jar
spring-oxm-3.2.1.RELEASE.jar
spring-test-3.2.1.RELEASE.jar
spring-tx-3.2.1.RELEASE.jar
spring-web-3.2.1.RELEASE.jar
spring-webmvc-3.2.1.RELEASE.jar
spring-ws-2.1.3.RELEASE-all.jar
wsdl4j.jar
xmlunit-1.4.jar

Release Notes

Application Deployment

Module Version Context Root Deploy
peacockInt.war 1.0 mrpeacock Y

Execute Ant Tasks

ant -f peacockInt.xml tomBuildWar
ant -f peacockInt.xml tomReload
ant -f peacockInt.xml tomRedeploy
ant -f peacockInt.xml tomDeploy

Environment Management

#Recreate Int schemas and populate with test data
ant -f peacockIntEnv.xml cleanUpDb

#Recreate Int schemas without test data
ant -f peacockIntEnv.xml prepProdDb

#Start database
ant -f peacockIntEnv.xml startDb

#Stop all services: DB & MQ
ant -f peacockIntEnv.xml stopAll

#Recreate Int schemas, populate with test data and cleanup activeMq queues
ant -f peacockIntEnv.xml cleanUpAll

Environment Configuration

#only needed for the database not the code itself
MRPEACOCKDATA_HOME=/home/fern/dataBase
export MRPEACOCKDATA_HOME

Server Configuration

*$CATALINA_HOME/conf/context.xml

<Resource name="jdbc/mrPeacockDs"
          auth="Container"
          type="javax.sql.DataSource"
          username="MR_PEACOCK_APP"
          password="MR_PEACOCK_APP"
          driverClassName="org.hsqldb.jdbcDriver"
          url="jdbc:hsqldb:hsql://localhost:9005/peacock"
          maxActive="8"
          maxIdle="4"/>

<Resource name="jms/custRegQCF"
          auth="Container"
          type="org.apache.activemq.ActiveMQConnectionFactory"
          factory="org.apache.activemq.jndi.JNDIReferenceFactory"
          brokerURL="tcp://localhost:61616"
          useEmbeddedBroker="false"
          brokerName="LocalActiveMQBroker"/>

<Resource name="jms/queue/regReqQ"
          auth="Container"
          type="org.apache.activemq.command.ActiveMQQueue"
          factory="org.apache.activemq.jndi.JNDIReferenceFactory"
          physicalName="CUST.REGREQ"/>
                          
<Resource name="pool/workerThreadPool"
          auth="Container"
          type="com.thecrunchycorner.peacockint.regprocessor.WorkerThreadPool"
          factory="org.apache.naming.factory.BeanFactory"
          poolSize="8"
          futureTaskPollTimer="250"/>

Post release checks

DB

select * from APP_SCHEMA.SYSTEM_ATTRIBUTE;

Environment

Section Property Value
Target Request URI http://localhost:8080/PeacockInt
Content-Type text/xml
Request Method POST
Body Content-Type text/xml
Encoding utf-8

Payload

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:q0="http://www.thecrunchycorner.com/peacockInt/schemas" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
  <soapenv:Body>
    <q0:UpdateCustomerRequest>
      <q0:RequestID>e6a9bb54-da25-102b-9a03-2db401e887ec</q0:RequestID>
      <q0:RequestDateTime>2013-08-20T15:20:09.654Z</q0:RequestDateTime>
      <q0:RequestAction>REGISTER</q0:RequestAction>
      <q0:NewCustDetails>
        <q0:CustomerId>FG001</q0:CustomerId>
        <q0:CustomerOrg>CRNCHY</q0:CustomerOrg>
        <q0:CustomerStatus>UNAUTH</q0:CustomerStatus>
        <q0:CustomerFname>Fern</q0:CustomerFname>
        <q0:CustomerSname>Gonzale</q0:CustomerSname>
        <q0:CustomerDOB>2000-08-20</q0:CustomerDOB>
        <q0:CustomerStartDate>2013-08-20</q0:CustomerStartDate>
        <q0:CustomerEndDate>2013-08-31</q0:CustomerEndDate>
      </q0:NewCustDetails>
    </q0:UpdateCustomerRequest>
  </soapenv:Body>
</soapenv:Envelope>

Connectivity

curl -X POST -d '<run><log encoding="hexBinary">4142430A</log><result>0</result><duration>2000</duration></run>' http://localhost:8080/peacockSimi

Clone this wiki locally