You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@shiro.apache.org by seanmhogan <se...@skyhawk.co> on 2016/07/19 12:29:39 UTC

integration with Java 6+ embedded web server

I'm working on an application made up of many communicating processes, where
Shiro will be used on the web tier for authentication and authorization.
That is Servlet 3.0 stuff so is straightforward.

I also plan an interface into the back end where a full servlet container is
undesirable, but authentication is still required. I could potentially use
Jetty, but I find the simplicity of the web server that comes with Java 6
and later very attractive. Unfortunately I can't seem to find any references
or helpful hints for how I might integrate that with Shiro.

Has anyone tried this? Thanks in advance.



--
View this message in context: http://shiro-user.582556.n2.nabble.com/integration-with-Java-6-embedded-web-server-tp7581137.html
Sent from the Shiro User mailing list archive at Nabble.com.

Re: integration with Java 6+ embedded web server

Posted by Lenny Primak <lp...@hope.nyc.ny.us>.
There is no need for Shiro to have any sort of Servlet container to work at all.
You can use native session and replication via distributed cache (like Hazelcast)
and it will integrate with a servlet container as well.
This is what I do with all my projects.

> On Jul 19, 2016, at 12:35 PM, seanmhogan <se...@skyhawk.co> wrote:
> 
> ns, since I wrote that message I did in fact switch to Jetty 9.3.
> The small bit of complication was more than compensated for by having Shiro
> work out of the box!
> 
> Thanks for your reply,
> Sean


Re: integration with Java 6+ embedded web server

Posted by seanmhogan <se...@skyhawk.co>.
Sorry, I meant that my experience was 10 years ago, not that I have 10 years
of experience! It was fairly brief, and in an existing code base that may
not have been as concise as it could have been.

Thanks again.



--
View this message in context: http://shiro-user.582556.n2.nabble.com/integration-with-Java-6-embedded-web-server-tp7581137p7581144.html
Sent from the Shiro User mailing list archive at Nabble.com.

Re: integration with Java 6+ embedded web server

Posted by Kalle Korhonen <ka...@gmail.com>.
On Tue, Jul 19, 2016 at 9:35 AM, seanmhogan <se...@skyhawk.co> wrote:

> Just because my (ten year old) experience with Jetty wasn't particularly
> pleasant.
>

Because of the changing apis and package renames? Even with those, my 10+
year experience has been quite pleasant.

As it happens, since I wrote that message I did in fact switch to Jetty 9.3.
> The small bit of complication was more than compensated for by having Shiro
> work out of the box!
>

Yeah, with 9.x at least the package renames and dependency hierarchies
should all be sorted out. It's still very lightweight.

Kalle

Re: integration with Java 6+ embedded web server

Posted by seanmhogan <se...@skyhawk.co>.
Just because my (ten year old) experience with Jetty wasn't particularly
pleasant.

As it happens, since I wrote that message I did in fact switch to Jetty 9.3.
The small bit of complication was more than compensated for by having Shiro
work out of the box!

Thanks for your reply,
Sean



--
View this message in context: http://shiro-user.582556.n2.nabble.com/integration-with-Java-6-embedded-web-server-tp7581137p7581142.html
Sent from the Shiro User mailing list archive at Nabble.com.

Re: integration with Java 6+ embedded web server

Posted by Kalle Korhonen <ka...@gmail.com>.
The com.sun.net.httpserver.HttpServer? It's not a servlet container
(although it's fairly simple to add basic support for servlets to it).
Shiro typically integrates via servlet filters. However, it's just a simple
to embed Jetty into your application, their api is similar to the com.sun
one. Why is a plain servlet container undesirable (as opposed to a full JEE
container)?

Kalle

On Tue, Jul 19, 2016 at 5:29 AM, seanmhogan <se...@skyhawk.co> wrote:

> I'm working on an application made up of many communicating processes,
> where
> Shiro will be used on the web tier for authentication and authorization.
> That is Servlet 3.0 stuff so is straightforward.
>
> I also plan an interface into the back end where a full servlet container
> is
> undesirable, but authentication is still required. I could potentially use
> Jetty, but I find the simplicity of the web server that comes with Java 6
> and later very attractive. Unfortunately I can't seem to find any
> references
> or helpful hints for how I might integrate that with Shiro.
>
> Has anyone tried this? Thanks in advance.
>
>
>
> --
> View this message in context:
> http://shiro-user.582556.n2.nabble.com/integration-with-Java-6-embedded-web-server-tp7581137.html
> Sent from the Shiro User mailing list archive at Nabble.com.
>