Questions tagged [grizzly]

The Grizzly NIO and Web framework leverage Java™ NIO API capabilities. Grizzly's helps developers to build scalable and robust servers using NIO and we are also offering extended framework components: Web Framework (HTTP/S), Bayeux Protocol, Servlet, HttpService OSGi and Comet.

The Grizzly NIO and Web framework leverage Java™ NIO API capabilities. Grizzly's helps developers to build scalable and robust servers using NIO and is also offering extended framework components: Web Framework (HTTP/S), Bayeux Protocol, Servlet, HttpService OSGi and Comet.

Resources:

482 questions
7
votes
3 answers

Websocket SSL handshake failure

I have spring-boot Tomcat server for secure websocket connections. The server accepts Android 4.4, iOS, Firefox, and Chrome clients without failure with an authority-signed certificate. Android 5.0, however, fails the SSL handshake. Caused by:…
mattm
  • 5,851
  • 11
  • 47
  • 77
7
votes
1 answer

Jersey + HK2 + Grizzly: Proper way to inject EntityManager?

I've managed to set up injection (into resource classes) of my own service classes in Jersey, HK2 and a plain GrizzlyServer. (Basically followed this example.) I'm now curious what the best is to inject JPA EntityManagers into my resource classes?…
aioobe
  • 413,195
  • 112
  • 811
  • 826
7
votes
2 answers

jersey 2.2: ContainerResponseFilter and ContainerRequestFilter never get executed

Following the getting started guide on the Jersey website: I executed the following build command: $ mvn archetype:generate -DarchetypeArtifactId=jersey-quickstart-grizzly2 \ -DarchetypeGroupId=org.glassfish.jersey.archetypes -DinteractiveMode=false…
bey
  • 161
  • 1
  • 1
  • 8
7
votes
2 answers

How to use jersey 2.0 guice on grizzly

I want to use Guice + Jersey 2.0 on Grizzly. According to this How to use guice-servlet with Jersey 2.0? discussion there is no direct Guice integration for Jersey2 at present but it can be achieved using HK2 as a bridge. I also checked the sample…
kasto_manche
  • 210
  • 3
  • 8
7
votes
1 answer

Running code before and after all tests in a surefire execution

I have a Grizzly HttpServer that I want to run for the entire duration of a test group execution. Additionally, I want to interact with the global HttpServer instance from a @Rule inside the tests themselves. Since I'm using Maven Surefire rather…
hertzsprung
  • 9,445
  • 4
  • 42
  • 77
7
votes
6 answers

Grizzly - java.lang.NoSuchMethodError: javax.xml.ws.WebFault.messageName

I have a wsdl file for the Web service. I want to test the interaction between the client and the server. To do this, I run the mock server with embedded grizzly. The question about of implementing mock server. I generated an interface from wsdl…
Anthony Tsivarev
  • 881
  • 3
  • 13
  • 25
7
votes
1 answer

Is it possible to setup Grizzly for graceful shutdown?

I have a Jersey application running on embedded Grizzly, that is initialized like the following: HttpServer httpServer = GrizzlyServerFactory.createHttpServer(BASE_URI, rc); What i want to achieve is let the running requests finish when shutting…
lithium
  • 995
  • 7
  • 13
7
votes
3 answers

Running Jersey on Grizzly on Linux and Windows

I come from a Windows .NET background, but am trying to expand my expertise, and so have picked up a few Java projects. Currently, I'm trying to create a REST API, and so I decided to go through the walk through for Jersey here:…
Ryan Caskey
  • 607
  • 8
  • 20
6
votes
2 answers

how do I enable POJO-mapping programatically in Jersey using Grizzly2?

Following the instructions here I have this code: private static URI getBaseURI() { return UriBuilder.fromUri("http://localhost/").port(9998).build(); } public static final URI BASE_URI = getBaseURI(); protected static HttpServer startServer()…
sanity
  • 35,347
  • 40
  • 135
  • 226
6
votes
0 answers

How to Periodically Send a HTTP Status Code 102 Processing Response through Grizzly

I have a Java application which runs on top of Grizzly web server. I already call Response.suspend() and run the request in a background thread. This much works great. Here's some example code of this. import…
Nathan
  • 8,093
  • 8
  • 50
  • 76
6
votes
0 answers

Adding Filter to Grizzly FilterChain in Glassfish

Is it possible to add a filter to the Glassfish 4.1 (Payara) internal FilterChain instance? My intent is unified logging at the network level.
Ynv
  • 1,824
  • 3
  • 20
  • 29
6
votes
1 answer

Combine Jersey with Tyrus

I have a Jersey JAX-RS application which runs on a Grizzly instance: public class Application { public static final String BASE_URI = "http://127.0.0.1:8080/rest"; public static void main(String[] args) throws IOException { …
Giovanni Lovato
  • 2,183
  • 2
  • 29
  • 53
6
votes
1 answer

Glassfish 4 Grizzly Threads Heavy CPU usage

I have a Jersey application running on Glassfish 4 (4.1 build 13), JDK 1.7 update 67 and AWS Linux AMI and I'm noticing that after some hours running it, CPU usage goes up and stays up even though clients are stopped. Running "top -H" identifies 2…
user3112808
  • 93
  • 1
  • 4
6
votes
3 answers

can't get started with jersey user guide

Help me please. I tried for a long time to start rest app example, but I can't do this. Using jersey user guide I'm get stuck with it.Here is example: package com.example; import javax.ws.rs.client.Client; import…
Nikolas
  • 2,322
  • 9
  • 33
  • 55
6
votes
1 answer

Serving static content with grizzly's StaticHttpHandler from within a .jar

I want Grizzly to serve static files from within a .jar, which contains a JAX-RS application, Grizzly and all other libs. I'm using org.glassfish.grizzly.http.server.StaticHttpHandler to serve the static files. public class Main { // ... …
deamon
  • 89,107
  • 111
  • 320
  • 448
1 2
3
32 33