Sunday, 29 June 2014

Install JBoss EAP 6.2 using jar download

Hello everyone,

In previous blog we did the Jboss EAP 6.2 installation using a Zip file by simply unzip it into your jboss home location. Here is the scenario where we are going to install the JBoss EAP 6.2 in our environment and configure it using a jar file. Installation of Jboss using jar file is more user friendly and you can check the installation procedure step by step.

Here we follow the procedure given bellow.
  1. Check system prerequisites
  2. Install JBoss EAP 6 using zip download
  3. Start / Stop JBOSS EAP 6.2
  4. Access and Manage JBoss EAP 6.2

Step 1: Check System Prerequisites


Before proceeding with the installation, you should have installable available with you. Installable are available on link https://access.redhat.com/site/downloads/ . Go to the Red Hat JBoss Enterprise Application Platform and download the jar file. 

i.e. jboss-eap-6.2.0-installer.jar
Next is to make sure that you have a JVM installed in your machine. You can try running the following command in your terminal:
$ java –version


In case if you don’t have a JVM install, the install suitable JVM first and the JAVA_HOME and PATH environment variable.

Step 2: Install JBoss EAP 6 using jar download

Once you have a jboss-eap-6.2.0-installer.jar available then simply execute the following command to start the jboss installation in GUI mode.

$ java –jar jboss-eap-6.2.0-installer.jar

Press ok and start Installation.


Accept the term and conditions and press Next button.


Select the installation path or JBOSS_HOME for installation of product and press Next button.


A new directory will be created automatically.

Create administrator user for accessing management console and press Next button.

If you want to install QuickStart tool press Yes otherwise press No and press Next button. In this case we are not installing the tool.

This page allow you to select package you want to install don’t change anything just press Next button.

This page ask you for the socket binding option if you want to select the default port select default option or you can customize port binding as per your requirement in the same page click your option and press Next button.

After socket binding it will ask you to, start the servers after installation or not. Select your choice and press Next button.
The next screen will prompt you for the logging option. Here you can configure logging option as per your requirement and press Next button.


The red hat Jboss Enterprise Application Platform is ready to install. Click Next to start installation.  
   

After installation of components press the Next button.

This screen will ask you for the post-install configuration. If you want to configure anything listed in the screen just select the option and proceed with configuration.

In our scenario we are not configure any product, so select Do not perform additional post-install configuration option and press Next button.

This screen will ask you to create shortcuts in the start menu, press Next button.

Once to get the message installation has completed successfully click on Done and finish the installation.

 

Step 3: Start / Stop JBOSS EAP 6.2

Once installation done go to the Start Menu > All Programs > Jboss Platform > Start Server start the domain or standalone server which you want. Similarly you can stop it from same location.


Step 4: Access and Manage JBoss EAP 6.2

Management Console

Open a web browser and type http://localhost:9990/




I hope this post will help you all


Effort only fully releases its reward after a person refuses to quit.”
Regards,
Akhilesh B. Humbe

Thursday, 12 June 2014

Installation of Redhat Jboss EAP 6.2 (Enterprise Application Platform)

Hello everyone,

After Oracle weblogic and Websphere application server I got an opportunity to work with jboss application server. As it is very basic application server its installation is much easier than that of weblogic and websphere.  Before moving further lets have glance on JBOSS EAP and JBOSS Community.  

Jboss EAP (Enterprise Application Platform) and Jboss Community (Open Source) are the same process of installation, configuration, and management. The main difference is that the EAP one is a License version and you required the valid Redhat Support credential to download it and it comes with Red Hat JBoss patches and bug Fixes. EAP is more stable than that of Jboss Community version and you can raise a call to Redhat in case of any issue.

Here is the scenario where we are going to install the JBoss EAP 6.2 in our environment and configure and we will follow the procedure given bellow. 
  1. Check system prerequisites 
  2. Install JBoss EAP 6.2 using zip download  
  3. Add user for Management
  4.  Start / Stop JBOSS EAP 6.2 as a Standalone Server
  5. Access and Manage JBoss EAP 6.2 using the Management Console and Management CLI


Step 1 : Check System Prerequisites

Before proceeding with the installation, you should have a installable available with you

i.e. jboss-eap-6.2.0.zip

Next is to make sure that you have a JVM installed in your machine. You can try running the following command in your terminal:

$ java –version


In case if you don’t have a JVM install, the install suitable JVM first.

Step 2 : Install JBoss EAP 6.2 using zip download


There are several ways to install JBoss Enterprise Application Platform 6.2. We’ll go with the simplest form which is using the zip download. You may install JBoss EAP 6.2 on any location of your machine.

Download the JBoss Enterprise Application Platform 6.2 from redhat, under Downloads -> JBoss Enterprise Middleware -> Application Platform, at the very bottom. Unzip it to your home directory, this will be our EAP_HOME.




Step 3 : Add user for Management


Before you could use the Management Console and/or Management CLI, we have to setup a management user first.
  • open up terminal and go to EAP_HOME/bin
  • run add-user.bat


  • Once you see the screen above simply hit enter until you are asked to enter the username
  • Enter desired username and password, answer YES on the next questions


Step 4 : Start / Stop JBOSS EAP 6.2 as a Standalone Server


Before Start the jboss server you have to set JAVA_HOME and JBOSS_HOME parameter in Windows environment variable (in case of windows environment) or in the cmd window from where you are running the jboss server.
set JAVA_HOME=Path of jdk installed
set JBOSS_HOME=Path of Jboss Directory


  • open up terminal and go to EAP_HOME/bin
  •  run command $ standalone.bat

  • close terminal to stop server or simply hit ctrl + c

Step 5 : Access and Manage JBoss EAP 6.2 using the Management Console and Management CLI

Management Console

Open a web browser and type http://localhost:9990/



Management CLI
  • open up terminal and go to EAP_HOME/bin
  •  run command $ jboss-cli.bat  --connect

  • run exit to quite


I hope this post will help you all

Related:



Effort only fully releases its reward after a person refuses to quit.”

Regards,
Akhilesh B. Humbe


Wednesday, 11 June 2014

Run Jboss Application server as Windows Service

Hi all,
 
Here is the scenario where I want to run my jboss application server as windows services.  This configuration allows JBoss Server to start automatically, as a background process, whenever the Windows Server boots. The process does not require a logged-in user to initiate it, and so will not be killed if that user logs off. It will also restart automatically if the Windows Server reboots.

 

Procedure:


Ensure you have administrator access to the Windows server on which JBoss is installed.
First of all you can get the latest appropriate native connectors depending on your system configurations, till now the latest JBoss native components is 2.0.10 which can be download from the RedHat site. Once you have downloaded it unzip the archive in the JBoss bin folder.




The bin folder contain following files 


Now the below changes has to be done in the service.bat file.

Set JAVA_HOME if you don’t want to set it in Windows environment variable, or in case you have more than one jboss instances running.

set JBOSS_HOME=E:\App_Server\jboss-as-7.1.1.Final

Change the following parameter for service name and description.

set SVCNAME=JBASS_Service
set SVCDISP=JBoss_Service
set SVCDESC=JBoss Application Server 7.1.1 Platform: Windows x64

Set a path of your JBOSS_HOME instated of default paths after following parameter

jbosssvc.exe -p 1 "Starting %SVCDISP%" >
call standalone.bat  --server-config=standalone.xml < .r.lock >>  
jbosssvc.exe -p 1 "Shutdown %SVCDISP% service" >>
call jboss-cli.bat --connect command=:shutdown >>

Once all these changes have been made now its time to install the JBoss AS 7 service using the service.bat script and below command

JBOSS_HOME/bin >service.bat install
Installed JBASS_Service
Service JBASS_Service installed

After the above command is been run successfully you can go to the Windows Service console and change the respective service  Startup Type from Manual to Automatic which would make sure that whenever you start/bootup your system the JBoss AS 7 services starts up automatically

You can use the below given command to stop the Windows service once it has been started or else you can even do the same from the Windows Service console

JBOSS_HOME/bin >service.bat stop

It works in my case hope this will help you.

Effort only fully releases its reward after a person refuses to quit.”

Regards,
Akhilesh B. Humbe

Sunday, 8 June 2014

ORACLE RAC Configuration with Websphere Application server


Oracle Real Application Cluster (RAC) is a "share-everything" database architecture that can provide high availability and load balancing. A typical configuration for an Oracle RAC contains two or more Oracle RAC nodes that are clustered together and share the same storage.The RAC nodes can be located in the same physical, or they could be placed in entirely different machines. The actual placement does not impact the fundamental qualities of the services provided by RAC. To achieve both high availability and load-balancing, you can specify the Oracle data source URL for both cluster members in the application server with the required properties.

Procedure:


Navigate to the Oracle data source. Click Resources > JDBC > Data sources > oracle_data_source . If you don't already have an Oracle data source, create a new data source by clicking New and completing the wizard. For the URL, substitute the properties in the next step.

Set the URL for the Oracle database with the required configuration parameters.

jdbc:oracle:thin:@(DESCRIPTION=(ADDRESS_LIST=
                  (ADDRESS=(PROTOCOL=TCP)(HOST=rac-node1)(port=1521))
                  (ADDRESS=(PROTOCOL=TCP)(HOST=rac-node2)(port=1521)))
                  (FAILOVER=on)(LOAD_BALANCE=on)
                  (CONNECT_DATA=(SERVER=DEDICATED)
                  (SERVICE_NAME=<service_name>))) 

If you are not using Oracle services, then service_name will be the database name in the example. If you are using Oracle services, then service_name will be the name of the services.
The example has FAILOVER and LOAD_BALANCE turned on. To turn one or both of these features off, change on to off in the above example.

Click Apply or OK.


Effort only fully releases its reward after a person refuses to quit.”
 
Regards,
Akhilesh B. Humbe

Popular Posts