--
You received this message because you are subscribed to the Google Groups "Genson user group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to genson+un...@googlegroups.com.
To post to this group, send email to gen...@googlegroups.com.
Visit this group at http://groups.google.com/group/genson.
To view this discussion on the web visit https://groups.google.com/d/msgid/genson/59dccc25-dcb0-4c86-b15c-d4ca46cacc98%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
To view this discussion on the web visit https://groups.google.com/d/msgid/genson/11b62817-beb2-4c68-a4fb-e9342fab9b81%40googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/genson/56832cf8-615f-490b-996d-1290ff5162bc%40googlegroups.com.
Are you using jersey with jetty ? Which version for them ?
To view this discussion on the web visit https://groups.google.com/d/msgid/genson/0de2c90b-3bab-4914-bf9c-75f20d7984dc%40googlegroups.com.
https://jersey.java.net/documentation/latest/deployment.html.
It looks like you can do something similar to:RI baseUri = UriBuilder.fromUri(
"http://localhost/"
).port(
9998
).build();
ResourceConfig config =
new
ResourceConfig(MyResource.
class
); // here it becomes easy you can register all your components
Server server = JettyHttpContainerFactory.createServer(baseUri, config);
To view this discussion on the web visit https://groups.google.com/d/msgid/genson/f0496ed7-bd62-419f-9a52-4d86af2d0109%40googlegroups.com.
Try to have a look at the source code of JettyHttpContainerFactory as they probably do there what you need.
To view this discussion on the web visit https://groups.google.com/d/msgid/genson/9e12a337-6542-48cd-b4f2-434d2325a40c%40googlegroups.com.