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
0
votes
1 answer

Service not being correctly autowired - annotation-based configuration

I'm using annotation-based configuration - no XML at all. I've configured everything, but can't figure out why OrderService is not being autowired and continues to be null. The class below at the very bottom is the one that shows the actual…
Ben
  • 60,438
  • 111
  • 314
  • 488
0
votes
1 answer

How to create a DAO/Service layer with Grizzly/JAX-RS

I'm using Grizzly instead of Glassfish for this JAX-RS application. I'm new to this technology so I've been googling around a lot and can't seem to find a good outline for how to setup a Service/DAO layer in my applicatiion. Below is the working…
Ben
  • 60,438
  • 111
  • 314
  • 488
0
votes
1 answer

Binding different Grizzly HttpHandlers to different NetworkListeners

The Grizzly documentation states that all HttpHandlers added to the ServerConfiguration will be shared across all listeners Is there another way of binding different handlers to different ports? Or will I have to multiply instantiate…
hertzsprung
  • 9,445
  • 4
  • 42
  • 77
0
votes
1 answer

Using Grizzly with JMS/ActiveMQ

I'm working on proof-of-concept project designed to explore the benefits of offloading work from a NIO server to a message queue for backend processing. I'm using Grizzly for the NIO boilerplate stuff, and Spring Integration for the messaging (with…
user1283068
  • 1,694
  • 4
  • 15
  • 25
0
votes
2 answers

Double HTTP-Status header on HTTP-POST to Jersey

I wrote a simple Grizzly/Jersey application, which you can find here: https://github.com/boldt/stackoverflow-14526627 I want to post some form data: curl -X POST -F "name=test" -i http://localhost:9999/files I'm getting the following…
Dennis
  • 4,011
  • 7
  • 36
  • 50
0
votes
1 answer

Telnet to the EchoServer Grizzly sample application

I've been working on a server application that will over time receive quite a lot of connections. In order to be able to handle this I have been implementing a non blocking design using the standard java NIO classes. But there are a lot of details…
user1283068
  • 1,694
  • 4
  • 15
  • 25
0
votes
1 answer

How to multithread in Grizzly

I'm implementing a Java RESTful webservice on Heroku. Currently my entry point looks like public class Main { public static final String BASE_URI = getBaseURI(); public static void main( String[] args ) throws Exception { …
Luke
  • 1,053
  • 2
  • 16
  • 26
0
votes
2 answers

Easiest way to make chat using commet in glassfish and servlet

I am looking for working example of chat application using glassfish and comet. I expect that when one client will update data in server , the other clients will also see the data witout refreshing the page. Or any push notification that the data…
App Work
  • 21,899
  • 5
  • 25
  • 38
0
votes
1 answer

Java EE 6 Grizzly Comet Engine Single User Notify

I am working on a project which requires server-sided pushes similiar to websockets. Of course websockets arent supported in EE6, so I integrated the grizzly Comet Long Polling mechanism. The project is running on a glassfish 3.1.2. My problem is,…
Sticks
  • 71
  • 1
  • 5
0
votes
1 answer

Stopping streamed Comet connections being buffered by a proxy or reverse proxy?

I have a chat-like application which uses Grizzly Comet in Glassfish and the HTTP streaming ("forever iframe") technique. It works when the browser is directly connected, but not if there is a reverse proxy in between them. It seems the reverse…
Robin Green
  • 32,079
  • 16
  • 104
  • 187
0
votes
1 answer

HTTP Streaming using Grizzly Comet in Glassfish doesn't work in Firefox

I have a Java chat-like application using Comet using Grizzly Comet, which works in Chrome but not in Firefox (latest versions of both). It uses the HTTP streaming method, sending Javascript snippets down to a hidden iframe ("forever frame") to be…
Robin Green
  • 32,079
  • 16
  • 104
  • 187
0
votes
1 answer

Grizzly and Jersey standalone transport data very slow, and how to improve/configurate it?

I am using Jersey 1.12 with Grizzly, using Jackson to generate JSON output. If the generated result is much bigger, then the data transport speed is very slow. I run the server and client on the same box, and the transport speed for 350KB data is…
George
  • 4,029
  • 2
  • 22
  • 26
0
votes
1 answer

grizzly jaxws schemaLocation

i'm publishing a soap ws api from within my java app. so far i've used the jdk built-in http server, like so: Endpoint.publish("http://www.example.com:80/soap/v1/foo", myWebService); and all worked fine. now switching to grizzly. my code is based on…
Gonfi den Tschal
  • 1,754
  • 1
  • 20
  • 29
-1
votes
1 answer

do I need to restart the server every time i change a resource?

I want to know if every time I make any changes to a resource, do I need to restart the server? I am inexperienced in the area, I would like content for best practice to build an API.
-1
votes
1 answer

Jersey REST + Grizzly webservice, Uploading file error

This is what I have in order to upload a file @POST @Path("/uploadFile") @Consumes(MediaType.MULTIPART_FORM_DATA) @Produces(MediaType.TEXT_PLAIN) public Response uploadFileSuite(@HeaderParam("Access-Control-Allow-Origin") …
1 2 3
32
33