Saturday, 28 June 2014

oracle soa suite 12c installation

This post will give the clear installation steps of oracle soa 12c.
Prerequisites:
1. jdk 7
2. soa 12c software

The following are the products installed along with soa suite 12c.
1. weblogic
2. jdeveloper 12c
3. soa (b2b, bpm, healthcare not included)
4. osb
5. rcu

installation:

In the zip file we get two jar files: fmw_12.1.3.0.0_soa_quickstart.jar and fmw_12.1.3.0.0_soa_quickstart2.jar
2) open command prompt as a run as administrator. Enter the following 
<jdk_home>/bin/java -jar <soa_software_location>/fmw_12.1.3.0.0_soa_quickstart.jar

3) installer will start installation
4) Click Next in the welcome page
5) Select location to install soa
6) Installer check for prerequisites. Click Next
7) click on install
8) soa installation completed. click Next
9) Click Finish.









Wednesday, 28 May 2014

Continuous integration with jenkins - soa deployment

This blog will give you clear idea on deployment of SOA projects from subversion using jenkins. I have a Jenkins job which is configured for SOA project, this jenkins job will compiled, packaged and deployed to SOA Server. SOA projects contains two files called build.xml and build.properties files, this build.xml file contains the project and server details. I am using SVN repository to checkin the source code.


step 1: Create a SampleSOA project

step 2: Select File -> New -> Ant -> Application Build File


step 3: Create build.xml and build.properties files

step 4: Select Version Application

step 5: Enter svn repository URL, username and password. Click on Test Read Access, in the Status textarea Access grants to the repository.

step 6: Create a sampleSOA directory and click on Next

step 7: Click on Finish button.
step 8: project versioned.

step 9: Commit the project to SVN repository.

step 10: Open jenkins url in the browser and click on manage jenkins.


step 11: Click on Configure System

step 12: In the JDK section, enter Name as java and enter java path at JAVA_HOME text field. In the Ant section, enter Name as ant and enter ant path at ANT_HOME text field.

step 13: In  the Artifactory Configuration section, enter Artifactory server url



step 14: Back to jenkins home page and click on create new jobs.


step 15: Enter Item name as SampleSOA and select Build a free-style software project. Click on OK


step 16: Enter project name as SampleSOA



step 17: select subversion and enter subversion project url


step 18: In the Build section, click on Add build step


step 19: Select Ant Version, enter Build File as SampleSOA/build.xml and enter following in the Properties textarea. After entering the code click on save button.
javac.debug=on
oracle.home=C\:\\jdevstudio117\\Middleware\\jdeveloper
output.dir=SCA-INF\\classes
javac.deprecation=off
javac.nowarn=off

step 20: Click on Build Now

step 21: In the build history you can find the build and click on the build link.


step 22: build successful message is displayed on build logs.

step 23: Open enterprise manager console and check the project is deployed.


step 24: Check the project build file is in artifactory.





Monday, 28 April 2014

Integrating Jenkins and Artifactory

Introduction:

Artifactory is an artifact repository manager and acts as a proxy between your build tool (Maven, Ant etc) and the outside world. Integrating Jenkins and Artifactory to publish, resolve, promote and release traceable build artifacts. It stores remote artifacts so that you don’t have to download them over and over again.also you can deploy your own artifact into repository for sharing between projects, storing buils artifacts, and for build release management. Artifactory can be deployed to any servlet container, but it come bundled with Jetty container.

Installing artifactory plugin:

step 1: Start jenkins and open jenkins home page in the browser. Click on Manage Jenkins


step 2: In the Manage Jenkins page click on Manage Plugins



step 3: Click on Available tab and check Artifactory Plugin checkbox. Click on "Download now and install after restart" button.


step 4: Plugin downloaded successfully. Restart the jenkins to activate the plugin.



step 5: Download an open source jfrog artifactory from the below link
http://www.jfrog.com/home/v_artifactory_opensource_download

step 6: unzip it and open <artifactory_dir>bin in the command prompt. Set java home and run artifactory.bat file using the following command. I am running artifactory at 18081 port.
artifactory.bat --httpPort=18081


step 7: After few seconds it shows successfully started.


step 8: Open the following url in the browser. http://localhost:18081/artifactory
for login default username is admin, password is password


step 9: No we need to configure artifactory url in the jenkins. Open Jenkins home page and click on Manage Jenkins.


step 10: In the Manage Jenkins page click on Configure System.


step 11: In the Artifactory section add artifactory url http://localhost:18081/artifactory
enter username and password of artifactory







Wednesday, 23 April 2014

Continuous integration with jenkins - installation part

Introduction:

Continuous Integration is the good practices used in software engineering.These good practices aim at checking that a source code modification does not lead to a regression on the developing software application. This checking is usually performed on a different machine than your development one (this machine is called an integration server); and this checking is carried out rather frequently, and so it's called Continuous Integration.

Jenkins is an open source and java based continuous integration tool. Jenkins enables teams to focus on their work by automating the build, artifact management and deployment processes. Jenkins can track metadata about builds, including the most recent failed and successful builds. It keeps build history and can provide console output. The console output of the build can be helpful in determining if a failure is due to the code or a mis-configured build server.

Jenkins -Workflow:


Installation:

Download Jenkins war file from http://jenkins-ci.org/

You can start Jenkins in two ways: using command line and deploying war as a application in weblogic server

using command line:

open terminal and go to the download location and type the following command to start the jenkins
     nohup java -jar jenkins.war &



after few seconds, jenkins will started


open browser and enter the following url, it opens jenkins home page http://<hostname>:/8080

using weblogic server:

start weblogic server and login. Click on Deployment in the Domain structure. Click on Install button.


click on upload your file(s)


 select Jenkins.war file

select Install this deployment as an application
   

click on Finish.


 open following link in the browser http://localhost:7001/jenkins/