Thursday, January 17, 2013

JBoss Application Server 7 Configurations


JBoss Application Server 7 Configurations

Standalone Server Configurations
  • standalone.xml (default)
    • Java Enterprise Edition 6 full profile certified configuration which includes the technologies required by the Full Profile specification plus others including OSGi 
  • standalone-ha.xml
    • Java Enterprise Edition 6 certified full profile configuration with high availability
  • standalone-osgi-only.xml
    • OSGi only standalone server. No JEE6  capabilities
  • standalone-xts.xml
    • Standalone JEE6 full certified profile with support for transactional web services.
Domain Server Configurations
  • domain.xml (default)
    • Java Enterprise Edition 6 full profile certified configuration which includes the technologies required by the Full Profile specification plus others including OSGi
  • domain-osgi-only.xml
    • OSGi only server. No JEE6  capabilities
Important to note is that the domain and standalone modes determine how the servers are managed not what capabilities they provide.

Starting JBoss Application Server 7

To start AS 7 using the default full profile configuration in "standalone" mode, change directory to $JBOSS_HOME/bin.
./standalone.sh
To start the default full profile configuration using domain management capabilities,
./domain.sh

Starting JBoss Application Server 7 with an Alternate Configuration

If you choose to start your server with one of the other provided configurations, they can be accessed by passing the --server-config argument with the server-config file to be used. 
To use the full profile with clustering capabilities, use the following syntax from $JBOSS_HOME/bin:
./standalone.sh --server-config=standalone-ha.xml
Similarly to run OSGi only server in  domain mode:
./domain.sh --domain-config=domain-osgi-only.xml
 Alternatively, you can create your own selecting the additional subsystems you want to add, remove, or modify.

Test Your Installation

After executing one of the above commands, you should see output similar to what's shown below.
========================================================================
JBoss Bootstrap Environment
   JBOSS_HOME: /work/jboss-as-7.0.0.Final

  JAVA: /usr/jdk1.6/bin/java

  JAVA_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

=========================================================================

16:32:05,050 INFO  [org.jboss.modules] JBoss Modules version 1.0.1.GA
16:32:05,379 INFO  [org.jboss.msc] JBoss MSC version 1.0.0.GA
16:32:05,421 INFO  [org.jboss.as] JBoss AS 7.0.0.Final "Lightning" starting
<snip>
16:32:07,578 INFO  [org.jboss.as] (Controller Boot Thread) JBoss AS 7.0.0.Final "Lightning" started in 2804ms - Started 91 of 146 services (55 services are passive or on-demand)
As with previous JBoss releases, you can point your browser to http://localhost:8080 or http://IP:Port (if using the default configured http port) which brings you to the Welcome Screen:
                           
From here you can access links to the AS 7 community documentation set, stay up-to-date on the latest project information, have a discussion in the user forum and access the newly designed web-based Administration Console.  Or, if you uncover an issue while using AS 7, report an issue to inform us (attached patches will be reviewed).  This landing page is recommended for convenient access to information about AS 7 but can easily be replaced with your own if desired.


Thanks!!

No comments:

Post a Comment