Archive for the ‘Development’ Category

JGroups-Spring In Action

Thursday, February 21, 2008 17:00 No Comments

If your are new with jgroups ,take a look JGroups Basic and other jGroups posts
Some Sample Code you may use for adding networking utilities to your Application
Two FactoryBeans for JGroups

ChannelBeanFactory for creating JChannel Instances
ReplicatedHashMapFactory for ReplicatedHashMapFactory Instances

This was posted under category: Development Tags: ,

JAXB quickstart via maven2

Tuesday, January 22, 2008 4:27 1 Comment

Image via Wikipedia

JAXB is a java framework to XML-Java transformations.
JAXB is 2.1 has a very simple API like castor and jibx And annotation driven transformers. Although those configurations can be written manually JAXB has a code generator to generate java files from XSD files. Here is sample JAXB tutorial using maven2:

This was posted under category: Development Tags: , ,

hibernate native id generator bug 3.2.4-ga

Monday, December 24, 2007 10:03 1 Comment

hibenate native id generator for mysql not working just update to 3.2.5

Caused by: java.sql.SQLException: No value specified for parameter 11
at com.mysql.jdbc.PreparedStatement.fillSendPacket(PreparedStatement.java:2212)
at com.mysql.jdbc.PreparedStatement.executeUpdate(PreparedStatement.java:1724)
at com.mysql.jdbc.PreparedStatement.executeUpdate(PreparedStatement.java:1596)
at org.apache.commons.dbcp.DelegatingPreparedStatement.executeUpdate(DelegatingPreparedStatement.java:101)
at org.hibernate.id.IdentityGenerator$GetGeneratedKeysDelegate.executeAndExtract(IdentityGenerator.java:73)
at org.hibernate.id.insert.AbstractReturningDelegate.performInsert(AbstractReturningDelegate.java:33)

This was posted under category: Development Tags:

Clustering Acegi via JGroups (DistributedHashtable)

Sunday, December 23, 2007 13:05 1 Comment

in my previous blog I suggest to use jms or caching for a distributable SessionRegistry
but I found a more simple solution JGroups -
DistributedHashtable :JGroups gives us such a perfect simple class to distributed maps.

All read-only operations runs on local copies
perfect merge strategies.
easy implementation and configuration
vs..

This was posted under category: Development Tags: , ,

DistributableEventPublisher for Spring via JGroups

Tuesday, December 11, 2007 8:15 No Comments

Messaging is really easy through a single JVM. For a distributed environments JMS is strongly recommended. but for smaller and simple projects here is and example implementation via JGroups.
Usage
DistributableEventPublisher distributableEventPublisher=….
distributableEventPublisher.castEvent(TEXT_MESSAGE/XML/Serializable);
requirements:

springframework 2+
JGroups 2.6.1
JUnit (for test)

This was posted under category: Development Tags: , ,

light-weight distributed messaging via JGroups

Tuesday, December 11, 2007 6:16 No Comments

JGroups is a framework that provide seamless networking utilities for java/j2ee applications. As a light-weight alternative to JMS here is an example.

This was posted under category: Development Tags: ,

JGroups Basics

Sunday, December 9, 2007 16:24 No Comments

JGroups is a basic networking api for java.It handles all networking issues for u with very complex configuration and simple interfaces.Here are some basic introduction for JGroups

This was posted under category: Development Tags:

for <distributable/> j2ee application

Thursday, December 6, 2007 16:09 1 Comment

no matter what size is your application distributable should be always under consideration. otherwise it becomes a full pain full reimplementation of whole application. yes reimplementation is always good but for developers it is always painful and for customers it is always very but very expensive.
here is some key [...]

This was posted under category: Development Tags:

anti-JSF thoughts

Monday, May 28, 2007 3:57 2 Comments

Image by Brian Daniel Eisenberg via Flickr

before I begin I should say, I tried JSF several times but all off them is bad.
Why?
Easy Navigation (!): Why do a framework disables back button and uses non-sense URLs? you cannot bookmark a single page, do not even try to read the URL it all sucks.
Always POST: [...]

This was posted under category: Development Tags: ,

OSWorkflow as Object State Machine

Tuesday, November 14, 2006 2:26 No Comments

Image via Wikipedia

OSWorkflow is a very simple and flexible workflow engine. Developers including me really like its simplicity. One can write very simple XML’s for steps, actions, conditions and functions; and it is done. OSWorkflow can be easily integrated with very common frameworks like spring,acegi,hibernate.intergation project
What is next? In my simple example project you [...]

This was posted under category: Development Tags: ,