January 2009 Archives

JGroups and LiveCycle ES

| No Comments

Many LiveCycle ES components use the open-source JGroups group communication software for inter-component communication. For JBoss 4.0.3 SP1 and 4.2, JGroups is the default group communication mechanism. JGroups use IP multicasting (as opposed to the regular IP unicasting where one host directly communicates with another host on the network). JGroups members send messages to other group members via an ip_mcast_address which is essentially a group identifier for the broadcast of messages. This ip_mcast_address is an IP address that belongs to a range of IP addresses once called "Class D" addresses.

There can be multiple JGroups in a single product, such as JBoss or LiveCycle. In fact, at least five separate JGroups are involved in a single instance of LiveCycle ES on JBoss. For more details, please see Red Hat's JBoss EAP documentation here. Look under JBoss EAP 4.3

LiveCycle ES Update 1 (8.2.1) has a new cache from Gemstone called Gemfire which is separate from JGroups. See this for more details on Gemfire.

Different JGroups need to use different multicast IP addresses and they need to be unique to the network. Defaults are used. In network environments where more than one JBoss instance is running, these default ip_mcast_addr values can conflict and cause unintended behaviour. Also, the server logs will fill up with WARNING messages such as these ("JJK-LIVECYCLE" is the name I gave to my partition in run.sh):

WARN [org.jgroups.protocols.UDP] discarded message from different group "Tomcat-adobeLIVECYCLE" (our group is "Tomcat-AdobeLiveCycle"). Sender was 10.45.231.213:32770

WARN [org.jgroups.protocols.UDP] discarded message from different group "DefaultPartition" (our group is "JJK-LIVECYCLE"). Sender was 2001:1890:110b:2526:51f7:a810:4589:e8b5:54356

WARN [org.jgroups.protocols.UDP] discarded message from different group "DefaultPartition-SFSBCache" (our group is "JJK-LIVECYCLE-SFSBCache"). Sender was 2001:1890:110b:2526:51f7:a810:4589:e8b5:54359

WARN [org.jgroups.protocols.UDP] discarded message from different group "DefaultPartition-EntityCache" (our group is "JJK-LIVECYCLE-EntityCache"). Sender was 2001:1890:110b:2526:51f7:a810:4589:e8b5:54362

If yours is the only JBoss instance in your local network, you probably will not hit this issue and do NOT need to do anything. But if you do hit conflicts, you need to change one or more of the hard-coded ip_multicast_addresses in multiple locations.

For guidelines from Cisco about allocating IP Multicast addresses, see here. The most restrictive ("Site-Local Scope") is the range 239.255.0.0 to 239.255.254.255

Apache Tomcat Cluster Service (JBoss only)
$JBOSS_HOME/server/all/deploy/jboss-web-cluster.sar/META-INF/jboss-service.xml
This Tomcat service provides HTTP session replication. Change mcast_addr. You might also want to change num_initial_members and jgroups.udp.ip.ttl to 1.

LiveCycle Workspace (WebSphere, WebLogic and JBoss)
Login to the LiveCycle Admin Console (http://server:port/adminui) and navigate to:
Services > LiveCycle Workspace ES > Global Administration
Export global settings to your local disk, edit the file AdminGlobalSetting.xml, and import it back.

LiveCycle Content Services ES (WebSphere, WebLogic and JBoss)
$LC_INSTALL_ROOT/configurationManager/export/
adobe-contentservices.ear/contentservices.war/WEB-INF/classes/
alfresco/jgroups-default.xml

JBoss Cluster Service (JBoss only)
This service provides clustering capability for the JBoss Naming Registry (JNDI) as well as the JBoss EJB Container. $JBOSS_HOME/server/all/deploy/cluster-service.xml is the configuration file.

JBoss Stateful Sessions Beans Cache(JBoss 4.2 only)
$JBOSS_HOME/server/all/deploy/ejb3-clustered-sfsbcache-service.xml is the configuration file. (sfsb = stateful session beans, a type of EJB)

JBoss Entity Beans Cache (JBoss 4.2 only)
$JBOSS_HOME/server/all/deploy/ejb3-entity-cache-service.xml is the configuration file. (entity beans, a type of EJB)

Deploying LiveCycle Components (DSCs) Using a Command Line

| No Comments

In 8.2, the LiveCycle Configuration Manager (LCM) comes in two versions, namely GUI and CLI. In those environments where the use of a GUI is not possible (UNIX environments with no X11), the CLI (Command Line Interface) version comes in handy.

Here is the command to deploy DSCs (Document Service Components) from a command line (in AIX):
./ConfigurationManagerCLI.sh deployLiveCycleComponents -f userValuesforCLI.properties

userValuesforCLI.properties is a text file that contains the required arguments to connect to your appserver instance. A sample is attached. This should be present in the /bin folder ($LC_INSTALL_ROOT/configurationManager/bin/)

Appendix B ("Appendix - LCM Command Line Interface") of the 'Installing and Deploying LiveCycle ES" Guides provide detailed information regarding the use of the LCM CLI version.

Initializing LiveCycle Database Schema Using a Browser

| No Comments

A command line version of LiveCycle Configuration Manager (LCM) is available for those rare occasions when it is not possible to use the GUI version. However, the LiveCycle database schema (tables, indexes, views, sequences etc) can be created using just a browser if the EAR files have already been deployed to your application server and if the application server instance is running.

The URL for User Manager (UM) looks like as follows The host is aix.adobe.com and the web container of the appserver instance hosting LiveCycle listens on port 9080:
http://aix.adobe.com:9080/adobe-bootstrapper/bootstrap?responseType=client
&bootstrapper=UM&step=bootstrap
&host=aix.adobe.com&port=9080&responseLocale=en

In addition to User Manager, you also need to bootstrap CORE, POF, DSC, TS and WF. So the complete URL set is as follows:

User Manager (UM)
http://aix.adobe.com:9080/adobe-bootstrapper/bootstrap?responseType=client
&bootstrapper=UM&step=bootstrap
&host=aix.adobe.com&port=9080&responseLocale=en

Core
http://aix.adobe.com:9080/adobe-bootstrapper/bootstrap?responseType=client
&bootstrapper=CORE&step=bootstrap
&host=aix.adobe.com&port=9080&responseLocale=en

Persistent Object Framework (POF)
http://aix.adobe.com:9080/adobe-bootstrapper/bootstrap?responseType=client
&bootstrapper=POF&step=bootstrap
&host=aix.adobe.com&port=9080&responseLocale=en

Document Service Container (DSC)
http://aix.adobe.com:9080/adobe-bootstrapper/bootstrap?responseType=client
&bootstrapper=DSC&step=bootstrap
&host=aix.adobe.com&port=9080&responseLocale=en

Trust Store (TS)
http://aix.adobe.com:9080/adobe-bootstrapper/bootstrap?responseType=client
&bootstrapper=TS&step=bootstrap
&host=aix.adobe.com&port=9080&responseLocale=en

Workflow (WF)
http://aix.adobe.com:9080/adobe-bootstrapper/bootstrap?responseType=client
&bootstrapper=WF&step=bootstrap
&host=aix.adobe.com&port=9080&responseLocale=en

After copy-pasting each of the above URLs into the browser one after another (the sequence matters) and pressing enter, you should get a one word response saying 'SUCCESS' if the schema creation succeeded. User Manager has the largest number of tables and indexes. Therefore, UM database initialization will take the longest. Also, verify by directly querying the database. If your database is MySQL, you can use these instructions.

The appserver log will also have entries such as follows:

com.adobe.livecycle.bootstrap.bootstrappers.UMBootstrapper bootstrap Bootstrap completed.
com.adobe.livecycle.bootstrap.bootstrappers.CoreBootstrapper bootstrap Bootstrap completed.
com.adobe.livecycle.bootstrap.bootstrappers.PofBootstrapper bootstrap Bootstrap completed.
com.adobe.livecycle.bootstrap.bootstrappers.DSCBootstrapper bootstrap Bootstrap completed.
com.adobe.livecycle.bootstrap.bootstrappers.TrustStoreBootstrapper bootstrap Bootstrap completed.
com.adobe.livecycle.bootstrap.bootstrappers.WFBootstrapper bootstrap Bootstrap completed.

Please also note that some components of LiveCycle ES such as BAM, Content Services, and the Quartz Scheduler create their own database tables and indexes at runtime. So expect to see additional tables in your database on your next server re-start.

Deployment of DSCs is the next major step after database intialization. Unfortunately, there is no browser-based URL to achieve it.

2008 Stats for the LiveCycle Product Blog

| No Comments

We have been tracking the readership patterns of this blog since September 2007 using Google Analytics. People from 157 countries read this blog. Total pageviews for the month of November was 5,720. There were 54,722 pageviews for 2008 which is about 150 pageviews/day.

Here are some interesting observations for the calendar year 2008 (January 1 to December 31).

Geography
--------------
- North America (49%)
- Europe (25%)
- Southern Asia (8%)
- Eastern Asia (4%)
- Australia and New Zealand (4%)
- South America (excluding Central America and the Caribbean) (2%)
- Africa (1%)

Countries
------------
- United States (41%)
- Canada (8%)
- India (8%)
- United Kingdom (4%)
- Australia (3%)

Browsers
------------
Although the majority of this blog's readers use Microsoft Internet Explorer, Firefox is a close second.

- Microsoft Internet Explorer (53%)
- Mozilla Firefox (40%)
- Apple Safari (3.5%)
- Google Chrome (1.4%)
- Opera (1.3%)

Operating Systems
-----------------------
The vast majority of the readers use some version of Windows as their operating system.

- Windows (92%)
- Macintosh (6%)
- Linux (2.3%)

Search Engines
-------------------
The vast majority of those who used a search engine to find this blog used Google.

- Google (97.5%)
- Yahoo (1.0%)
- Microsoft Live (0.7%)
- Microsoft MSN (0.4%)

Search Keywords
-----------------------
The top 5 search keywords used were:

- "adobe livecycle"
- "adobe lifecycle"
- "adobe livecycle designer"
- "adobe reader 9 download"
- "adobe 9 download"

Content
---------
The top 5 most popular entries were as follows:

- Running Multiple JBoss Instances On Same Server (Oct 2006)
- LiveCycle - Sample JBoss run.bat Settings (Mar 2008)
- Adobe Reader 9 Download (Jul 2008)
- Configuring JBoss on Windows 2003 to Startup on Server Reboot (Oct 2006)
- A Brief History of Adobe LiveCycle (Apr 2008)

Referring Sites
------------------
The top 5 referring sites were:

- adobe.com
- adobeforums.com
- google.com
- weblogs.macromedia.com
- forms.stefcameron.com

Screen Resolutions
-----------------------
- 1280x1024 (26%)
- 1024x768 (21%)
- 1280x800 (11.2%)
- 1680x1050 (10.8%)
- 1440x900 (9%)

About this Archive

This page is an archive of entries from January 2009 listed from newest to oldest.

December 2008 is the previous archive.

February 2009 is the next archive.

Find recent content on the main index or look in the archives to find all content.