openesb-standalone/src/asciidoc/index.adoc

166 lines
6.0 KiB
Plaintext
Raw Blame History

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

:toc2:
:icons: font
:homepage: http://open-esb.net
= OpenESB Standalone - Reference Documentation
David Brassely <brasseld@gmail.com>
:description: OpenESB Standalone reference guide
[[openesb-standalone-introduction]]
= Overview of OpenESB Standalone
[partintro]
--
OpenESB Standalone or OpenESB SE (for Standalone Edition) is a complete distribution
of OpenESB that runs in a simple JVM. Not any container is required to run OpenESB SE.
OpenESB has been developed to be a very light but reliable and powerful version
of OpenESB. In this context, OpenESB Core (OpenESB bus and management framework)
require less than 100 Mb and starts in less than 5 seconds. OpenESB share its
source code with the other versions of OpenESB. So you can develop and deploy your
projects on OpenESB SE in the same way than you do on the other platforms.
OpenESB SE has been designed mainly to make easier its deployment on the cloud
and on VM farm. Launching OpenESB SE is as easy as starting a simple JVM.
Production teams will find in OpenESB SE a way to simplify OpenESB deployment
in a multi-instances mode.
This document is a reference guide to OpenESB Standalone tools and features. If
you have any requests, comments, or questions on this document, please post them
on the user mailing list or on the support forums at http://openesb-community-forum.794670.n2.nabble.com/[Nabble].
--
[[openesb-standalone-setup-guide]]
== Setup Guide
This section includes information on how to setup an OpenESB Standalone instance and get it running.
If you havent already, http://build2.open-esb.net:8080/jenkins/view/openesb-runtime/job/openesb-standalone/lastSuccessfulBuild/artifact/openesb-standalone-packaging/target/openesb-standalone-0.0.1-SNAPSHOT.zip[download] it, and then check the <<openesb-standalone-installation,installation>> docs.
We want to keep things as simple as possible, so you just have to unzip the
OpenESB SE distribution in a convenient directory.
[IMPORTANT]
====
Please be aware that the installation's path should not contain whitespace characters.
====
[NOTE]
====
For the rest of this documentation, we admit that +OPENESB_HOME+ refers to the
directory containing the OpenESB installation.
====
=== Requirements
OpenESB Standalone is build using Java, and requires at least http://java.com/[Java 7] in order to run.
The version of Java that will be sued can be set by setting the +JAVA_HOME+ environment variable.
You should check your current Java installation before you begin:
[source,bash,indent=0]
[subs="verbatim,quotes"]
----
$ java -version
----
[[openesb-standalone-installation]]
=== Installation
After http://build2.open-esb.net:8080/jenkins/view/openesb-runtime/job/openesb-standalone/lastSuccessfulBuild/artifact/openesb-standalone-packaging/target/openesb-standalone-0.0.1-SNAPSHOT.zip[downloading] the latest release and extracting it, you can start to play with OpenESB Standalone.
=== Start an instance
==== Windows
[NOTE]
====
Section Pending
====
==== Unix systems
From the +OPENESB_HOME+ folder, run:
[source,bash,indent=0]
[subs="verbatim,quotes"]
----
$ bin/openesb.sh
----
==== Example
When you're launching OpenESB Standalone for the first time, you should obtain something like the following content:
[source,bash,indent=0]
[subs="verbatim,quotes"]
---
Feb 14, 2014 12:22:16 PM net.openesb.standalone.framework.JSEJBIFramework createJMXConnectorServer
INFO: remote JMX connector available at service:jmx:rmi:///jndi/rmi://localhost:8699/jmxrmi
Feb 14, 2014 12:22:16 PM net.openesb.rest.extension.RestServiceLifecycle getHttpPort
INFO: User defined HTTP port for Rest services : 4848
Feb 14, 2014 12:22:16 PM com.sun.jbi.framework.JBIFramework startup
INFO: JBIFW0010: JBI framework ready to accept requests.
Feb 14, 2014 12:22:17 PM org.glassfish.jersey.server.ApplicationHandler initialize
INFO: Initiating Jersey application, version Jersey: 2.4.1 2013-11-08 12:08:47...
Feb 14, 2014 12:22:17 PM org.glassfish.grizzly.http.server.NetworkListener start
INFO: Started listener bound to [localhost:4848]
Feb 14, 2014 12:22:17 PM org.glassfish.grizzly.http.server.HttpServer start
INFO: [HttpServer] Started.
Feb 14, 2014 12:22:17 PM net.openesb.rest.extension.RestServiceLifecycle startService
INFO: REST API started with WADL available at : http://localhost:4848/application.wadl
Feb 14, 2014 12:22:17 PM com.sun.jbi.framework.JBIFramework ready
INFO: JBIFW0012: JBI framework startup complete.
---
=== Stop an instance
==== Windows
[NOTE]
====
Section Pending
====
==== Unix systems
[NOTE]
====
Section Pending
====
== User Guide
=== Configure an instance
The configuration file is available under +OPENESB_HOME/config/openesb.yaml+.
By default, the content of this configuration file is as follow:
[source,yaml,indent=0]
[subs="verbatim,quotes"]
----
#################################### Instance #####################################
instance.name: server
instance.port: 8699
##################################### HTTP ########################################
http.port: 4848
http.enabled: false
----
[cols="2*", options="header"]
|===
|Property
|Description
|instance.name
|The name of the OpenESB instance.
This will typically create a folder under +OPENESB_HOME/{instance.name}+
|instance.port
|The port used to communicate over JMX which the instance
|http.port
|The HTTP port used to access rest API or web console
|http.enabled
|Flag to enable / disable HTTP components as rest API or web console
|===
=== Rest API
The new rest API to manage your single OpenESB instance is reachable at http://localhost:4848/api
=== Web Console
By default, you can access the web console using your preferred browser at http://localhost:4848/webui/index.html
[IMPORTANT]
====
At this time, the latest part of the url (_/index.html_) is mandatory. Trying to access http://localhost:4848/webui does not work.
So please use the complete url if you want to access the web console.
====
=== Command-Line (ie. oeadmin)
If you have already used OpenESB v2 with Glassfish under-the-hood, you should well-knowing the +asadmin+ command.