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
_______________________________________________
jboss-user mailing list
[email protected]
https://lists.jboss.org/mailman/listinfo/jboss-user

Reply via email to