Skip to content

Conversation

@Azquelt
Copy link
Contributor

@Azquelt Azquelt commented Nov 2, 2015

Add a new simple servlet which displays a welcome page with the number
of assets in the server. This serves as a simple IVT and also allows
monitoring tools to work in the default configuration where they attempt
to retrieve the application root.

Adding the new servlet required moving the root of the JAX-RS
application from '/' to '/ma/v1' which resulted in some additional code
changes.

As a nice side-effect, I also made the BaseURL configuration a little
more friendly so that it will work whether or not it ends with a slash.

Also changed AssetServiceLayer from Singleton to ApplicationScoped. Singleton is not a CDI scope, so presumably AssetServiceLayer was being injected as a dependant bean which is not what we want, especially if anyone actually tries to Serialize the FrontPageServlet.

Add a new simple servlet which displays a welcome page with the number
of assets in the server. This serves as a simple IVT and also allows
monitoring tools to work in the default configuration where they attempt
to retrieve the application root.

Adding the new servlet required moving the root of the JAX-RS
application from '/' to '/ma/v1' which resulted in some additional code
changes.

As a nice side-effect, I also made the BaseURL configuration a little
more friendly so that it will work whether or not it ends with a slash.

Updated the method names on Configuration to better clarify what they
actually do.

Changed AssetServiceLayer from `Singleton` to `ApplicationScoped`.
Singleton is not a CDI scope, so presumably AssetServiceLayer was being
injected as a dependant bean which is not what we want, especially if
anyone actually tries to Serialize the FrontPageServlet.
idlewis added a commit that referenced this pull request Nov 4, 2015
Add a front page to LARS displaying the server status
@idlewis idlewis merged commit 4854e2b into WASdev:master Nov 4, 2015
@Azquelt Azquelt deleted the front-page branch December 3, 2015 09:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants