Win a copy of Node.js Design Patterns: Design and implement production-grade Node.js applications using proven patterns and techniques this week in the Server-Side JavaScript and NodeJS forum!

massimiliano cattaneo

+ Follow
since Jun 30, 2011
massimiliano likes ...
Cows and Likes
Total received
In last 30 days
Total given
Total received
Received in last 30 days
Total given
Given in last 30 days
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by massimiliano cattaneo

I studied the Murach's JSP and Servlet Book
Then I studied the Head First Servlets and JSP
At the end I studied the Servlet 3.0 Spec

I Made all the Enthuware Test with a 90% of average.

Then I passed the exam with 87%
9 years ago
I've passed the OCPJWCD 6.0 exam today with 87%.
9 years ago
here I posted some info Certification Result
The exam is 1z0-895 and it's a single test just like the "Java Programmer" Exam

Hope this help
I studied the Enterprise javabeans 3.1 from O'Reilly. EJB3.1 Oreilly
Then i readed the EJB 3.1 Spec EJB Spec
I studied the Ivan's notes Ivan Notes

And at the end I made a lot of time the Enthuware Mock. Enthuware Mock exam

My Opinion is that the Enterprise Javabeans 3.1 Book is a good book but is not for a certification. It cover a lot of think in the certification but not in a certification mode.
The Specs are hard to read but very usefull for the exam.
The Ivan's notes are very usefull. I have integrated with my comments and my notes just has a ref book.

But again what is tremendously useful is the Enthuware mock exam.

This is my path for this cert.
I Hope can help You.
9 years ago
Sorry WAS 7 is J2EE 5 compiant not 6 this is why global doesn't work.

If I correctly undertood the EJB is in a ear different from the JSP so You should Try this


where app_name is the ear name, modulename is the EJB-JAR name, bean-name is the name of the bean, fully qualified name is the fully qualified name of your bean/interface. In this case the remote interface

for example

I hope this can help
Who sets the parameter named "name" ?
if this "name = request.getParameter("name");" return null, all the code is skipped so the behaviour is right.

What is printed by the two lines of code ?

Please use the "code" to post the code in the forum

I bought Murach's Java Servlets and JSP, 2nd Edition, and then Head first.
I suggest Head First, but pay attention that some relevant point of the J2ee 6 are not covered by the book so I'm studing also the Spec for the servlet 3.0.
I bought also the Enthuware and I think this can help.

Hope this can help.
Servlets are java classes like a normal classes.
So You have a constructor to make a new Instance of the new Servlet class.
To become a Servlet object You need the Init method.
The container call the init method and make other think like Create a SerletConfig object, used for example to access the init parameter in the web.xml, and so on.

I hope this can help.

Hello Vasu,
can You share your path ?
What book have You used for studing ?
What mock exam ?

How difficult is the exam ?

Thank You very much
9 years ago
I'm also starting preparing the exam OCPJWD 6.
I'm looking at enthuware as mock test and they suggest the Murrach's "Java Servlet and JSP" book.
Is it correct ? Should I consider "Head First..." instead ? which differences between the two Books ?

Thank You very much
Paul I want to tell You a big Thank You
I used Enthuware as mock test and It's incredible it seems that You write the exam.
I've studied 3 months not full time. In my opinion if I had studied only Enthuware mock withuot having studied the theory, I probably would have passed the exam.
My next step is the web component or the web services.
Paul Have You plan to write a Mock test for the Web sercives ?
I've seen the mock for the Web component ( probably i'll buy in this days), I've seen the Mock for the JPA but nothing for Web Services.

9 years ago
Today I pass the OCPJBCD 6 with 96%.
9 years ago
Hello, consider that the MDB could crash the Application server.
This is why.
The MDB onMessage() method is annotated with a @Transaction Attribute. There are 2 different Transaction Attribute that Could be used: Required and Not_Supported.
If no one is used the default is Required.
The problem is that if the method thrown an exception (RuntimeException) the Transaction associated is rolledback and also the message is put back in the Queue ( if the Queue is used as destination of the message)
When the message is in the queue the MDB receive again the message (maybe another instance of the MDB in the Pool ) and if the RuntimeException is re-thrown everything start from the beginning.
This could crash the Application server.

I hope this could help You.
If you want to remove the Stateful You have to call a Method annotated with @Remove.
But You can also annotate the Statefule with the @StatefulTimeout this means that after the unit value that You speified the container should remove the bean if the bean is idle.
Pay attention that the @PreDestroy Method is not called in this case (@StatefulTimeout).

Hope this help