JBossCache over HTTP for rich client communication
starmanrg Jul 27, 2004 4:20 PMHi,
Anyone interesed in discussing some architectural patterns?
I've read the forum, docs and tutorials but cannot determine if JBCache could be used in the following scenario. If this thread has already been covered, please forward me to it.
Our current application architecture predates J2EE. It uses an in-house app server. The rich client (Delphi) accesses the server over HTTP using an XML (SOAP like) in-house protocol. The client has direct access to our bean/entity like domain objects and to remote (web like) services using typesafe meta-data. The problem related to a possible JBossCache usage is concurency. Our current architecture offers no isolation and the client often works on stale data. Relational integrity is enforced at the entity and db level, but we can easily have situations where editions are lost because another user worked on the same data at the same time.
It's time we move to modern J2EE technologies. I've setup a tech showcase using MySQL (I've imported the IMDB movies database), JBoss 4.0, POJOs for the domain model (hand coded, no MiddleGen), Hibernate and ws4ee web services using stateless session beans. All good and well.
Now the rich client? It will use web services for some requests, but getting access to the POJOs and caching them on the client side is mandatory to attain the kind of user experience we need to offer (PIM with lots of really complex edition). I don't want to go again with the DTO pattern we used in the preceding architecture. Even if the DTOs could be generated (they were hand coded until now), I'd like to reduce the complexity. Introduce JBossCache...
So, can JBossCache be used on the client side and be part of the same cluster as the server? How would HTTP communication go? I'd like to use pessimistic locking/isolation. Would the performance be acceptable? Our domain model has users working mostly on their own data. There is a lot of quasi-read-only data shared between the clients, but editable data is rarely shared. But when it is, concurency/integrity should be ensured.
Has anyone used JBossCache in a similar fashion?
Thanx in advance for your inputs!
Starman