Skip to main content

Sebastien Dionne

Sebastien Dionne graduated from university in Software Engineering. He started his career making rich client applications for telecommunications companies using Swing. Now he is focussing on J2EE applications in banking companies. His job is mainly to provide real-time applications web based and gateways for the stock market.

 

survivant's blog

How to configure proxy on Glassfish v3

Posted by survivant on March 17, 2009 at 7:18 PM PDT

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.

Slowly move to Kenai

Posted by survivant on March 14, 2009 at 5:04 PM PDT

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

PHP on Grizzly with JSR223

Posted by survivant on February 3, 2009 at 4:38 PM PST

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.

JSP on GrizzlyWebServer

Posted by survivant on January 29, 2009 at 10:49 AM PST

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.

Grizzly : Drop connection for banned IP

Posted by survivant on January 22, 2009 at 6:52 PM PST

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.

Template Code Generator Part 2 : FreeMarker

Posted by survivant on January 11, 2009 at 1:28 PM PST

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.

Template Code Generator : Apache Velocity - JET - JET2

Posted by survivant on January 4, 2009 at 1:15 PM PST

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.

Grizzly : Create a server and client with only few changes

Posted by survivant on December 29, 2008 at 12:05 PM PST

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.

Read web.xml with one line of code

Posted by survivant on December 19, 2008 at 7:26 AM PST

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.

DisplayTag : Create a html grid within five minutes

Posted by survivant on December 17, 2008 at 7:34 AM PST

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.