Posts Tagged ‘ j2ee

Which java stack do you use ?

hi every body,

I am just just running a poll about which java stack  are you using ?

and any comments are welcome !

[poll id="2"]

have a nice weekend

Why I haven’t tried JPA?

I have been implementing java for 4 years and what I have learned: “not all Java API’s are good” but there are some open/vendor APIs you should prefer.

Read more

DistributableEventPublisher for Spring via JGroups

drawing6.pngMessaging 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)

The PartyCasino (http://www.partycasino.com/ ) Anywhere java applet probably uses JMS too.
Read more

for j2ee application

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 points

Model extends Objects implements java.io.Serializable

Your model objects and communication objects should be Serializable. Do not forget serialization is the most important feature. it necessary for caching,messaging,storing,…

API replacements

Every instance should be aware of its copies in cluster. so you may need some api replacements like

Map->DistributedHashtable : nice seamless implementation from JGroups.

Cache->Distributable cache: (eg:EhCache,OSCache)

Observer,Listener>JMS Queues : for whole notifications in the cluster.

Timer->Quartz distributable scheduler