[jboss-user] [JBossCache] - Re: Blob balancer using cache - concept help

manik.surtani@jboss.com do-not-reply at jboss.com
Tue Aug 22 04:30:54 EDT 2006


Using the file cache loader in this manner will not work, since the file cache loader serialises the attribute map of the  node into a single file.  Your webserver will not be able to parse and serve up this file.

Perhaps this approach may help:

1) Single, JDBC based cache loader
2) Uploading an image will result in the servlet converting the file to a byte[] and putting this in cache (so it gets stored in the db)
3) Register a cache listener on the cache, which when a node is created, your cache listener writes the byte[] to your filesystem in a specified place, in the file format specified.  
4) Since the cache will replicate it's contents, this will trigger cache listeners on each instance in your cluster, so the file is created on the filesystems on each cluster node.

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3966619#3966619

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3966619



More information about the jboss-user mailing list