Hide Forgot
20110525-1028 /CustomSearchTopics.xhtml People are starting to do development work and to run test instances. We need a banner on the live production instance that clearly indicates that it's the live one, and we need a single place to switch it on and off, so that development / test instances that run against a different database can switch it off. Maybe a banner that is switchable between red "This is the live production instance" and green "This is a test development instance" I am going to start producing builds of a Skynet appliance for people to play with, so I'd like to be able to flick a switch in the source code, and then export a war that announces: "I'm not running against the production database". The banner needs to be on all pages. I can imagine a scenario where someone has a dev instance and the prod instance open in browser windows, and gets confused about which is which, and runs some massive tagging query against the production dataset.....
Fixed in 20110530-1321 The text "CONNECTED TO PRODUCTION DATABASE" is shown on the top bar when the database connection url contains the string jboss-eap.bne.redhat.com.
Verified on jboss-eap and my local build running against a local database.