let's server your data
TRANSCRIPT
Let’s serve your data
Frank van der Linden
About me• Freelance Java and web developer, with
XPages experience
• Owner of Elstar IT
• Frequent (trail)runner
Roadmap• Theory
• Prepare
• Develop
• Test
• Deploy
Theory
What is a servlet• Java program to extends the capabilities of a
server
• Servlets provide a component-based, platform-independent method for building Web-based applications
• Servlets run in web containers, Servlet containers
Structure and architecture
Lifecycle
XAgent a sort of servlet
Servlet in NSF• excellent series of Eric McCormick
• https://edm00se.io/servlet-series/
Servlet as OSGi plugin
• run server wide
• Code can be shared with other processes like DOTS, XPages.
• With a little change it run also on other Java servers, like Tomcat, WildFly(a.k.a. Boss) and Websphere
OSGi architecture
Prepare
Prepare• Download IDE e.g. Eclipse JEE
• Set Target platform
• Install PDE Debug plugin
• Create com.ibm.notes.java.api project
Target platform
Target platform
Target platform
PDE plugin
PDE plugin
PDE plugin
com.ibm.notes.java.api
Develop
my goals• Create a Shared code plugin
• Create a web app plugin to which use the shared code
• Create a OSGi servlet which also use the shared code
Set up
Set up
Develop
Develop
Develop
show some code
Logging• Build in via java.util.logging.Logger
• Log an error to the console….
Logging• ….log to a file, by adding a (File) handler
Test
Test
Test
Test
Test
• tell http quit
• load http
Warning• After testing remove the pre.launch.ini from
your workspace directory of the Domino server
Deploy
Deploy• 2 ways of deployment
• as deployable jar
• as an update site.
As deployable jar• Export as deployable plugin…
• Put the jar in the correct directory on the server
• tell http quit —> load http
As update site• Create Feature project, add plugin projects
• Create Update site project, add Feature project
• Add update site to update site database
• tell http quit —> load http
let’s deploy it
Thank you
https://bitbucket.org/flinden68/lets-serve-your-data