- Install Maven
- Update {MAVEN_HOME}\conf\settings.xml
Update the following:- localRepository
- proxies
- profiles
- activeProfiles
Monday, April 25, 2011
Maven Setup
Sunday, March 6, 2011
Deployment
- Create the package for full release
- Check out the Project in Eclipse
- Open SVN Repositories. Click Window->Open Perspective->SVN Repository Browser
- Assuming that you already have Repository Location set up, find the project in the trunk or branches
- Right click project then click Show History to ensure that it has the latest change/fix needed
- Tag or make a branch out of the project. Right click project then click New->Tag or Branch
- Right click newly created tag/branch then click Show History to ensure that the it has the latest change/fix needed
- Check out the newly created tag or branch. Right click project the click Check Out
- Build the package
- In the console, go to emea-pom of the checked out project
- Type
mvn clean package –DemeaVersion=${currentversion}
- After a successful build, go to the emea-release project and copy the whole target folder in a different directory.
- Check out the Project in Eclipse
- Generate the config files/folders of the package
- Create a config folder inside the target folder or where the jar is located
- Create folders dev, sit, uat and prod inside config folder
- Open you FTP Client (e.g. FileZilla) and copy the config files to the newly created folders
- DEV
- SIT
- UAT
- PROD
- DEV
- Update the ini file with the changes from project and change the VERSION property
- Create a config folder inside the target folder or where the jar is located
- Deploy DEV using the exploded jar
- In FileZilla, upload/add target/classes/versions to /ams/domains/ACCTSVCS102/versions
- In FileZilla, copy target/config/dev to/ams/domains/ACCTSVCS102/versions/config
- On DEV WEBLOGIC, stop and delete previously deployed ear
- Open Putty and login to DEV (ehdeapp10v.uk.jpmorgan.com)
- Point latest to latest deployed version
- Go to /ams/domains/ACCTSVCS102/versions/biz-rules
- Type rm latest
- Type ln -s {newversionFolder} latest
- Do step 1-3 to config & emea folders as well
- Go to /ams/domains/ACCTSVCS102/versions/biz-rules
- On DEV WEBLOGIC, deploy new ear and start
- Delete temporary files
- Go to /ams/domains/ACCTSVCS102/scripts and type stop_all.sh
- Go to /ams/domains/ACCTSVCS102/servers/admACCTSVCS
- Delete tmp folder. Type rm -rf {folderName}
- Go to /ams/domains/ACCTSVCS102/servers/mngACCTSVCS
- Delete tmp & stage folder
- Go to /ams/domains/ACCTSVCS102/scripts and type start_all.sh
- Go to /ams/domains/ACCTSVCS102/scripts and type stop_all.sh
- Check server: DEV
- In FileZilla, upload/add target/classes/versions to /ams/domains/ACCTSVCS102/versions
- Copy package(jar) and config files to SIT (ehdeapp10v.uk.jpmorgan.com), /home/eis_dev/a_pfdv01/AMSNA
- Create JIRA
- Finish!
Labels:
Apache Maven,
Application Server,
Eclipse,
Operating System,
Technologies,
Tools,
Unix,
Weblogic
Thursday, January 20, 2011
Common DB2 SQLCODE
SQLCODE | Description |
---|---|
-301 | THE VALUE OF INPUT HOST VARIABLE OR PARAMETER NUMBER position-number CANNOT BE USED AS SPECIFIED BECAUSE OF ITS DATA TYPE |
-302 | THE VALUE OF INPUT VARIABLE OR PARAMETER NUMBER position-number IS INVALID OR TOO LARGE FOR THE TARGET COLUMN OR THE TARGET VALUE |
-440 | THE NUMBER OF PARAMETERS IN THE PARAMETER LIST DOES NOT MATCH THE NUMBER OF PARAMETERS EXPECTED FOR STORED PROCEDURE name, AUTHID authid, LUNAME luname. number PARAMETERS WERE EXPECTED. |
-551 | auth-id DOES NOT HAVE THE PRIVILEGE TO PERFORM OPERATION operation ON OBJECT object-name |
Complete list: http://www.caliberdt.com/tips/sqlcode.htm
Sunday, January 16, 2011
Getting started with Ant
A(nother) N(eat) T(ool)
What is Apache Ant?
http://ant.apache.org/
Download bin:
http://ant.apache.org/bindownload.cgi
What is Apache Ant?
http://ant.apache.org/
Download bin:
http://ant.apache.org/bindownload.cgi
Getting started with Maven
Apache Maven is a software project management and comprehension tool. Based on the concept of a project object model (POM), Maven can manage a project's build, reporting and documentation from a central piece of information.
Download and extract bin from http://maven.apache.org/download.html
Basics:
http://maven.apache.org/guides/getting-started/maven-in-five-minutes.html
To install a package into your local repository:
1) Open <MAVEN_HOME>/conf/settings.xml
2) Set the local repository
<localRepository>S:/bel/repo</localRepository>
3) Set profile
4) Set what profile to activate
5) Set proxy (optional?)
6) Run mvn install (if variables are needed, add -D{varname}={varValue}). To skip test add <skipTests>true</skipTests> on pom.xml (inside properties tag). To set a default/permanent variable, set it in MAVEN_OPTS environment variable
How to set MAVEN_OPTS
-> set MAVEN_OPTS=-Xmx512M -XX:MaxPermSize=128M
-> add in mvn.bat
1) edit <MAVEN_HOME>/bin/mvn.bat
2) add SET MAVEN_OPTS=-Dmaven.test.skip=true
Note:
- dependencies -> mvn install copies all libraries first from WEB-INF/lib to the snapshot lib before downloading all dependencies declared in pom into the snapshot lib. so make sure to always clean up WEB-INF/lib first before executing mvn install to remove any conflicting jars
Source: http://maven.apache.org/
Download and extract bin from http://maven.apache.org/download.html
Basics:
http://maven.apache.org/guides/getting-started/maven-in-five-minutes.html
To install a package into your local repository:
1) Open <MAVEN_HOME>/conf/settings.xml
2) Set the local repository
<localRepository>S:/bel/repo</localRepository>
3) Set profile
4) Set what profile to activate
5) Set proxy (optional?)
6) Run mvn install (if variables are needed, add -D{varname}={varValue}). To skip test add <skipTests>true</skipTests> on pom.xml (inside properties tag). To set a default/permanent variable, set it in MAVEN_OPTS environment variable
How to set MAVEN_OPTS
-> set MAVEN_OPTS=-Xmx512M -XX:MaxPermSize=128M
-> add in mvn.bat
1) edit <MAVEN_HOME>/bin/mvn.bat
2) add SET MAVEN_OPTS=-Dmaven.test.skip=true
Note:
- dependencies -> mvn install copies all libraries first from WEB-INF/lib to the snapshot lib before downloading all dependencies declared in pom into the snapshot lib. so make sure to always clean up WEB-INF/lib first before executing mvn install to remove any conflicting jars
Source: http://maven.apache.org/
Wednesday, January 5, 2011
Object Oriented Javascript
Object Constructor
Creating Objects
References:
http://www.javascriptkit.com/javatutors/oopjs.shtml
function Cat(name) { this.name = name; this.talk = function() { alert( this.name + " say meeow!" ) } }
Creating Objects
- using constructor of defined object
myCat = new Cat("Kuting");
- using new Object()
person = new Object() person.name = "Bel" person.run = function() { this.state = "running" alert( this.name + " is running!" ) }
- using literal notation
person = { name : "Bel", siblings : ["Ana", "Marie"], run : function(){this.state = "running"; alert( this.name + " is running!" )} };
Cat.prototype.changeName = function(name) { this.name = name; }
References:
http://www.javascriptkit.com/javatutors/oopjs.shtml
Subscribe to:
Posts (Atom)