Questions tagged [undertow]

Undertow is a high performance non-blocking webserver that is the new web server in Red Hat's WildFly.

Website: http://undertow.io/

526 questions
0
votes
2 answers

How to work with Resteasy interceptor with Undertow

Resteasy interceptor implements the ContainerRequestFilter. But the undertow DeploymentInfo's addFilter needs the Filter Class needs to implemented. How to solve this issue? we have to write as Filter only? If that is the case I need to know about…
vimal prakash
  • 1,503
  • 1
  • 22
  • 38
0
votes
0 answers

How can I dispatch from a worker thread back to the XNIO thread in undertow.io?

How can I dispatch from a worker thread back to the XNIO thread in undertow.io? Is a callback the solution for this? if (httpServerExchange.isInIoThread()) { httpServerExchange.dispatch(new Runnable() { @Override …
tomwassing
  • 925
  • 1
  • 10
  • 30
0
votes
0 answers

Undertow worker threads changing? (Threadlocal allowed?)

When I dispatch a Runnable or HttpHandler to a worker thread with undertow, can I be sure that run or handleRequest are executed only in this thread? I want to use a ThreadLocal(I am aware of required propagation and that InheritableThreadLocal will…
0
votes
1 answer

transfer rate in ab apache benchmark

I am benchmarking a simple helloworld app written in my framework against the one written in SpringBoot. The ab log for SpringBoot version: luog~$ ab -n 100000 -c 20 http://localhost:8080/hello?name=rythm This is ApacheBench, Version 2.3 <$Revision:…
Gelin Luo
  • 14,035
  • 27
  • 86
  • 139
0
votes
1 answer

Use Undertwo web server to serve both static pages and web service

I am trying to use Undertow to serve both static pages and web service (RestEasy) but couldn't get both of them working the same time. I see others asking the same questions like HTTP Handler and Resteasy Deployment with undertow and resteasy. There…
yyff
  • 159
  • 8
0
votes
1 answer

Undertow: Static root-content outside of WAR-file (wildfly)

I have the following problem, which makes me going nuts: I want to configure my Undertow-Subsystem of my Wildfly 10.0.0 Final app-server, so it can handle static content on root (/) while a WAR-file is deployed. When no WAR is deployed, it shows…
0
votes
1 answer

Hard limit connections Spring Boot

I'm working on a simple micro service written in Spring Boot. This service will act as a proxy towards another resources that have a hard concurrent connection limit and the requests take a while to process. I would like to impose a hard limit on…
user1293081
  • 331
  • 1
  • 3
  • 12
0
votes
0 answers

How to create a build.gradle that builds three versions of a Spring Boot application - one with Tomcat, one with Jetty, one with Undertow embedded

We would like to diversify our production environment and deploy our application instances with different embedded application containers/servers: One instance with Tomcat, one with Jetty and one with Undertow. Our code does not use anything…
0
votes
1 answer

Wildfly 10 - read configuration parameter programmatically

I have this in my standalone.xml:
sinclair
  • 2,812
  • 4
  • 24
  • 53
0
votes
1 answer

Spring boot and undertow - multipart threshold size doesn't work

spring-boot version : 1.3.5 I set multipart.file-size-threshold=40MB in application properties. When I am using embedded tomcat, I see that there is no write operations on disk during upload requests. When I am using undertow, there are still write…
0
votes
0 answers

Manually add providers for jaxb in a resteasy application

I have a rest application where I am using resteasy and jaxb to produce json output @GET @Produces({MediaType.APPLICATION_JSON}) @Path("/data") public MyResponse getData { return new MyResponse("my response"); // Just stubbing…
user12331
  • 486
  • 7
  • 22
0
votes
1 answer

How to use Apache as a reverse-proxy for WebSockets with Undertow as the server

I have WebSockets enabled using an Undertow server. When I run the Undertow server directly, WebSockets work well. I serve my pages using HTTPS and I test the endpoint using "wss:" in javascript: it works. But now, I try to use Apache as a reverse…
electrotype
  • 8,342
  • 11
  • 59
  • 96
0
votes
0 answers

username:password@localhost URL with Undertow

Is there any way to access to username/password URL parts using Undertow server? It it possible with any other java-based HTTP server?
avarabyeu
  • 693
  • 3
  • 13
0
votes
1 answer

Undertow Simple HelloWorld not working on Cloud Foundry

Im creating a simple undertow HTTP server following the documentation: http://undertow.io/undertow-docs/undertow-docs-1.3.0/index.html public static void main(final String[] args) { Undertow server = Undertow.builder() …
Tran Ngu Dang
  • 2,540
  • 6
  • 29
  • 38
0
votes
1 answer

spring boot websocket+rabbitmq stomp with undertow ClassCastException

when I use SocktJs to connect websocket,org.springframework.web.util.NestedServletException: Request processing failed; nested exception is org.springframework.web.socket.sockjs.SockJsException: Uncaught failure in SockJS request,…
Dreampie
  • 1,321
  • 4
  • 17
  • 32