Friday, October 2, 2015

How to do an Ant script file of a Message Broker Flow?

Description:

Nowadays, Services have a enormous development over tiers and are a good practice because of their stateless form on the architecture that could benefit the performance of a system, when we are in development team the use of build tools at the beginning could benefit every part of the working layers, think of Quality Assurance and Production state some values of the environment are different  as it were in Development state. There are some tools like Ant that could be make easier our job so here are a set of steps to create a Bar file for IBM Message Broker.

1. First create the following file structure:

...\ProjectNameDeploy\
...\ProjectNameDeploy\dev
...\ProjectNameDeploy\qa
...\ProjectNameDeploy\prod
...\ProjectNameDeploy\dist

2. Create a property file with message flow configuration:

---------------------------------------------
---------------------------------------------
3. Create a property file with Message Broker binary files:

---------------------------------------------
---------------------------------------------
4. Create a property file with deployment url of Message Flow Service corresponding to each development state:
Please copy each file to it corresponding folder: ...\ProjectNameDeploy\dev\msgflow-projectname-dev.properties ...\ProjectNameDeploy\qa\msgflow-projectname-qa.properties ...\ProjectNameDeploy\prod\msgflow-projectname-prod.properties
---------------------------------------------
---------------------------------------------
5. Create a ant script file for message broker code compilation:

---------------------------------------------
---------------------------------------------
6. Now we will have created our bar file in ...\ProjectNameDeploy\dist folder.

Using this kind of mechanisms is very well accepted for each functional part of the team and it maintains sustainability to control deployments.


Best Regards,

Tuesday, September 22, 2015

How to solve libXtst.so.6: cannot open shared object file: No such file or directory, running JDeveloper on ubuntu 14

If you are using JDeveloper on a Ubuntu machine and you get the following error:
 
user@user:~/Oracle/Middleware_1104/jdeveloper/jdev/bin$ ./jdev

Oracle JDeveloper 11g Release 2 (11.1.2.4.0)
Copyright (c) 1997, 2012, Oracle and/or its affiliates. All rights reserved.

Exception in thread "main" java.lang.UnsatisfiedLinkError: /home/user/Oracle/Middleware_1104/jdk160_24/jre/lib/i386/xawt/libmawt.so: libXtst.so.6: cannot open shared object file: No such file or directory
    at java.lang.ClassLoader$NativeLibrary.load(Native Method)
    at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1806)
    at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1702)
    at java.lang.Runtime.load0(Runtime.java:770)
    at java.lang.System.load(System.java:1003)
    at java.lang.ClassLoader$NativeLibrary.load(Native Method)
    at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1806)
    at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1723)
    at java.lang.Runtime.loadLibrary0(Runtime.java:823)
    at java.lang.System.loadLibrary(System.java:1028)
    at sun.security.action.LoadLibraryAction.run(LoadLibraryAction.java:50)
    at java.security.AccessController.doPrivileged(Native Method)
    at sun.awt.NativeLibLoader.loadLibraries(NativeLibLoader.java:38)
    at sun.awt.DebugHelper.<clinit>(DebugHelper.java:29)
    at java.awt.Component.<clinit>(Component.java:567)
    at oracle.ide.osgi.boot.OracleIdeLauncher.main(OracleIdeLauncher.java:87)
    at oracle.ide.osgi.boot.JDeveloper.main(JDeveloper.java:14)


You will need to install libxtst6 lib:

user@user:~/Oracle/Middleware_1104/jdeveloper/jdev/bin$ sudo apt-get install libxtst6:i386
 

How to install Maven on Ubuntu 14?

Firstly, download Maven Tar file from: https://maven.apache.org/download.cgi

Now under console follow the next commands:

user@user:~$ sudo tar -zxvf apache-maven-3.2.5-bin.tar.gz
user@user:~$ sudo mkdir -p /usr/lib/apache/maven/3.2.5/
user@user:~$ sudo mv apache-maven-3.2.5 /usr/lib/apache/maven/3.2.5
user@user:~$ cd /usr/lib/apache/maven/3.2.5/


Secondly, edit profile file:

user@user:~$ sudo gedit /etc/profile

Add the following lines at the end of the file in the above file:
-----

MAVEN_HOME=/usr/lib/apache/maven/3.2.5/apache-maven-3.2.5
PATH=$PATH:$MAVEN_HOME/bin
export MAVEN_HOME
export PATH
 

----

Execute profile to run the previous changes:

user@user:~$ source /etc/profile

Next of prove the configuracion trying version option of maven:


user@user:~$ mvn -ver