Help coderanch get a
new server
by contributing to the fundraiser

Nila Shah

Greenhorn
+ Follow
since Jun 04, 2007
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Nila Shah

Hello,

Can you give any idea how to skip the detailed Nested exception message in log.
For email address validation I just need a small message in the log except the whole Nested exception stack trace.

I got a huge stack trace for AddressException for only the invalid address, which I don't want.

Nested exception is:

javax.mail.internet.AddressException: Illegal character in local name in string

``cdef\@ghuy.badcom''

at javax.mail.internet.InternetAddress.checkAddress(InternetAddress.java

:929)

15 years ago
Yes. you are correct. I want to write the test case in juint to test my listener(MDB) listen to the queue .
15 years ago
I am new to JUnit.
I am trying to write a JUNIT test case to test my Message Driven bean.
Basically my MDB is working as a listener for the posted messages to one queue.
Please let me know if you have any sample code or examples.


Thanks,
Nila
Hello All,

I am new to JUnit.
I am trying to write a JUNIT test case to test my Message Driven bean.
Basically my MDB is working as a listener for the posted messages to one queue.
Please let me know if you have any sample code or examples.

Thanks,
Jolly
15 years ago
Thanks Jaikiran for your reply.
But My issue is it should dynamically do that masking.
For and example if the creditcard number is 123456789 then it should show in log file as *****6789.

So I can't replace with only "*************"
Yes. This application is a struts base application and log4j is used for logging.
Hi,

I need several field in the logfile to be masked.
Like the creditcard info or password.
Do we have any direct way to do it ?
Or any code piece we have to write in for logg fields to mask those Credit card info so that those will be appreaed mask in log file.
Example:
CreditcardNo:411111111111 should apprear in log file as *********1111
password assword123 should apprear in log as ***********