Hi,
This does not seem to be supported via JPA.
You could extend the class, rewrite the accessor to encrypt/decrypt and
update persistence.xml to define your class.
You could also read
http://www.jroller.com/DhavalDalal/entry/database_field_level_encryption_using.
Hopes this help.
Thx.
On 06/07/11 23:02, Saibabu Vallurupalli wrote:
Hi,
I am new to Apache James we are using Apache James with MySQL database.
I have a requirement to encrypt and decrypt the email message. I have spent
some time to understand how the persistence mechanism works in James. Found
persistence.xml file and also sqlResources.xml file. After running some
tests, I found sqlResources.xml file is not used anymore in my
configuration.
Now, My question is how the james_mail table is getting updated? Is there
any possibility to Encrypt/Decrypt message? I thought it is easy if
sqlResources.xml file is used. I can simple add AES_Encrypt and AES_Decrypt
functions to column.
Please help me with this.
Thanks,
Sai
--
Eric
---------------------------------------------------------------------
To unsubscribe, e-mail: server-dev-unsubscr...@james.apache.org
For additional commands, e-mail: server-dev-h...@james.apache.org