Note that there are some explanatory texts on larger screens.

plurals
  1. POEmbedded jetty maven profile.xml
    primarykey
    data
    text
    <p>I try to start jetty in embedded form but i have problems</p> <p>I need to read properties values in profile.xml before embedded jetty starts. </p> <p>Any suggestions ?</p> <p>Here is profile.xml's content</p> <pre><code>..... &lt;profile&gt; &lt;id&gt;local-dev&lt;/id&gt; &lt;activation&gt; &lt;activeByDefault&gt;false&lt;/activeByDefault&gt; &lt;/activation&gt; &lt;properties&gt; &lt;!-- Common Security Framework Properties --&gt; &lt;security.context.file&gt;applicationContext-security-csf.xml&lt;/security.context.file&gt; &lt;csf.jndi.name&gt;jdbc/securityDS&lt;/csf.jndi.name&gt; &lt;csf.security.system.admin.roleId&gt;884&lt;/csf.security.system.admin.roleId&gt; &lt;csf.cas.url&gt;tkvwasa01.secure.kodcu.com&lt;/csf.cas.url&gt; &lt;application.service.url&gt;localhost:8080/pqis-admin&lt;/application.service.url&gt; &lt;/properties&gt; &lt;/profile&gt; </code></pre> <p>At maven side i can activate above profile (local-dev) like</p> <p>mvn jetty:run local-dev</p> <p>but how can i activate above profile (local-dev) when i use Embedded Jetty ? </p> <p>Embedded Jetty 's code : </p> <pre> <code> public class Start { public static void main(String[] args) throws Exception { Server server = new Server(); SocketConnector connector = new SocketConnector(); // Set some timeout options to make debugging easier. connector.setMaxIdleTime(1000 * 60 * 60); connector.setSoLingerTime(-1); connector.setPort(8080); server.setConnectors(new Connector[] { connector }); WebAppContext bb = new WebAppContext(); bb.setServer(server); bb.setContextPath("/"); bb.setWar("src/main/webapp"); ..... } } </code> </pre> <p>Thanks.</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload