Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

SOLVED

Enable RMI connection to the AEM repository

Avatar

Employee

Hello,

we are trying to enable RMI access to our CRX.

My understnding is that we need to need the following setup:

 

In order to set up RMI, you will need to change the configuration in the CRX instance. Here are the steps:

Go to : Your_CRX_Folder/server/runtime/0/_crx/WEB-INF/web.xml and uncomment following code, we will need to make sure that the port is 6600 or any other port you wish to have, but that port should be open.

 

    <!--

        RMI configuration

    -->

    <init-param>

      <param-name>rmi-port</param-name>

      <param-value>6600</param-value>

      <description>

        The RMI port for registering the repository in the RMI Registry.

        If equals 0, the default port is used. Omit this parameter to

        disable RMI server entirely.

      </description>

    </init-param>

 

 

We need to mofidy this parameter but not by updates to the  the runtime folder. We would like to have these change scripted as part of the installation of the CQ jar. That will allow us to avoid manual configurations of CQ on each of our environments.

I assume I should extract the jar and make the change and bundle it again but I could not found the a web.xml in the quick start jar.

 

We are using CQ5.4

 

Thanks,

Lior

1 Accepted Solution

Avatar

Correct answer by
Employee

Just to summerize the discussion

 

  1. For setting up a new instance with RMI enabling the procedure would be [0]
  2. For existing instance it is advised to modify directly at Your_CRX_Folder/server/runtime/0/_crx/WEB-INF/web.xml
  3. Enhancement request has been placed to configure rmi port from system properties

 

[0]   

  • Unpack the cq quickstart jar
  • In the extracted path go to the folder /etc/server/webapps/
  • Extract the war file crx-explorer_crx.war
  • Modify The web.xml at /WEB-INF/ folder
  • Repackage the crx-explorer_crx.war and the quickstart
  • Use the new quickstart jar

View solution in original post

1 Reply

Avatar

Correct answer by
Employee

Just to summerize the discussion

 

  1. For setting up a new instance with RMI enabling the procedure would be [0]
  2. For existing instance it is advised to modify directly at Your_CRX_Folder/server/runtime/0/_crx/WEB-INF/web.xml
  3. Enhancement request has been placed to configure rmi port from system properties

 

[0]   

  • Unpack the cq quickstart jar
  • In the extracted path go to the folder /etc/server/webapps/
  • Extract the war file crx-explorer_crx.war
  • Modify The web.xml at /WEB-INF/ folder
  • Repackage the crx-explorer_crx.war and the quickstart
  • Use the new quickstart jar