Skip to content

Is it feasible to piggy-back onto Model Server's Jetty (Javalin) instance? #83

Answered by planger
glsp-bot asked this question in ModelServer
Discussion options

You must be logged in to vote

While it is possible to run multiple jetty instances listening to different ports, I'd think the best approach -- especially when your services need to access the modelserver anyway -- is to extend the modelserver's javalin instance with additional endpoints.
An example for this is linked below. This example is likely based on a newer version of the modelserver than is used in the coffee editor, but here additional routings are registered:
https://github.com/eclipsesource/uml-glsp/blob/23172c4c1a4365bcf53946025c8c08367a2e597c/server/com.eclipsesource.uml.modelserver/src/main/java/com/eclipsesource/uml/modelserver/UmlModelServerModule.java#L80
https://github.com/eclipsesource/uml-glsp/blob…

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by planger
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants