Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

java jersey rest server with main method?

i need to implement as a part of my application, a http server. i love the way jersey works and im pretty good at its coding. is there any way i can implement this kind of server that will be standalone and will just run from main method and i can use it as as jersey

@GET
@Path("/{screen_name}")
@Produces(MediaType.TEXT_PLAIN)

etc..

is there a way to implement it or is there allready some good implementation?

i looked for it for 2 months but i cant find anything

like image 290
Dima Avatar asked Nov 04 '22 06:11

Dima


1 Answers

i used Perceptions answer, worked perfectly with the grizzly, JAX-RS with embedded server

thank you very much

like image 53
Dima Avatar answered Nov 14 '22 23:11

Dima