How can I manage the scenario where an application in Java writes?
Memcached is key, value pair server where you will store or retrieve value based on key. To support mulitple applications consider using a similar data formatting (json/xml) which both can understand. Almost every language has support for xml and json serialization. Yes, you've to deal with serialization but use a generalized structure so as to support additional languages