In Java Up and Running book, it introduced @Entity. And MZ's note mentions very little about @Singleton.
All I can do is to google @Entity and @Singleton to learn about them.
Joined: Mar 24, 2009
In Java Up and Running book, it introduced @Entity.
Plese tell me which chapter it is mentioned ?
Normally @Entity annotation used in persistence application and they hold the data present in table. It is unsual to expose these objects as web services. Or am I wrong ?
Joined: Jul 29, 2012
I am reading Chapter 6 of Java Web Service Up and Running. It has an example called FibNum.java. There is an @Entity annotation of this class.
This section teaches us how to deploy the FibNum in an ear file with persistency.xml in GlassFish.
I am still struggling with this example because I ran into oralce.toplink.essentials.database.DerbyPlatform is not found on GlassFish.
I am planning to give OCPJWSD 6.0. I have worked on web-service but have not much exposure to EJB, do i need to study first EJB.
No, you don't need to, but it will certainly help! A couple of topics from the EJB exam where also covered in the Web services exam. One of the things you learn from there is that you can only expose a Stateless Session Bean or Singleton Session Bean as a web service.
Forget about the @Entity though: this is not needed for the Web services exam (just in the book to make a nice example)