I'm trying to start Play application (2.5 version) within a standalone Java app. The idea is to start an embedded web server that hosts the play based web service and then Java app will communicate with it. I found https://www.playframework.com/documentation/2.5.x/JavaEmbeddingPlay Is there any specific documentation on how to achieve this ? |
Server server = Server.forRouter(new RoutingDsl()
.GET("/hello/:to").routeTo(to ->
ok("Hello " + to)
)
.build(),
Mode.DEV, 19000
);--
You received this message because you are subscribed to the Google Groups "play-framework" group.
To unsubscribe from this group and stop receiving emails from it, send an email to play-framewor...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/play-framework/874de79e-7407-4ae6-bc0b-5241a661fda4%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Thank you . But I have already defined routes in my play app. why it is requried to define it again ?
--
You received this message because you are subscribed to the Google Groups "play-framework" group.
To unsubscribe from this group and stop receiving emails from it, send an email to play-framewor...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/play-framework/a2ca8970-2609-4746-afa0-06e9a09b2444%40googlegroups.com.