R
R
Roman Vasilenko2013-01-08 18:48:49
Java
Roman Vasilenko, 2013-01-08 18:48:49

Advise a noob how to write a Jetty-embedded application correctly.?

Hello.

I have little experience in creating a servlet for TomCat, I recently decided to switch to Jetty. Began to deal with Jetty 8.

I need to create an application that will support sessions. As planned, each function is described by the heir of AbstractHandler.

I started using Context and ContextHandlerCollection and Context, but stumbled upon the fact that each context creates its own session with its own path, while I need one session. I started looking for some handler selector that would call the corresponding handler along its path, as is done with contexts, but I did not find it.

I felt that something was going wrong and decided to consult with you.

Thank you.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
R
relgames, 2013-01-14
@relgames

www.eclipse.org/jetty/documentation/current/advanced-embedding.html You
can also try this download.eclipse.org/jetty/stable-7/xref/org/eclipse/jetty/embedded/OneServletContext.html

D
dborovikov, 2013-01-09
@dborovikov

Maybe just take a jetty-servlet and use servlet sessions?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question