Two Laptop Bag*
The moose likes EJB and other Java EE Technologies and the fly likes Get full class name in Interceptor. Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "Get full class name in Interceptor." Watch "Get full class name in Interceptor." New topic
Author

Get full class name in Interceptor.

Arvind Porlekar
Ranch Hand

Joined: Dec 31, 2008
Posts: 38
Hi,

i am using EJB 3.0 with Class level interceptor. Also i am using SLF4J for storing logs into log file. But when i call the bean, the log are saved into the log file with
BeanName + _xkoahy_Impl appending.

Can i get only the class name instead of _xkoahy_Impl appending.??
This is my code inside Interceptor







Also i am storing parameter into the log file, but parametr also printed with [Ljava.lang.Object;@78def


do i need to overide toString() method...??


Thanks and regards
Arvind
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Get full class name in Interceptor.
 
Similar Threads
Struts2 Interceptor Error in struts.xml file
Call Log Duration Problem In EJB3 Through Interceptor
EJb + logging
Proxying Objects Causes OutOfMemoryError
Need Help about Interceptors in Struts2