#619 fan on glassfish

cheeser Mon 1 Jun 2009

So I just got a fan app running on glassfish. Well, really any servlet container. I'm building a full interop layer for the servlet spec for those of us who'd like to leverage existing java infrastructure to deploy fan applications. I'll put the source code up on kenai.com soon (I'm in a session at JavaOne at the moment) for people to look at and beat up. I'm really excited about this. It opens all sorts of possibilities for me.

I know I'm being a bit of a tease but I had to share. I'd hoped to have this done and publicized before JavaOne but my mac died and I lost a week. Anyway, if you're at JavaOne, my twitter ID is evanchooly. Feel free to ping me. :)

andy Mon 1 Jun 2009

Sounds cool cheeser!

cheeser Mon 1 Jun 2009

OK. I had some time over lunch so I pushed what I have up to kenai. You can browse the repository at tradewinds. There's not a lot there right now but my test war file can print out basic content. I'll be fleshing this out as I go and adding support for other platforms such as grizzly, xnio, netty, etc. My goal for this is to provide a centralized project for java/fan integration layers that relieve developers of having to wrestle an environment into shape. Instead, using tradewinds, a fan developer can just focus on writing fan code and leave the integration layer to tradewinds.

tcolar Tue 30 Jun 2009

Really cool. That would make my day if i could integrate some fan with our SAP code.

One question, what's the minimum version of J2EE you require ?

SAP still stuck with 1.4 :( though i've run it under 1.5.

cheeser Tue 30 Jun 2009

At the moment, it's done using a basic translation layer using the servlet API. Currently it wraps HttpServletRequest/Response in thin fan layer though I'm going add an option to use the more Fan-friendly WebReq/Res. As for full EE suport, i'll have to look at how that integration is done for languages such as ruby and groovy. Given the abstracted layer of the compiler in Fan, it might be trickier to support such things as the resource injection annotations, but that would definitely be a nice feature. So all that to say, things should work just fine on SAP's stack.

Login or Signup to reply.