Monday, June 29, 2009

Installing JBoss server and application using IA

[Question]

How can I modify the port number in JBoss server using InstallAnywhere. I install JBoss-3.2.7.zip with IA, I get a user input for the Port Number and I know that the port number has to be set in the file server.xml inside the JBoss-3.2.7.zip. Should I use the action 'Modify Text File in Archive' action to replace the port? I can use the variable  $PORT_NUMBER$ to replace the existing port number. But don't know how to use it in the action to search for the line
 
Connector port="8080" address="${jboss.bind.address}

[ANSWER]

If you are installing JBoss using InstallAnywhere  add action in your project modify files in Archive. In your case its a bundled archive so select installed archive then click configure, 
In the configure frame update  search for  "${jboss.bind.address}" and fill the replace with "<your desired port number>"

Once this activity is done add the extract archive action to actually install your JBoss server zip.

An alternative approach to this problem would be to deflate the archive and then add an action to modify ASCII file with the above data.
       If you want to deploy your application using InstallAynwhere go to the Organization -> Hosts tab of Advanced designer click on add host. Choose application server from the choice (there will be two hosts listed over there DataBase Host and Application Server host)
Once Application server host is added to the project in Host section, fill up the necessary details like in your case choose JBoss 4.0.5 or newer and then select "Server Path".
Once done go to the Install Section of the Advanced designer and add an Action to deploy war file.

No comments: