Forums

Home » Liferay Portal » English » 3. Development

Combination View Flat View Tree View
Threads [ Previous | Next ]
Ruben Martin Pozo
Request unique id
December 10, 2012 1:46 AM
Answer

Ruben Martin Pozo

Rank: New Member

Posts: 6

Join Date: December 7, 2012

Recent Posts

Is there any way to get a request unique id?

We need to log a unique id associated to every request in our production environment. This id has to be unique for the entire request and it has to be available to every portlet that gets executed in that request.

We've tried to create that id ourselves using the Log4j MDC singleton to store it. There are some issues with the classloader structure that prevent us from using this solution.

Any ideas?