[jboss-user] [JBoss Tools] - Re: Best practices for openshift express and tools
Scott Stark
do-not-reply at jboss.com
Sat Sep 24 17:05:05 EDT 2011
Scott Stark [http://community.jboss.org/people/starksm64] created the discussion
"Re: Best practices for openshift express and tools"
To view the discussion, visit: http://community.jboss.org/message/628395#628395
--------------------------------------------------------------
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.
There are a number of issues that I'm facing that we should try to make easier.
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,
http://localhost:8080/idp http://localhost:8080/idp deployes to http://idp-sstark.dev.rhcloud.com/ http://idp-sstark.dev.rhcloud.com/
Now I can certainly just use the same default context root of idp so that the url for the express app is http://idp-sstark.dev.rhcloud.com/idp/ http://idp-sstark.dev.rhcloud.com/idp/, 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.
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:
<PicketLinkSP xmlns="urn:picketlink:identity-federation:config:1.0" ServerEnvironment="tomcat">
<IdentityURL>${idp.url:: http://localhost:8080/idp/ http://localhost:8080/idp/}</IdentityURL>
<ServiceURL>${employee.url:: http://localhost:8080/employee/ http://localhost:8080/employee/}</ServiceURL>
</PicketLinkSP>
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.
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/628395#628395]
Start a new discussion in JBoss Tools at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2128]
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-user/attachments/20110924/4dcfd1b4/attachment.html
More information about the jboss-user
mailing list