ColdFusion MX 6.1 J2EE Configuration on JRun: Automatically starting multiple instances
Issue
When installing the 'ColdFusion MX with JRun4' option, Windows services will be created for the cfusion, admin, and default servers. In a simple JRun install, Windows services will be installed for the default and admin servers if the option to install as a Windows service was chosen. JRun does not automatically define Windows services for new servers.
Solution
On a Windows configuration, new JRun servers must be configured as Windows services in order for them to automatically start upon a reboot of the server.
To define a JRun server as a Windows service, use the jrunsvc utility:
- From the command prompt, change directories into thejrun_root\bin directory.
For example:cd \jrun4\bin - Run the following command:
jrunsvc -install jrun_server [service-name [service-display [service-description]]]
For example:
jrunsvc -install cfmx myCFMXInstance instance1"myCFMXInstance"
For more information on jrunsvc options, runjrunsvc -hat the command line - Open the Services Control Panel: Start > Settings > Control Panel > Administrative Tools > Services.
- You should now see your new service,instance1, in the list of the services.
- Set the Startup type to Automatic:
- Right-click the newly created service.
- Select Properties.
- On the General tab, from the Startup type drop-down menu, choose Automatic.
- Click Apply, then OK.
Additional Information
Related TechNotes:
- ColdFusion MX 6.1 J2EE on JRun: Error when starting CFMX instances (19094)
- Installing JRun as a Windows service
This content requires Flash
To view this content, JavaScript must be enabled, and you need the latest version of the Adobe Flash Player.
Download the free Flash Player now!
