POLAR Training

LINK - Back to back bookings
DSSV - Display Special Service

Making a Booking

AVAL
Agency test phone number: 1115555555
AAA Agency phone number: 6307559911

Home/Air/Gatwy
SEA N  (Gateway, Want Air?)
Date: 10Nov12
Category Type: I (just put I, it will return everything)
Occupancy: 2 (keeping it simple)

Bonus: Type is "Yes" for mariner number to look up guest information

This was enough but you can continue:

Trade: A  (F1 to get the list of trade codes)
Tour: (Only used for Alaska Cruise Tour)

Availability by Voyage

1st line is dining

Voyage code, where first character is the ship code

CBOK (Dark blue means that it is not available)
18Bitn - to see packages
18Pkg to add new packages

Cancel Booking

Rebook: S (Shows what the cancellation fees will be)
Cancel Code: R (normally R)

Activate: A to get the booking back, but it will only come back as a Guarantee

Rebook

Use "F" to give them better fares

Notes

You can filter "ME" in history section

DINV - Display Inventory
This is done in beds

Category Pricing

Has two columns if there is a group on the agency

When making a booking use TWID: NEW, you may want to write down the twid code in case it falls off accidentally

Back to Back

Start with LINK instead of AVAL to start the process

Keep adding together and then finish with "e" to say you are ending your vacation and cruise, it will keep pricing but keep separating by different bookings.

Install SQL Developer on VM

Download link of Oracle SQL Developer Tool (Linux RPM package): http://www.oracle.com/technetwork/developer-tools/sql-developer/downloads/index.html

How to install
sudo rpm -ivh sqldeveloper-3.2.09.23-1.noarch.rpm

Information about RPM
rpm -qpl sqldeveloper-3.2.09.23-1.noarch.rpm

Remove RPM
rpm -evh sqldeveloper-3.2.09.23-1.noarch.rpm

List of RPM's
rpm -qa | grep -i sql

Information about RPM
rpm -qi sqldeveloper-3.2.09.23-1

Running SQL Developer
/opt/sqldeveloper/sqldeveloper.sh

Installs on menu too:
Applications/Programming/SQL Developer

Connections:

DEVWEB
Connection Type: Advanced
Role: Default
Custom JDBC URL: jdbc:oracle:thin:@//haltstdbs02:37200/devweb

TSTWEB
Connection Type: Advanced
Role: Default
Custom JDBC URL: jdbc:oracle:thin:@//haltstdbs02:37100/tstweb

Additional Details:

The connections property file can be found in:
hal-web/src/main/webapp/WEB-INF/config/spring/spring/jdbc-e1.properties.

Spring / Struts Upgrade

Want to start using Spring annotations and also to update Struts to avoid pitfalls with current application.

Spring upgrade to 2.5.6.0.3 and Struts 2.3.4 (going to release 2.3.5 soon)

Struts 1.2.9 for Struts 1.0 application

and then 3.1.2.RELEASE for Spring

From: Virginia Angélica Martz [mailto:vmartz@hexacta.com]
Sent: Tuesday, August 28, 2012 7:54 AM
To: Guillaume Radde
Cc: Thompson, Sonya (HAL); Ruckman, Maurice (HAL); Fillman, Eric (HAL); Mario Hartman; Ignacio Peluffo
Subject: WITG-146 Pending dependencies

Hello all,

Yesterday we were changing third-party dependencies in order to take them from Central Repository.

This is a summary of the dependencies that are still pending for changes.

Some of them are not available in Central, others don’t have a well defined version and in all these cases your help would be appreciated.

struts2-ssl-plugin-1.2

<dependency>
<groupId>com.hal.thirdparty</groupId>
<artifactId>struts2-ssl-plugin-1.2</artifactId>
<version>0.1-hal</version>
<scope>runtime</scope>
</dependency>

This dependency is not in Central nor in our Google Code mirror in Nexus, so I cannot replace it with the last version (1.2.1) .

Two options:

1)      download from this site http://code.google.com/p/struts2-ssl-plugin/ the 1.2.1 version and make it manually available in third-party.

2)      Update GoogleCode mirror in Nexus.

IngrianLog4j/ IngrianNAE-5.1.1

<dependency>
<groupId>com.hal.thirdparty</groupId>
<artifactId>IngrianLog4j</artifactId>
<version>0.1-hal</version>
</dependency>

<dependency>
<groupId>com.hal.thirdparty</groupId>
<artifactId>IngrianNAE-5.1.1</artifactId>
<version>0.1-hal</version>
</dependency>

They are third-party but I think they should be kept in this way.

gson-1.4-javadoc

<dependency>
<groupId>com.hal.thirdparty</groupId>
<artifactId>gson-1.4-javadoc</artifactId>
<version>0.1-hal</version>
<scope>runtime</scope>
</dependency>

Is this dependency used for anything? In general javadoc dependencies are not needed.

sslext

<dependency>
<groupId>com.hal.thirdparty</groupId>
<artifactId>sslext</artifactId>
<version>0.1-hal</version>
<scope>runtime</scope>
</dependency>

I don’t know which version we should use.

http://search.maven.org/#search%7Cgav%7C1%7Cg%3A%22sslext%22%20AND%20a%3A%22sslext%22

ojdbc14

<dependency>

<groupId>com.hal.thirdparty</groupId>

<artifactId>ojdbc14</artifactId>

<version>0.1-hal</version>

<scope>runtime</scope>

</dependency>

When I replaced it with the dependency in Central it failed…. dependency is empty in central and maven repository (0 bytes)

http://mvnrepository.com/artifact/ojdbc/ojdbc/14

http://search.maven.org/#artifactdetails%7Cojdbc%7Cojdbc%7C14%7Cjar

We are still analyzing if “spring-webmvc” is needed. We think that it can be removed but we are testing to be sure.

Thanks again!

Virginia

From: Virginia Angélica Martz [mailto:vmartz@hexacta.com]
Sent: Tuesday, September 11, 2012 11:20 AM
To: Fillman, Eric (HAL); Augustine, Anila (HAL)
Cc: Ruckman, Maurice (HAL); Thompson, Sonya (HAL); Ignacio Peluffo
Subject: RE: WITG-146: Update

Hi Eric,

Good questions… I’ll try to answer them J

1)      Basically one of the changes from Spring 2 to Spring 3 is the organization of the framework. While in Spring 2 there was only one jar, Spring 3 has a set of jars and you have the opportunity to include only the functionality that you need. This link can help you: http://dushyanthinguva.blogspot.com/2010/03/what-to-expect-while-migrating-to.html. In short it says:   The first thing you will notice when upgrading to Spring 3 from Spring 2 is that it is packaged in a bunch of jars (or maven dependencies). This changed in Spring 2.5 and is generally regarded a good move although it makes upgrading a bit of a pain (even with maven). The good part is, the jar/dependency names are pretty self descriptive.” More info here à http://blog.springsource.com/2009/12/02/obtaining-spring-3-artifacts-with-maven/

2)      You are right, spring-context dependency is duplicated L. Can I fix it in the same feature branch or we have to create a new one? Please let me know and I’ll do it as soon as possible.

3)      It’s true, some of the dependencies are not necessary in hal-web, but we need them in both places because of the way you are deploying. From what I’ve talked with Mario, Guillaume and Ignacio, you need the dependency in the module for compilation purposes and then you need it also in hal-web in order to be placed in WEB-INF/lib folder during the deploy.

I hope this helps, if something is not clear or you need more info just let me know..

Regards,

Virginia

Modular Applications Development with Maven

Notes:

Different ways to run Maven:
http://www.vineetmanohar.com/2009/11/3-ways-to-run-java-main-from-maven/

/home/jboss1./m2/repository

<version>1.0</version> is for application, and SNAPSHOT for development

These three tags are mandatory:

<groupId>com.hollandamerica</groupId>
<artifactId>ModularApplicationTutorial</artifactId>
<version>1.0</version>

1) Create a pom.xml to compile the application into a jar called cruiser.jar. Run the test suite.

2) You want to move the development of the booking service to a separate project. Create a separate pom.xml to compile Booking.java, BookingService.java and BookingServiceImpl.java into a separate jar called booking.jar. Have cruiser.jar use booking.jar. Execute cruiser.jar to verify it works correctly.

3) You want cruiser.jar and booking.jar to always have the same version number. Create a parent pom.xml for your 2 projects called booking-parent, and define a property called VERSION. Have booking.jar and cruiser.jar make use of this VERSION property as their version number.

4) You want to compile both cruiser.jar and booking.jar in one single command. Have cruiser.jar and booking.jar be two submodules of booking-parent.

5) Split booking.jar into booking-api.jar (containing the interface) and booking-impl.jar (containing the implementation of the service). Execute cruiser.jar to verify it still works correctly.

6) We want to prevent developers of cruiser.jar to make direct calls to a specific booking-api implementation. Propose a way to remove the direct dependency between cruiser.jar and booking-impl.jar. Implement it.

CHIP Notes from Eric

From: Fillman, Eric (HAL)
Sent: Sunday, July 22, 2012 4:36 PM
To: Guillaume Radde
Cc: Thompson, Sonya (HAL); Ruckman, Maurice (HAL); Augustine, Anila (HAL)
Subject: RE: Chip

Please see below.

Thanks.

-----Original Message-----
From: Guillaume Radde [mailto:guillaume.radde@redhat.com]
Sent: Sunday, July 22, 2012 4:14 PM
To: Fillman, Eric (HAL)
Cc: Thompson, Sonya (HAL); Ruckman, Maurice (HAL); Augustine, Anila (HAL)
Subject: Chip

Eric,

I'm digging into the com.hollandamerica.chip package, and looking at the JiBX mappings. This is part of the modularization work, trying to move the chip related code into a separate module.
Could you confirm that the following statements are correct? Unfortunately, it looks like a lot of this code was written by Jay, but I'm hoping you can help me make sure I understand it correctly:

1) Chip is an XML api for Polar only
In theory, yes.  But the word "chip" has incorrectly been translated to be any XML type service processed through WebMethods.  But Chip should only be messages to POLAR.

2) All XML messages sent to Polar through chip are buit from the CruiseLineXmlRequest Java object.
They're supposed to be.

3) The following Java classes wrap XML messages to/from Barclays, not Polar, and do not use Chip:
-CCPRequestDTO (Credit Card Process)
-ICRequestDTO   (Instant Credit Request)
-PSOfferCaptureRequestDTO  (Pre Screen Credit Card Offer)
-PSRequestDTO (Pre Screen a guest for credit card application)
I believe that's correct.  When you say "Do not use Chip", I assume you mean they don't go to POLAR through the ChipAPI.  But like I said, some people here misinterpret "chip" to be any XML going through WebMethods (like the CCPRequest and the Barclay's messages)

My initial goal was to extract the polar/chip DTOs into a separate chip-connector maven module. I might end up creating several modules at once (one per Third party system we are connecting to):
-chip-connector.jar
-barclays-connector.jar
-steiner-connector.jar
-RTD-connector.jar
OK.  Just so you know, when I was doing RTD and knew I'd have to go through WebMethods, I created a WebMethods service (com.hal.sf.service.WebMethodsService) to make the call, rather than using ChipDAO - mainly because I knew it wasn't really Chip.  However, the code that WebMethodsService uses is a lot of "chip" code (if you look at it you'll see what I mean).  I don't think it's actually uses chip, it's just that the word "chip" is in a lot of the classes and methods used in the WebMethodsService.  Unfortunately, I didn't have time to re-factor everything to be non-chip.  But if you're going to create separate modules, you might look at using that WebMethodsService and refactoring it to be non-chip.

Thanks!

-------------------------------------
Guillaume Radde
Senior Consultant, Red Hat Consulting
guillaume.radde@redhat.com
http://www.redhat.com
-------------------------------------