Hi,
I have a session bean that performs encryption/decryption of credit card numbers and then sends the data to an entity bean to be written to the database. When the session bean is created a key is read from the database (in ejbcreate method) and used in the encryption/decryption process. I am just wondering if the key will be present in the bean for its lifetime for each method call or will I have to read the key from the database each time I want to do encryption/decryption. Any help is appreciated.
I have a session bean that performs encryption/decryption of credit card numbers and then sends the data to an entity bean to be written to the database. When the session bean is created a key is read from the database (in ejbcreate method) and used in the encryption/decryption process. I am just wondering if the key will be present in the bean for its lifetime for each method call or will I have to read the key from the database each time I want to do encryption/decryption. Any help is appreciated.