Archive for the ‘Development’ Category
JGroups-Spring In Action
Thursday, February 21, 2008 17:00 No CommentsIf 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
JAXB quickstart via maven2
Tuesday, January 22, 2008 4:27 1 CommentImage 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:
hibernate native id generator bug 3.2.4-ga
Monday, December 24, 2007 10:03 1 Commenthibenate 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)
Clustering Acegi via JGroups (DistributedHashtable)
Sunday, December 23, 2007 13:05 1 Commentin 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..
DistributableEventPublisher for Spring via JGroups
Tuesday, December 11, 2007 8:15 No CommentsMessaging 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)
light-weight distributed messaging via JGroups
Tuesday, December 11, 2007 6:16 No CommentsJGroups is a framework that provide seamless networking utilities for java/j2ee applications. As a light-weight alternative to JMS here is an example.
JGroups Basics
Sunday, December 9, 2007 16:24 No CommentsJGroups 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
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 [...]
anti-JSF thoughts
Monday, May 28, 2007 3:57 2 CommentsImage 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: [...]
OSWorkflow as Object State Machine
Tuesday, November 14, 2006 2:26 No CommentsImage 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 [...]