Hi there, a new JPAMessage is generated when append a message in OpenJPAMessageManager.createMessage(...). You could override this method to return your own subclass of AbstractJPAMessage which does the magic for you. I think thats everything you need.
See: http://svn.apache.org/viewvc/james/mailbox/trunk/jpa/src/main/java/org/apache/james/mailbox/jpa/mail/model/openjpa/AbstractJPAMessage.java?view=markup http://svn.apache.org/viewvc/james/mailbox/trunk/jpa/src/main/java/org/apache/james/mailbox/jpa/openjpa/OpenJPAMessageManager.java?view=markup Just ask if you need more info.. And as always, patches welcome :) Bye, Norman 2011/7/7 Saibabu Vallurupalli <saibabu.vallurupa...@gmail.com>: > Hi, > > I am trying to identify the files I need to overwrite to Encrypt and Decrypt > JAMES_MAIL.MAIL_BYTES column defined in JPAMessage.java. This class is > having only getter method to reach the content. I am unable to locate where > exactly it is saving to Database. > > My goal is to store Encrypted JAMES_MAIL.MAIL_BYTES value to MySQL database > and Decrypt the same while reading. > > Please point me to the right classes or sample examples if you already using > this? > > Thank you, > Sai > > > On Thu, Jul 7, 2011 at 10:01 AM, Saibabu Vallurupalli < > saibabu.vallurupa...@gmail.com> wrote: > >> Thanks Robert. Just subscribed to OpenJPA. Will post this question to them. >> >> Thanks, >> Sai >> >> >> >> On Thu, Jul 7, 2011 at 9:49 AM, Robert Burrell Donkin < >> robertburrelldon...@gmail.com> wrote: >> >>> On Thu, Jul 7, 2011 at 1:54 PM, Eric Charles <eric.char...@u-mangate.com> >>> wrote: >>> > Hi Sai, >>> > James is a user of OpenJPA, so it not in our hands, but in OpenJPA >>> project >>> > hand. >>> > >>> > OPENJPA-763 is open since 06/Nov08 and has no assignee, nor activity. >>> > I wouldn't count on it soon, and certainly not for September. >>> >>> Might be a good idea to hop over to the OpenJPA mailing list and ask >>> there... >>> >>> Robert >>> >>> --------------------------------------------------------------------- >>> To unsubscribe, e-mail: server-dev-unsubscr...@james.apache.org >>> For additional commands, e-mail: server-dev-h...@james.apache.org >>> >>> >> > --------------------------------------------------------------------- To unsubscribe, e-mail: server-dev-unsubscr...@james.apache.org For additional commands, e-mail: server-dev-h...@james.apache.org