This post originated from an RSS feed registered with Java Buzz
by Brian McCallister.
Original Post: The Java Love
Feed Title: Waste of Time
Feed URL: http://kasparov.skife.org/blog/index.rss
Feed Description: A simple waste of time and weblog experiment
Been talking about the wicked greatness that is Ruby a lot, time to
give Java some lovin'. Java offers a few things that you can
certainly do in Ruby, but for now are actually a lot easier
in Java. Basically Ruby has the general cases for Java's special
cases -- sometimes the optimization for the special cases works
best. Let's jam to some SOA goodness!
Push commands to a queue (using Dojo) as the controller -- queue
is listened to by a Dr. Pojo which
simply loads appropriate domain objects and operates on them.
Use AspectJ to instrument them appropriate domain objects to post
change notifications to appropriate topics using a standardized
naming convention (Coarse notification variety, probably, will
experiment)
Subscribe to topics to register as change listeners on the model
via Dojo and that REST api to ActiveMQ.
Do the heavy lifting in Javascript in the browser -- woot!
Bennies include: Only state live in the app server is for the
duration of whatever the command invoked, asynchronously, is
operating on. All user-specific state can be stored in memory in the
Javascript VM. 3rd party API for arbitrary alternate client is baked
in. Problem domain for the application can be modeled solely in
terms of the problem domain -- aspects handle any notifications
needed. Etc.