<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<body link="#355491" alink="#4262a1" vlink="#355491" style="background: #e2e2e2; margin: 0; padding: 20px;">

<div>
        <table cellpadding="0" bgcolor="#FFFFFF" border="0" cellspacing="0" style="border: 1px solid #dadada; margin-bottom: 30px; width: 100%; -moz-border-radius: 6px; -webkit-border-radius: 6px;">
                <tbody>
                        <tr>

                                <td>

                                        <table border="0" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF" style="border: solid 2px #ccc; background: #dadada; width: 100%; -moz-border-radius: 6px; -webkit-border-radius: 6px;">
                                                <tbody>
                                                        <tr>
                                                                <td bgcolor="#000000" valign="middle" height="58px" style="border-bottom: 1px solid #ccc; padding: 20px; -moz-border-radius-topleft: 3px; -moz-border-radius-topright: 3px; -webkit-border-top-right-radius: 5px; -webkit-border-top-left-radius: 5px;">
                                                                        <h1 style="color: #333333; font: bold 22px Arial, Helvetica, sans-serif; margin: 0; display: block !important;">
                                                                        <!-- To have a header image/logo replace the name below with your img tag -->
                                                                        <!-- Email clients will render the images when the message is read so any image -->
                                                                        <!-- must be made available on a public server, so that all recipients can load the image. -->
                                                                        <a href="http://community.jboss.org/index.jspa" style="text-decoration: none; color: #E1E1E1">JBoss Community</a></h1>
                                                                </td>

                                                        </tr>
                                                        <tr>
                                                                <td bgcolor="#FFFFFF" style="font: normal 12px Arial, Helvetica, sans-serif; color:#333333; padding: 20px;  -moz-border-radius-bottomleft: 4px; -moz-border-radius-bottomright: 4px; -webkit-border-bottom-right-radius: 5px; -webkit-border-bottom-left-radius: 5px;"><h3 style="margin: 10px 0 5px; font-size: 17px; font-weight: normal;">
    Re: Best practices for openshift express and tools
</h3>
<span style="margin-bottom: 10px;">
    created by <a href="http://community.jboss.org/people/starksm64">Scott Stark</a> in <i>JBoss Tools</i> - <a href="http://community.jboss.org/message/628395#628395">View the full discussion</a>
</span>
<hr style="margin: 20px 0; border: none; background-color: #dadada; height: 1px;">

<div class="jive-rendered-content"><p>Where do I setup the server adapter? I see the jboss tools runtime detection, but don't really find the as7 server adapter or settings your talking about.</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>There are a number of issues that I'm facing that we should try to make easier.</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>1. I can easily run all 5 wars in the same local runtime each with unique localhost based urls using the context-root resulting from the war deployment name. These are mapped to 5 different express applications and need to have an updated jboss-web.xml that specified a / context-root since each application already has a unique dns name, for example, </p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p><a class="jive-link-external-small" href="http://localhost:8080/idp" target="_blank">http://localhost:8080/idp</a><span> deployes to </span><a class="jive-link-external-small" href="http://idp-sstark.dev.rhcloud.com/" target="_blank">http://idp-sstark.dev.rhcloud.com/</a></p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p><span>Now I can certainly just use the same default context root of idp so that the url for the express app is </span><a class="jive-link-external-small" href="http://idp-sstark.dev.rhcloud.com/idp/" target="_blank">http://idp-sstark.dev.rhcloud.com/idp/</a><span>, but I'm looking into things users would want to do with a local vs paas deployment of their application. Currently I achieve this by exporting the war to the express app deployments directory, and then run an ant fixup script that overwrites the ipd.war/WEB-INF/jboss-web.xml with another that overrides the context-root. I know I mentioned the need to have an exported context-root differ from what is deployed locally in another thread. If in the M4 there could be a setting that allowed one to specifiy an alternate jboss-web.xml (like the jboss-web-express.xml I use), that would overwrite the current WEB-INF/jboss-web.xml whent the war is exported, that would be helpful.</span></p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>2. The application I'm working on have references to each other, and as such, have pages/configuration that reference either a property or a default localhost based url. For example:</p><p class="p1"><span class="s1">&lt;</span><span class="s2">PicketLinkSP</span><span class="s3"> </span><span class="s4">xmlns</span><span class="s3">=</span>"urn:picketlink:identity-federation:config:1.0"<span class="s3"> </span><span class="s4">ServerEnvironment</span><span class="s3">=</span>"tomcat"<span class="s1">&gt;</span></p><p class="p2"> <span class="s1">&lt;</span><span class="s2">IdentityURL</span><span class="s1">&gt;</span><span>${idp.url::</span><a class="jive-link-external-small" href="http://localhost:8080/idp/" target="_blank">http://localhost:8080/idp/</a><span>}</span><span class="s1">&lt;/</span><span class="s2">IdentityURL</span><span class="s1">&gt;</span></p><p class="p2"> <span class="s1">&lt;</span><span class="s2">ServiceURL</span><span class="s1">&gt;</span><span>${employee.url::</span><a class="jive-link-external-small" href="http://localhost:8080/employee/" target="_blank">http://localhost:8080/employee/</a><span>}</span><span class="s1">&lt;/</span><span class="s2">ServiceURL</span><span class="s1">&gt;</span></p><p class="p3"><span class="s1">&lt;/</span>PicketLinkSP<span class="s1">&gt;</span></p><p class="p3"><span class="s1"><br/></span></p><p>Now I set the idp.url and employee.url settings in the express app .openshift/conf/standalone.xml server configuration file. It would be nice if there was a dual notion for the jboss as7 server runtime that allowed you to edit a local vs paas view. Right now there is an XML Configuration section under the server with just a Ports section. If there were Local and PaaS sections where two standalone.xml configuration could be managed that would be helpful.</p></div>

<div style="background-color: #f4f4f4; padding: 10px; margin-top: 20px;">
    <p style="margin: 0;">Reply to this message by <a href="http://community.jboss.org/message/628395#628395">going to Community</a></p>
        <p style="margin: 0;">Start a new discussion in JBoss Tools at <a href="http://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2128">Community</a></p>
</div></td>
                        </tr>
                    </tbody>
                </table>


                </td>
            </tr>
        </tbody>
    </table>

</div>

</body>
</html>