• Post Reply Bookmark Topic Watch Topic
  • New Topic

any way for EJB to modify current thread name

 
ahmad elhadidy
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi every body
i work on j2ee system witch integrated with many other system throw system that work as adapter between many system

what i want is tie all logs exported by my system and other systems and adapter system which all called in specific thread by unique thing for example putting the client phone number as thread name

unfortunately i surprised that j2ee specification prohibit any EJB bean from updating thread properties like name

my question is dose EJB interceptors can change thread name? and if no any one have any idea what can i do?
thanks in advance
 
Duc Vo
Ranch Hand
Posts: 254
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Not sure why did you decide to change the thread name for this purpose. Can you change the configuration of your logging framework to write to different locations?
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!