Pages

Jetty | Define context path and port

Jetty default, runs on the port 8080 and no context path. Well, while developing projects, we often want to define context path and some other port to occupy. Here's how we could do it.

          <plugin>
                <groupId>org.mortbay.jetty</groupId>
                <artifactId>jetty-maven-plugin</artifactId>
                <configuration>
                    <webApp>
                        <contextPath>/custom-path</contextPath>
                    </webApp>
                    <connectors>
                        <connector implementation="org.eclipse.jetty.server.nio.SelectChannelConnector">
                            <port>PLACEHOLDER_CAS_HTTP_PORT</port>
                        </connector>
                    </connectors>
                    <stopPort>PLACEHOLDER_CAS_STOP_PORT</stopPort>
                    <stopKey>foo</stopKey>
                </configuration>
            </plugin>

Oracle query to break one row into multiple rows in sql

There are often the requirement of writing complex queries where one row needs to be divided into multiple rows in one sql statements. The "connect by" keywords could be used in such cases.

select level from dual connect by level < 10;