Install WildFly on Ubuntu 12.04 LTS and Ubuntu 12.10


WildFly = JBoss

Install JBoss 7.0.2 Application Server on on Ubuntu 12.04 LTS and Ubuntu 12.10 Ubuntu 11.10 or Ubuntu 11.04 or Ubuntu 10.10 or Ubuntu 10.04 LTS

Java – Download Free EBooks and Whitepapers

Application Server vs. Web Server
Application Server vs. Web Server
Application Servers in Java, .net and PHP
Application Servers in Java, .net and PHP

Application Server is a framework that provides execution environment for application written in specific Programming Language.

JBoss is an Open Source Java EE based Application server developed by Redhat which operates on Cross Platform. It supports Servlet Specification 3.3 and JSP specification of 2.2.

JBoss Application Server (Source: JBoss)
JBoss Application Server (Source: JBoss)

Before you install JBoss you’ll want to make sure that you’ve installed Java.

Use Synaptic Package Manager to install Java.

Use Synaptic Package Manager to install Java
Use Synaptic Package Manager to install Java
Synaptic Package Manager installing Java
Synaptic Package Manager installing Java
java -version
java -version
java -version
java -version

Licensing

JBoss is distributed under LGPL; LGPL is a free software license published by the Free Software Foundation (FSF). It was designed as a compromise between the strong-copyleft GNU General Public License or GPL and permissive licenses such as the BSD licenses and the MIT License.

Red Hat charges to provide a support service for:

  • ·JMS integration
  • ·Java Naming and Directory Interface (JNDI)
  • ·Java Transaction API (JTA)
  • ·Java Authorization Contract for Containers (JACC) integration
  • ·JavaMail
  • ·JavaServer Faces 1.2 (Mojarra)
  • ·Jport subscription for JBoss Enterprise Middleware.

Features

  • ·Java Server Pages
  • ·Java Servlet
  • ·JBoss Web ServicesS
  • ·JDBC
  • ·Load balancing
  • ·Aspect-oriented programming (AOP) support
  • ·Clustering
  • ·Deployment API
  • ·Distributed caching (using JBoss Cache, a standalone product)
  • ·Distributed deployment (farming)
  • ·Enterprise JavaBeans versions 3 and 2.1
  • ·Failover (including sessions)
  • ·Hibernate integration
  • ·Java Authentication and Authorization Service (JAAS)
  • ·Java EE Connector Architecture (JCA) integration
  • ·Java Management Extensions
  • ·Management API
  • ·OSGi framework
  • ·RMI-IIOP
  • ·SOAP with Attachments API for Java
  • ·Teiid data virtualization system- Teiid is a data virtualization system that allows applications to use data from multiple, heterogeneous data stores.

Requirements

Java SE 6 or later

Download

http://www.jboss.org/jbossas/downloads/

Download JBoss
Download JBoss

Extract the file into usr/share/

Extract files from JBoss Archive
Extract files from JBoss Archive
Extracting files from JBoss Archive
Extracting files from JBoss Archive
Extracted files for JBoss Standalone installation
Extracted files for JBoss Standalone installation

Now, Lets Test it…If we haven’t installed Java then we will get an ERROR.

Java not Found Error in JBoss installation
Java not Found Error in JBoss installation
JBoss Running
JBoss Running

Now lets open Jboss in Web Browser

JBoss Application Server 7
JBoss Application Server 7

Lets Verify the Admin Console

JBoss Application Server 7 Admin Console
JBoss Application Server 7 Admin Console

Start JBoss 7 as a service on Ubuntu

Previous versions of JBoss included a scripts (like jboss_init_redhat.sh) that could be copied to /etc/init.d in order to add it as a service – so it would start on boot up. I can’t seem to find any similar scripts in JBoss 7.

If you have copied from other editor or any web page then you will find some unwanted character in the file which will give you error when you will try to run the script.

Error: Bad Interpreter…

Verify Interpreter by “which sh” command in console

Result will be /bin/sh

Then verify the script openining it in VI editor.

Error: JBoss 7 as a service on Ubuntu
Error: JBoss 7 as a service on Ubuntu

Remove all unwanted Characters

JBoss 7 as a service on Ubuntu
JBoss 7 as a service on Ubuntu

Save it

JBoss 7 as a service on Ubuntu - Save Changes
JBoss 7 as a service on Ubuntu – Save Changes

Restart the Machine and try following

Restart JBoss Service
Restart JBoss Service

Done!!!

References

http://en.wikipedia.org/wiki/JBoss_application_server

http://en.wikipedia.org/wiki/Comparison_of_application_servers

http://en.wikipedia.org/wiki/Application_Server

http://stackoverflow.com/questions/6880902/start-jboss-7-as-a-service-on-linux

Advertisements

Install WildFly on Ubuntu in Amazon EC2 Micro Instance


WildFly == Jboss

Licensing

JBoss is distributed under LGPL; LGPL is a free software license published by the Free Software Foundation (FSF). It was designed as a compromise between the strong-copyleft GNU General Public License or GPL and permissive licenses such as the BSD licenses and the MIT License.

Java – Download Free EBooks and Whitepapers

  1. Create Amazon Machine Instance (AMI) with Ubuntu server 12.04.01 LTS in AWS Free Usage Tier? -> https://clean-clouds.com/2013/01/12/how-to-create-amazon-machine-instance-ami-in-aws-free-usage-tier/
  2. Verify whether Java is installed or not. in AWS instance we created, verify it with command java -version
  3. Download http://www.jboss.org/jbossas/downloads/
  4. Extract the file into usr/share/
  5. Edit standalone.xml file at /usr/share/jboss-as/standalone/configuration and edit the interface definitions to use address 0.0.0.0 instead of the default.
        <inet-address value="0.0.0.0"/>    <inet-address value="0.0.0.0"/>
    </interface>

    JBoss-standalone

  6. Run standalone.sh from bin
[root@domU-12-31-39-04-9C-B2 jboss-as-7.0.2.Final]# cd bin/[root@domU-12-31-39-04-9C-B2 bin]# ./standalone.sh=========================================================================JBoss Bootstrap EnvironmentJBOSS_HOME: /tmp/jboss-as-7.0.2.FinalJAVA: /usr/lib/jvm/jre/bin/javaJAVA_OPTS: -server -Xms64m -Xmx512m -XX:MaxPermSize=256m -Djava.net.preferIPv4Stack=true -Dorg.jboss.resolver.warning=true -Dsun.rmi.dgc.client.gcInterval=3600000 -Dsun.rmi.dgc.server.gcInterval=3600000 -Djboss.modules.system.pkgs=org.jboss.byteman -Djava.awt.headless=true=========================================================================15:15:21,489 INFO  [org.jboss.modules] JBoss Modules version 1.0.2.GA15:15:21,910 INFO  [org.jboss.msc] JBoss MSC version 1.0.1.GA

15:15:21,975 INFO  [org.jboss.as] JBoss AS 7.0.2.Final “Arc” starting

15:15:23,444 WARN  [org.jboss.as] No security realm defined for native management service, all access will be unrestricted.

15:15:23,464 INFO  [org.jboss.as] creating http management service using network interface (management) port (9990)

15:15:23,467 WARN  [org.jboss.as] No security realm defined for http management service, all access will be unrestricted.

15:15:23,481 INFO  [org.jboss.as.logging] Removing bootstrap log handlers

15:15:23,497 INFO  [org.jboss.as.connector.subsystems.datasources] (Controller Boot Thread) Deploying JDBC-compliant driver class org.h2.Driver (version 1.2)

15:15:23,511 INFO  [org.jboss.as.clustering.infinispan.subsystem] (Controller Boot Thread) Activating Infinispan subsystem.

15:15:23,660 INFO  [org.jboss.as.naming] (Controller Boot Thread) JBAS011800: Activating Naming Subsystem

15:15:23,672 INFO  [org.jboss.as.naming] (MSC service thread 1-1) JBAS011802: Starting Naming Service

15:15:23,681 INFO  [org.jboss.as.osgi] (Controller Boot Thread) JBAS011910: Activating OSGi Subsystem

15:15:23,722 INFO  [org.jboss.as.security] (Controller Boot Thread) Activating Security Subsystem

15:15:23,726 INFO  [org.jboss.remoting] (MSC service thread 1-1) JBoss Remoting version 3.2.0.Beta2

15:15:23,785 INFO  [org.xnio] (MSC service thread 1-1) XNIO Version 3.0.0.Beta3

15:15:23,823 INFO  [org.xnio.nio] (MSC service thread 1-1) XNIO NIO Implementation Version 3.0.0.Beta3

15:15:24,149 INFO  [org.apache.catalina.core.AprLifecycleListener] (MSC service thread 1-1) The Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: /usr/lib/jvm/java-1.6.0-openjdk-1.6.0.0.x86_64/jre/lib/amd64/server:/usr/lib/jvm/java-1.6.0-openjdk-1.6.0.0.x86_64/jre/lib/amd64:/usr/lib/jvm/java-1.6.0-openjdk-1.6.0.0.x86_64/jre/../lib/amd64:/usr/java/packages/lib/amd64:/usr/lib64:/lib64:/lib:/usr/lib

15:15:24,204 INFO  [org.jboss.as.remoting] (MSC service thread 1-2) Listening on /0.0.0.0:9999

15:15:24,212 INFO  [org.jboss.as.ee] (Controller Boot Thread) Activating EE subsystem

15:15:24,501 INFO  [org.apache.coyote.http11.Http11Protocol] (MSC service thread 1-1) Starting Coyote HTTP/1.1 on http–0.0.0.0-8080

15:15:24,502 INFO  [org.jboss.as.jmx.JMXConnectorService] (MSC service thread 1-1) Starting remote JMX connector

15:15:24,735 INFO  [org.jboss.as.connector] (MSC service thread 1-2) Starting JCA Subsystem (JBoss IronJacamar 1.0.3.Final)

15:15:24,966 INFO  [org.jboss.as.connector.subsystems.datasources] (MSC service thread 1-1) Bound data source [java:jboss/datasources/ExampleDS]

15:15:25,893 INFO  [org.jboss.as.deployment] (MSC service thread 1-2) Started FileSystemDeploymentService for directory /tmp/jboss-as-7.0.2.Final/standalone/deployments

15:15:25,921 INFO  [org.jboss.as] (Controller Boot Thread) JBoss AS 7.0.2.Final “Arc” started in 4812ms – Started 93 of 148 services (55 services are passive or on-demand)

Jboss

Done!

what is cloud computing Definition – with real world examples


Definition of Cloud Computing with Real World Example

The curious question is: what is Cloud computing Definition with real world example? It is a disruptive and innovative model for enabling convenient, on-demand, and flexible access to a shared pool of computing resources such as networks, servers, storage, applications, and services which are configurable and can be quickly provisioned and de-provisioned with minimal or no management effort or service provider interaction.

Cloud Computing – Download Free EBooks and Whitepapers

This model is composed of three service models, four deployment models, and five essential characteristics as per NIST.

On-demand self-service: Use credit card and use resources  such as compute, storage, database from cloud environment without any interaction with service providers or any delay due to workflows and permissions. It takes less than a MINUTE! And believe me, you are not day dreaming…It is a reality.

Go to http://aws.amazon.com/ and verify yourself

  • Real world example: SMS activation:
  • Prerequisite: Enough balance in the Mobile (Map it with Credit Card in Cloud environment )
  • Request Service by calling on *110# (Airtel) (Map it with http://aws.amazon.com in Cloud environment )
  • And you can easily use the services required

Balance/Usage: with *123*3# you know the available amount of SMS (In case of Cloud, All Cloud Service Provider gives Dashboard/ Management Console/ Cost Control Dashboard which gives you  information regarding your resource usage, cost and many more things.

Cloud Computing Billing (Source: Google)
Cloud Computing Billing (Source: Google)

Broad network access: Computing resources such as compute and storage capacity are available over network / on internet or intranet and they can be accessed via various devices such as smartphones, iPads, mobile phones, tablets, laptops, and workstations.

Real world example: Videos on Mobile Web – Applications, wallpapers and ringtones from Internet are used

Smartphone
Smartphone

The more suitable example can be the way we watch videos over internet; similarly we can use various resources on Cloud as well…

Youtube on Smartphone
Youtube on Smartphone

Resource pooling: A resource pool is a set of resource which is homogeneous with respect to some activity, action or context. Cloud Service provider create a pool of all computing resources to serve multiple consumers in a multi-tenant environment, where different physical and virtual resources are dynamically assigned and re-assigned according to demand.

Resource Pooling (Source - VMware)
Resource Pooling (Source – VMware)

Real world example: In software engineering, a connection pool is considered as a cache of database connections so that the connections can be reused in case of future requests to the database are required.

Purpose: To enhance performance of executing database commands

In case of cloud environment, resources are pooled together and its capacities are used in unified manner to enhance the performance and customer satisfaction.

Rapid elasticity: Application can expand on demand, across all its tiers  such as presentation layer, database layer,application layer – MVC).  It also implies that application components can grow independently from each other. So if you require more storage for database, you should be able to grow that tier without affecting the availabilityof that application, reconfiguration, or changing the other tiers.

Real world example: In physics, elasticity or stretchiness is the physical property of a material that returns to its original shape after the stress e.g. external forces (Consider Peak Hours as external forces in cloud environment)

 

Cloud Computing - Elasticity
Cloud Computing – Elasticity

Measured service: Cloud environment automatically control and optimize resource use by leveraging a metering or chargeback capacity. The basic value proposition of cloud computing is its utility based price model where you pay for what you use. Resource usage in cloud environment can be monitored, controlled, and notified via alerts, dashboards. It is a very basic feature which is essential in Cloud environment

Real world example: Consumers pay for electricity as they have used it

 

Cloud Computing - Measured Service
Cloud Computing – Measured Service

It’s not a Technology…It’s an innovation…Idea….