java - How do I put Serializable Objects in a JSON body? In what format should I store in my database? -
i building logging/journal service osgi framework, intention of using journal entries restoring system backup after systemfailure. came across problem: make sure have enough data, necessary able restore system correctly, need pass used functioncalls , arguments.
i pass functionname string journalservice , arguments array of serializable objects. demand arguments serializable because need persist them external database.
i contact database via rest/json framework, want post journal entries database. problem this: how can put serializable objects (the args) json body? , in format need store them in database?
i serialize objects byte array/stream, , base64-encode array/stream printable string.
at database level, can store base64 string clob, or decode byte array , store blob.
Comments
Post a Comment