Tuesday, April 20, 2010

Spring Web Flow Resources

Here's a few links that will help you get started with Spring Web Flow.

Spring Web Flow is a component of the Spring Framework's web stack which focuses on the definition and execution of user interface flow within a web application.  It solves Apache Struts limited page flow functionality - but you can integrate Spring Web Flow with your existing Struts infrastructure.

Working With Spring Web Flow (video presentation)Presented by Keith Donald on Mar 03, 2010
-  Presented at SpringOne 2009 conference by one of the founding partners of SpringSource.  The video & ppt presentation is about 1 hour and 32 minutes.  It's worth viewing.

Spring Web Flow

http://www.springsource.org/webflow

Tuesday, April 13, 2010

Spring Framework for Beginners

If you want to learn the Spring Framework, below are references that I thought were pretty helpful in getting someone up to speed in understanding the concepts behind the framework.

Rod Johnson Discusses Spring 3.0 (video)
Interview with Rod Johnson by Ryan Slobojan on Feb 22, 2010
http://www.infoq.com/interviews/rod_johnson_spring30

What’s New in Spring 3.0 
(video presentation)
http://www.bestechvideos.com/2009/12/16/what-s-new-in-spring-3-0

Mastering Spring MVC

Enjoy Spring-based Web development with the Spring MVC module
http://www.javaworld.com/javaworld/jw-04-2009/jw-04-springmvc.html

Developing a Spring Framework MVC application step-by-step

http://static.springsource.org/docs/Spring-MVC-step-by-step/index.html

Spring MVC

http://www.vaannila.com/spring/spring-mvc-tutorial-1.html

Tuesday, April 6, 2010

How to Update the SSL Certificate when using Plesk & RHEL

If your Apache-based website SSL certificate expired and you are using Plesk to manage your domains, here is how you update the certificate:

1.  Follow the instructions on how to generate a new key for apacheSSL.  Here's an example from GeoTrust's website:  https://knowledge.geotrust.com/support/knowledge-base/index?page=content&id=AR876

2.  Find the location of your certificate file.

$ cd /var/www/vhosts/yourdomain.com/conf/
$ vi httpd.include

Search for this section in your httpd.include file:
        SSLEngine on
        SSLVerifyClient none
        SSLCertificateFile /usr/local/psa/var/certificates/cert-BHkRhb

In the above example, cert-BHkRhb is the file containing your certificate.

3.   Replace the contents of your certificate file with the new key generated in Step 1.  The file contains the BEGIN RSA PRIVATE KEY and BEGIN CERTIFICATE sections.  It's probably a good idea to backup the certificate file before replacing its contents -- otherwise you might have problems restarting Apache.

4.  Restart Apache HTTP server using the Plesk Admin interface or
$ /etc/init.d/service httpd restart

That's it.

Friday, April 2, 2010

How to Download and Install PERL modules in Ubuntu

I haven't had any luck using CPAN to install PERL modules in Ubuntu.  The other day I was installing PERL modules while upgrading a bugzilla installation and using apt-cache and and apt-get did the trick!

For example, if you are looking for Email-Send module, use "apt-cache search":
# apt-cache search perl Email-Send

The following modules will be displayed:

libemail-send-io-perl - Send mail via IO::All
libemail-send-perl - Simply Sending Email

Now, to install the two modules above, use "apt-get install":
# apt-get install libemail-send-io-perl
# apt-get install libemail-send-perl

Good luck!

How to Find Out the Version of your Ubuntu Installation

To find out the version of Ubuntu you are running, go to your prompt:

$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description:    Ubuntu 9.04
Release:        9.04
Codename:       jaunty