If you are behind a proxy maybe you will want to set the proxy in Glassfish.
There are few different ways to do that.
#1 - You could use the admin web page.
You can add the proxy settings : host and port with the admin. Into the admin web page, go to the Application Server at your left.
After that my hard drive crash two weeks ago, I deceived to host my demos on a hosting repository. I just got my Kenai repository last week, and I start to move my stuff there one by one.
I'll update all my previous posts to point to the new download path.
My Kenai page is : http://kenai.com/projects/sebastiendionne
This time I will show you how to run PHP applications on GrizzlyWebServer using 100% pure java solutions.
I used Caucho Quercus to handle the PHP and GrizzlyWebServer as my WebServer.
We had a lot of people asking how to put JSP over Grizzly, but we didn't have an implementation or a working sample to show them.
It couldn't stay like that forever ... so I took a little of my spare time and I got something for you :)
I'll show you how to compile your JSP with Jasper and use them with GrizzlyWebServer.
I want to show you how you can block IPs in your Grizzly server. I pretty sure that you can find lot of reasons why you would want that.
I'll use a list from http://iblocklist.com/ as input for my demo.
What you have to do to close the connection from client that isn't wanted is pretty simple.
In my previous post, I covered Apache Velocity, Eclipse JET/JET2.
I got a suggestion to look the framework FreeMarker.
FreeMarker look like Velocity. You can even find converters : Velocity -> FreeMarker.
I wanted to use a template as input for my Code Generator, but the problem was to find one that worked in a stand alone mode, not a web based one.
In my research a found few that do what I wanted. Apache Velocity and Eclipse JET/JET2.
I'll explain in details theses Template Code Generator with a little application. I'll create a web page as output.
With Grizzly it can be simple to create a server and client with a few lines changes. I want to show you how you can create or convert a server to a client without to much troubles.
I will use ProtocolChain in the server. For the client there are two ways to create it using the logic of the server. You can use the ProtocolChain or use a CallbackHandler.
I needed to parse a web.xml for a sample for Grizzly and I wanted to find a way to have something that I can reuse later. You don't have to do it by hand. There are tools out there to do it for you.
I found a really nice taglib to generate html table for my JSP :DisplayTag. What I like about DisplayTag is that the most common features are buildin : Sort, Pagination, Export to Excel... Before that I had to do it each time, and it's not really productive and worst.. the code can easily be broke by others developpers.