main website home
  • About this blog

    This blog features updates, opinions, and technical notes from Caucho engineers about Caucho products, the enterprise Java industry, and PHP. Caucho Technology is the creator of the Resin Application Server and the Quercus PHP in Java engine. A leader in Java performance since 1998, Caucho is a Sun JavaEE licensee with over 9000 customers worldwide.
  • Tags

    ajaxworld bam candi cdi cloud cluster comet configuration deploy devoxx eclipse ejb embedded flash flex google app engine hessian hmtp ioc java ee 6 javaone javazone jms messaging newsletter nyjug osgi php pomegranate quercus resin resin 4.0 REST servlet sfjug silicon valley code camp spring testing training tssjs watchdog webbeans web profile websockets wordpress
  • Meta

    • Register
    • Log in
    • Entries RSS
    • Comments RSS
    • WordPress.org

Posts Tagged ‘configuration’

Cluster Configuration Using a Centralized Configuration Server

Tuesday, September 4th, 2012

Resin has the very convenient ability to import configuration from an HTTP URL. This feature in combination with clever usage of environment variables can be a huge help avoiding the issues caused by maintaining local copies of configuration files in a large environment. In this Wiki article I setup a webserver as a centralized configuration repository and show how to modify your local Resin configuration such that the same file can be used by any Resin instance in any environment.

http://wiki4.caucho.com/Cloud:_Cluster-Wide_Configuration_Using_HTTP

Tags: cluster, configuration
Posted in Uncategorized | No Comments »

Simplifying Resin XML With Dynamic Configuration - Part 2

Friday, December 30th, 2011

Conditional Configuration Using Functions and Expressions

This second part of a multi-part article on Resin configuration examines how to employ conditional XML statements and EL functions to simplify Resin configuration. When we’re done, you’ll understand how the same configuration could be shared between deployment environments with entirely different Resin operation by using some following concepts:

  • Conditional XML with <resin:if>, <resin:when>, <resin:choose>, <resin:otherwise>
  • Null checking with “the Elvis Operator” ?:
  • Regular expression matching with =~
  • Resource access with mbean() and jndi()

(more…)

Tags: =~, configuration, jmx, jndi, mbean, regex, resin:choose, resin:if, resin:when, xml
Posted in Uncategorized | No Comments »

Simplifying Resin XML With Dynamic Configuration - Part 1

Tuesday, November 29th, 2011

Configuration variable substitution using <resin:properties> and rvar()

This first part of a multi-part article on Resin configuration examines how to use EL variables in various situations to simplify Resin configuration. When we’re done you’ll understand how a simple database resource like this:

  <database jndi-name="jdbc/mysql">
    <driver type="com.mysql.jdbc.Driver">
      <url>jdbc:mysql://user:password@$192.168.1.1:3306/dbname</url>
    </driver>
  </database>

… can be dynamically merged with per-server properties like this:

dbserver : 192.168.1.1
app-0.dbserver : 192.168.1.23
app-1.dbserver : 192.168.1.64

… resulting in configuration that is simple, powerful, and well suited for deployment in a cloud environment.

Read the rest of this entry on the Caucho Wiki »

Tags: configuration, dynamic, import, resin:import, resin:properties, rvar
Posted in Uncategorized | 1 Comment »


Caucho Technology is proudly powered by WordPress and Quercus®
Entries (RSS) and Comments (RSS).

  • HOME |
  • CONTACT US |
  • DOCUMENTATION |
  • BLOG |
  • WIKI 4 |
  • WIKI 3 |
  • Resin: Java Application Server
Copyright (c) 1998-2012 Caucho Technology, Inc. All rights reserved.
caucho® , resin® and quercus® are registered trademarks of Caucho Technology, Inc.
resin® is a cloud optimized, java® application server that supports the java ee webprofile ®