eric khoa

Greenhorn
+ Follow
since Sep 22, 2005
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by eric khoa

I think MyEclipse run stable, fast. MyEclipse has Database and a lot of shortcuts, but we have to pre-install an Application Server.
I think JTA or Local resource for Persistence Context is determine at the time we create PU in persistence.xml.

<persistence xmlns="http://java.sun.com/xml/ns/persistence"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://java.sun.com/xml/ns/persistence http://java.sun.com/xml/ns/persistence/persistence_1_0.xsd"
version="1.0">
<persistence-unit name="manager1" transaction-type="JTA">
<provider>org.hibernate.ejb.HibernatePersistence</provider>
<jta-data-source>java:/DefaultDS</jta-data-source>
</persistence-unit>
</persistence>

If we use @PersistenceContext successfully then it mean we declared Container Manage Entity Manager with JTA transaction.

extract from EJB 3 Persistence API (Apress)

When the transaction-scoped entity manager in stateless bean. If that is the case, how can it work with a persistence context? The answer lies with the JTA transaction. All container managed entity managers depend on JTA transactions. The reason for this is because they can use the transaction as a way to track persistence contexts. Every time an operation is invoked on the entity manager, it checks to see if a persistence context is associated with the transaction. If it finds one, the entity manager will use this persistence context. If it doesn�t find one, then it creates a new persistence context and associates it with the transaction. When the transaction ends, the persistence context goes away.
For an enterprise bean�s timeout callback method only the REQUIRES, REQUIRES_NEW and
NOT_SUPPORTED transaction attributes may be used.


I think enterprise bean�s timeout callback method is also a business method. Therefore it can be call from client and can have REQUIRES_NEW attribute. The 2 other attributes I think explaining like MessageDrivenBean
I found something in Spec core

13.6.3 Container-Managed Transaction Demarcation for Message-Driven Beans

Only the NOT_SUPPORTED and REQUIRED transaction attributes may be used for message-driven
bean message listener methods. The use of the other transaction attributes is not meaningful for message-
driven bean message listener methods because there is no pre-existing client transaction context
(REQUIRES_NEW, SUPPORTS) and no client to handle exceptions (MANDATORY, NEVER).
Hi Mark,

My memory is not so good, I had to study and study again, practice with glassfish v1 and MyEclipse a lot. I think it took me about more than 400 hours to finish the exam

In my opinion, I think NetBeans doesn't have many shortcut keys like Eclipse and it also took me a lot of time to make acquainted. Lastly I found that MyEclipse is an excellent IDE for speeding up my study. NetBeans has all functions for developing JavaEE 5 but its short cut keys and response time are the shortcoming
I have just passed SCBCD 5 with 98% today. I feel a little disappointed because I have study so hard with a hope to get 80%. I have to study at level 10 and exam is at level 7->8.

The books I studied were
+ Spec EJB3 (JPA and core). This is very very excite book, although it is difficult to study. I have to read about 5 times. From the third time I feel rather understand. I read about 350 pages from these 2 book (200 from core and 150 from JPA)
+ Pro EJB3 JPA this is the very good, precise book, excellent JPA book.
+ EJB3 In Action (some places different from JPA spec (allow define public instance state in entity))
+ MasteringEJB4.pdf (some examples of source code still use pre final spec (@Entity(access = AccessType.FIELD))). This is very good and useful book.
+ OReilly Enterprise JavaBeans 3.0 5th Edition. This is very good book for general knowledge but not good for very detail knowledge like spec
+ JavaEETutorial from Sun. This tutorial is very detail especially security examples
+ Apress Beginning EJB3 Application Development. This book is excellent for guiding deploy application.
+ Tutorial made by Mikalai Zaikin (http://java.boot.by/scbcd5-guide/), summary from spec.
Mock test:
+ Enthuware
+ Whizlabs
+ TopCerts (455 Questions). Very excellent but not explain. Many question like real exam. Answers are very exactly
+ Sample exam of Sun (30Q)

Specification
http://jcp.org/aboutJava/communityprocess/final/jsr220/index.html

Mastering EJB3
http://www.theserverside.com/tt/books/wiley/masteringEJB3/index.tss

Java EE Tutorial from Sun
http://java.sun.com/javaee/5/docs/tutorial/doc/JavaEETutorial.pdf
http://java.sun.com/javaee/reference/tutorials/

Practise test from Sun
http://www.sun.com/training/certification/resources/epractice.html
http://www.sun.com/training/certification/assessment/index.jsp

Free trial mock test
http://www.enthuware.com/ejbplus/
http://www.whizlabs.com/scbcd/scbcd-details.html
http://www.topcerts.com/SCBCD-certification-training.htm
16 years ago
sorry I forgot MZ guide. This is also really useful. Tutorial made by Mikalai Zaikin (http://java.boot.by/scbcd5-guide/).

Thanks MZ
I have just passed SCBCD 5 with 98%. The exam, what should I write ?, is so easy. I feel a little disappoint because I have study so hard with a hope to get 80%. I have to study at level 10 and exam is at level 7->8.

The books I studied were
+ Spec EJB3 (JPA and core). This is very very excite book, although it is difficult to study. I have to read about 5 times. From the third time I feel rather understand. I read about 350 pages from these 2 book (200 from core and 150 from JPA)
+ Pro EJB3 JPA this is the very good, precise book (The examples are excellent)
+ EJB3 In Action (some places different from JPA spec (allow define public instance state in entity))
+ MasteringEJB4.pdf (some examples of source code still use pre final spec (accessType=Field)). This is very good and useful book.
+ OReilly Enterprise JavaBeans 3.0 5th Edition. This is very good book for general knowledge but not good for very detail knowledge like spec
+ Prentice Hall PTR.Java EE 5 Tutorial, The (3rd Edition).chm. This tutorial is very detail especially security examples
+ Apress Beginning EJB3 Application Development. This book is excellent for guiding deploy application.

Mock test:
+ Enthuware
+ Whizlabs
+ TopCerts (452 Questions). Very excellent but not explain. Many question like real exam. Answers are very exactly
Sample exam of Sun (30Q)
[ January 18, 2008: Message edited by: Christophe Verre ]