Wrox Programmer Forums
BOOK: Professional Java EE Design Patterns
This is the forum to discuss the Wrox book Professional Java EE Design Patterns by Murat Yener, Alex Theedom; ISBN: 978-1-118-84341-3
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Professional Java EE Design Patterns section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
Old August 27th, 2015, 06:41 AM
Registered User
Join Date: Aug 2015
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default Entity Manager Dao Factory Thread Safety

In the example you have a MovieDaoFactory which is Application Scoped.

In it you inject an Entity Manager which is not a thread safe object.

Then you produce a MovieDaoImpl without specifying a scope which means it is produce as application scoped.

Which in turn means that the DAO uses a non thread safe instance of Entity Manager.

Am I wrong in the above thinking? Please explain!

Thank you in advance

Similar Threads
Thread Thread Starter Forum Replies Last Post
[Apache_Tomcat]: $CATALINA_HOME/webapps/host-manager/manager.xml quanba Apache Tomcat 1 September 1st, 2011 07:16 PM
about factory tyc ADO.NET 2 August 29th, 2008 06:53 PM
Thread-safety techniques for secure .mnet remoting vipulss C# 0 October 10th, 2006 08:50 AM
Difference between Entity and Entity type arshad mahmood C++ Programming 0 May 8th, 2004 12:34 AM

Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.