Win a copy of Rust Web Development this week in the Other Languages forum!

Slim Soltani Dridi

+ Follow
since Feb 04, 2014
Slim likes ...
Spring Java Windows
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 Slim Soltani Dridi

Hey guys,

I saw on the Ivan's notes, a topic on XML in general, especially DTD and Schema.
Do I need to know anything about theses ?

Thanks !

Himai Minh wrote:Hi, Slim. Congratulation on passing this exam.
I have a question: do we need to study JTS and JTA specifications?
Or, do we just need to briefly know what they are for the exam?

For me, it was important to know the specification about JTA and JTS because i didn't know how it works at all ! And the JTA's specification help me to understand how to understand Bean managed transaction demarcation.

This is a difficult exam, but a nice one to have on your belt. It is not specifications driven (like WCD, EJB, JPA), nor programmatic driven (like JP). Understanding the concepts is crucial.

I heard that it's the most difficult exam and it's focused on SOA pattern. I bought the book Java web service up and running, I have already started the book.

I think this time, I will participate a lot in this forum in order to understand correctly the subject. I have bought also the enthuware mocks exam of OCEEJWS. The part of book's reference, notes, or specification is empty. I don't know if it's normal or not.

I'll try to pass this certification in six months maximum.
7 years ago
Hi everybody,

I passed OCEEJBD 6 last week and I got the certification with 81%.

I prepare this with :
1°) Enterprise JavaBeans 3.1 by Andrew Lee Rubinger, Bill Burke (read 3 times)
2°) EJB Cookbook 3.1 (read 2 times)
3°) EJB 3.1 Specification (read 1 times and refered to this pdf when i had a doubt)
4°) JTA Specification
5°) JTS Specification
6°) EJB 3 - Des concepts à l'écriture du code. Guide du développeur (french book)
7°) Enthuware mocks exam
8°) Frits Walraven OCPEJBD 6 EJB 3.1 notes

I think EJB cookbook is the most important to see examples. But the must are the specification and Frits notes. Enthuware is quite good too.

With enthuware, my exam was between 80% to 92%. Some questions on the exam was a little bit strange compare to other exam or Enthuware's mocks .

Now, I'm going to prepare OCEJWSD.
7 years ago
Hey guys,

I achieved the certification of web components with 89%.
It took me about 4 months .
I red Head First JSP Servlet of Kathy Sierra and Bert Bates : Amazing, really useful, I think it's the best book for this certification. What a pity it's only for Java EE 5.
Further, I red the book from Charles Lyons for Java EE 6, but I didn't like the structure and approach of the book.
And I red the Servlet 3.0 Specification that's great. I practise a lot on my own website, the professionnal project of my job and a lot in Enthuware.

So now, I decided to go to EJB Certification.

Best Regards
7 years ago
Java 8 is about to release !
Source :

And because Java 8 is coming, OCPJP 8 will be arrived few month or one year after. Java 7 was finished in 2011 and OCPJP 7 was released at the end of 2011. There's just one thing it take a long time, it's the book for OCPJP 8.

Source :

Read this last link, it's very interesting.

The only differences between OCPJP 6 and 7 are : JDBC Topic and Singleton design pattern. The other design pattern, you can learn these topic on OCEJWCD.

The best way to choose is to read the objective of each certification :



There's any bad choice, just make the best choice for you (it depends on your experience and your goal). Maybe, but I don't know (because I did the certification path of Java 6) it's easier to do OCAJP 7 and after OCPJP 7 (because OCPJP 6 is hard )!
When the program start, it calls the main method and does "new House("x");
new House("x") call the constructor House(String name).
During the compilation, House(String name) saw the keyword "this" ... so it didn't add a super() keyword. If it's not the case, It add a super() keyword without ARGS !
The constructor House(String name) calls House() without arg ! And this constructor, because you didn't put a keyword at the beginning, add the super() keyword. And the super keyword refer to superclass Building() (which refer to superclass constructor of Object()).

You can go to the tutorial on the website of Oracle :
Could you say us what is your level in Java development ?
If you have no experience, second option is better because the first certification is easier than OCPJP 6 (OCPJP 6 is almost the same knowledge at OCPJP 7, the only difference is the Java's version).
If you have some experience, go to OCPJP6 (because the book of Kathy Sierra is amazing) and ... you have two choice after.

1°) Continue to OCPJP 7 (but I don't think it's a great idea ... OCPJP8 is about to release and there isn't a big difference between java 7 and 6).
2°) Continue to another level of certification like OCEWCD ... until OCPJP8 will be out !
OCPJP 7 Is harder than OCPJP 6. So I think it's better to start with OCPJP 6 and continued with OCPJP 8 after (coming very soon).
For example, you are in a hotel. You want to find your girlfriend "Carrie", but she is in a room (number 9) with others friends of her "Maria" and "Alexandra".

The hashcode is like the number of the room. If you take the number 6, perhaps you will find a girl with the name Carrie, but it's not your friend. Otherwise, If you try to find someone in number 9, it's not sure that your friend is the first person that you meet (front of the door). But she's in the same room, it's sure.

So this is the reason why if two objects have the same hashcode, they may be equal, but it's not sure ! If you find the real Carrie, it means the hashcode and equals are true ! If you find an other "Carrie", the hashcode will be false, and because the hashcode is false, the equals is also false.

I hope you have a good understanding of my thinking.
Head First JSP and Servlet is a must but it's not enough. You have to complete this with Servlet 3.0 Specification and Enthuware mocks.
Spring, JSF, Jersey, Struts, .... All of this framework use Servlet and JSP Specification.
So yes ! Of course, It's really useful to understand the mechanism under all of the web framework
If you want to have a connection to the Database. You can do that in the constructor and init method. But it's not that the most important.
To have a connection to the database, you have to provide either a URL/URI or a connection Path (DBURL).

You can implement that directly in the constructor, but if you want to change the DBURL / Path of Database, you have to change your code and recompile. It's not a good idea.

The good point is to set the DBURL in init parameter either in the servlet or in the context application.

In the servlet you have to create an init parameter like that :

In the application context :

It's easier and better to change the value in the Web.xml (even the designer can do that) to change directly the code itself.
And web.xml can be read only when the class become a true servlet (during the call of init method).

init method can have an access to ServletConfig to have either servlet init param or context application init param.

Hey everybody,

I'm about to finish my study on Web Component and I have already planned a date to pass the exam (around May 2014). And I want to plan the next one ... but I don't know which exam I will take next to SCWCD because my natural choice will be EJB, but my professional experience require a big knowledge about Web Services.
Do you think it's better to focus on web service at the beginning or EJB ?

Maybe it's better if I say, do I need some knowledge from EJB to start Web services, or some knowledge about Web Services to start EJB ?

If I want to start Web Services, which book do you recommend (if there is a book ) ? For EJB, I have already bought the edition from O'reilly, EJB 3.1.

I saw on this link ScdjwsLinks the following book : java web services up and running. What do you think about this book ?

Best Regards