Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > Java > Java Open Source > BOOK: Professional Java EE Design Patterns
Password Reminder
| FAQ | Members List | Search | Today's Posts | Mark Forums Read
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 tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old August 27th, 2015, 06:41 AM
Registered User
Points: 5, Level: 1
Points: 5, Level: 1 Points: 5, Level: 1 Points: 5, Level: 1
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
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
Reply With Quote

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off

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

All times are GMT -4. The time now is 10:41 AM.

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