I would like to create one EMF object and use it in various Resource class objects.. any ideas on how to do this?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
the answer is to use a class which follows the singleton design pattern – for more details see – http://vatsalad.wordpress.com/2010/03/05/single-entitymanagerfactory-object-across-various-restlet-resources/