Java

Partitioning vs. Parallel Processing

Just spent more time reading the "Spring Batch" documentation.   It's taking a while to sink in.  What's kind of struck me as amusing is that I trying to understand the difference between "Remote Chunking" and Partitioning, and I had forgotten that that I had read how they are different just yesterday...

To summarize my learning, in non-PHD terminology:

org.apache.commons.lang.SerializationException: java.lang.ClassNotFoundException

Working on the spring batch examples, and got the following error. To summarize, the classloader that the serializationtutils is using is not able to find this class.  I got around this error by creating my own copy of "SerializationUtils.java" in a new package and using this.  Since my SerializationUtils is in my webapp, there are no classloader issues.

glassfish with apache working on UBUNTU success

So got my v2 of glassfish running behind apache on ubuntu

Fronting glassfish with apache

I am starting to run glassfish for a couple of projects.  it does feel more professional of a project than tomcat, but that may just be my years of frustration with xml parsers.
Glassfish v3 now has AJP support available, so all you have to do enable it (explained here), and configure your apache server to proxy those requests to the AJP port that you have.
 

Free Application Development!

I'm launching a new kind of service that develops and delivers custom web applications.  This new approach allows a business to accurately model its processes and rules in a fraction of the time it would normally take, and no knowledge of the underlying technologies is required!


To prove this new concept and attract investors, I am offering free, custom-developed web applications to a limited number of businesses that would benefit from this service.

Microsoft Visual Studio +1 over eclipse for xml editing

I just spent the last hour "futzing" with eclipse to edit a large xml file that I was writing an XSL for.  Eclipse would crash, and hard.  I had lots of memory allocated to it (about 1gb). 

Out of frustration, I fired up Microsoft Visual Studio, and copied and pasted my xml into the file, and IT WAS AUTOMATICALLY FORMATTED!  Awesome.  Even if I could get eclipse not to crash, it took a minute for it to format the xml.

Metro and auto-generating stubs that implement java.io.Serializable

I have a wicket application that deals with the bunch of Java classes that were generated from the wsimport utility of Metro.  A lot of these objects are pojos, such as a "AttributeHolder" that I need to send to the webservice from a wicket-based client program.  For this to work, I need all the pojo's that I am binding to forms and my session to implement java.io.Serializable.

It helps to have the metro jars in your project

I was executing some unit tests on a different machine which kept failing with the error message below. After lots of googling (that didn't help), I finally figured out that I forgot to checkin the jars from the metro 1.4 distribution. The error message kind of threw me in the wrong direction. Starting integration tests ...
[copy] Copying 1 file to /Users/prhodes/.grails/1.1/projects/stitches-client/test-classes/integration
[copy] Copying 31 files to /Users/prhodes/.grails/1.1/projects/stitches-client/test-classes

mosso cloud server is pleasing me

I needed to setup a demo server for stitches.  I see that it will cost me $20/month to have a 512mb server.  Sweet!
The distros are all pretty bare-bones.  I had to install java and apache

  • sudo yum install httpd mod_ssl
  • sudo yum install tomcat5 tomcat5-webapps tomcat5-admin-webapps
  • Your tomcat is now installed at /usr/share/tomcat5/

 
 

Generating a webservice client with eclipse

The following is just a series of screen shots.  I developed a web service in grails and sometimes it's helpful to see the actual code that is generated from the wsdl.  This is how I do it

 

 

 

 

 

 

 

Syndicate content