1

Can a Javascript library (Dojo, JQuery and/or other personal developed libraries) be used as shared libraries in a Websphere Liberty serve ?

For example, i would like to save the .js in C:\wlp\usr\shared\resources or C:\wlp\usr\servers\srmtest\resources and load the library from there in two or three different applications deployed in the server.

Thanks

1 Answer 1

1

Not without writing code. If you write a Servlet that reads files from that location and serves them up then that would work, but Javascript libraries will only be served up from a war file.

If you want to simply share these libraries between multiple applications you could deploy a war file that contains these and just reference it using a different context root for this war.

1
  • Thanks. The objective was to keep it simple to maintain some common libraries that will be used for more than one application and developer, by having one developer just copy toe updated libraries to the common folder and other apps will use them without further intervention.
    – sjrm
    Jun 18, 2015 at 21:12

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.