Win a copy of Java by Comparison (eBook) this week in the Java in General forum!

Demetrio Carvalho

+ Follow
since Oct 24, 2010
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 Demetrio Carvalho

Thanks to everyone who has answer my question.
6 years ago
Hello. When I tried to install JBossTools in Eclipse Indigo I got this message: "Could not find". I am thinking this is because the network restriction where I work. Then, I downloaded the JBossTools zip in my home and I tryed to install in my work Eclipse Indigo and then I go this error "Unable to read repository at jar:file:/C:/_D/Instaladores/!/content.xml. error in opening zip file". Could someone help me with this message? Is there some workaround to resolve the network restrictions? I tried change some settings in eclipse.ini without sucess.
6 years ago
Eric, I am new to IBM world, but I believe that this certification is very appropriate for architects, but, it is far away to be a substitute of SCEA. I am still unhappy with Oracle decision and I am looking for some certifications and directions to improve my skills as architect.
I would like to know if there are certifications in JBoss? I surf to and I type in search box looking for "certification" and I didn't find any thing.
6 years ago
I was preparing myself to SCEA exam, but because Oracle put course requirement about U$2,000.00, I gave up. Because I am working for a bank who make use of WebSphere, I decided for preparing myself to "IBM Exam - 667 Architectural Design of SOA Solutions". I carefully read the explanation in IBM website and I became very interested (
Could someone answer my following questions:
1) Is there some course requirement for Exam 667?
2) The list of RedBooks is too large. Is there some recomendable books?
3) Is the concept inside this exam still up-to-date? I noted that the certification is from 2007.
I created a Web Service using JaxWs. I belive that exist two ways to consume a web service in the client.
Option 1: using wconsume e putting the generated classes as stubs in the client.
Option 2: using Dynamic Proxy, whitch means, there wil be no files to be send to client as stubs. I imagine that the only advantage of this approach is that if the wsdl changed, there will be not need to generat stubs files. However it doesn't look too practical, as I will probably need to change something in the client code and recompiled anyway. I didn't use this tecnichy yet. I found this option ( when I was reaserching the reason why I need to generate proxy file when developping Java client but I didn't when I using .Net.

Then, I have two question:
1- What's the difference between stubs and Dynamic Proxy tecnich?
2-Why .Net client doesn't need proxies files? Or is there the files automaticlly generated and I don't know where to find? Am I loosing performance or security when using stubs versus dynamic proxy?

6 years ago
Hello everyone. I am still interested to find some articles to help me understand and apply JEE Patterns. It's amazing how many articles I found about Ganf of Four, but there is almost nothing about JEE Patterns. I found some paragraphs telling where are apply someones (for example, Front Controler in MVC), but I didn't find nothing to help me. Everything I found are basiclly class diagram and two or three sentences tell me about the objective. About GoF, I found real cases and good exercises. Can someone help me to find something close in JEE Pattern?

Thanks in advance.
Yegor and Jeanne, first of all, thanks for your help.

Jeanne, I went to the link you posted (, clicked in Download, which moved myself to and finally, after I clicked in every links,, I got a message "NOT FOUND The page you were looking for doesn't exist" ( What I had in my mind, it's to find some zip file to downloud whith EAR ou WAR and, possibility, some explanations in UML or even in texts tell me where was applied each Pattern from Blue Print. Even when I am logged in Java.Net and clicked in Get Source Code the conclusion is the same message "NOT FOUND ...". What I am doing wrong to get the Pet Store source, or did I make a mistake when I tried to download Pet Store as an example?

Yegor, I agree with you about "you should apply your own skills/experience in order to create one", but something whith help me a lot with the Gnag of Four Patterns, it was the examples I read in Paul Allen and Joseph Bambara. Other source, but only in portuguese, come from a site called Devmedia in my country. Both help me a lot to understand and start to apply the GoF patterns. It's true that I have so much to learn, but the begin with simple example make the things clearer.

If there is some site or eletronic magazine where I can find examples of JEE Pattern, I will be glad if somebody let me know it.
Hello. Where can I find the Pet Store example?
I was looking for JEE Patterns examples because I am preparing for
the SCEA exam and I am interesting in JEE Patterns. When I was looking for
examples, I read about JEE Pattern but I can't find it. The links I tried were:
I found some aplication ( but it wasn't
what I am looking for because I search for Java example.
At the end, I subsribed myself and sent messages to mail list, but the message returned as an error.

Demétrio Carvalho
Hello everybody. If I didn't make my question clear, please let me know.

Sharma Ashutosh, thanks for your answer, but, now I can't buy one more book. I am interested to know which JEE Patterns I shoud worry more for first part of the exam. Can you tell me?

Yegor Bugayenko, thanks for your answer. It helped me to focus my energy in JEE Pattern instead of GoF Pattern. Do you know which ones are more used in the exam first part?

How do I represent with a class diagram these situations:
1 - The Class cA that it is Inner Class inside Class cB. How do I desing the relationship between Classes cA and cB?
2 - The Class cC that receive a type of object cD as parameter. How do I desing the relationship between Classes cC and cD?
3 - The Class cE has a method mZ. The method mZ has a variable vX which is declare this way:
Object myObject = otherClass.newInstance();
myAbstractClass vX = (myAbstractClass) myObject;
In the last situation, I am wondering if I should show both class in the diagram:
the SuperClass (Object class) and the Abstract Class (myAbstractClass).
And, if I must show both, how do I represent the relationship between
the three classes: Object, OtherClass and MyAbstract.

Thanks in advance
I read sometime in a place which GoF Patterns are more commum to apper in SCEA exam but I can't remenber where I read.
Which GoF and J2EE Patterns should I give more attention in my studies?
I am using "Core J2EE Patterns: Best Practices and Design Strategies, Second Edition" but I know that some of the Patterns in this book are no more used. For example, in is possible to see a author pointing some J2EE Patterns no more used. Shoud I study just the most used? Then, which ones are most probably to appear in the exam?
About GoF, I am just using "O'Reilly - Head First Design Patterns - 2004". In that book, just some part of the GoF patterns are explained and this is making my learnning easier.
I know that every GoF patterns are useful, but for this moment, I am focused to be approved in the SCEA Part I exam.

Jeanne, first of all, thanks for your answer. I am just start to study for the exam. Do you have some idea when the Oracle will change from version 5 to 6 in the exam?

Thanks in advance
Hi. I am preparing to SCEA exam. I am using the sugestion found in I downlowed both the Java EE Tutorial version 5 e 6. I was intended to use only the newer version, but I noticed thar the older one is much longer than newer version. Which one I must use? The answer could easly be version 6 if it covered the same topics. But the version 5 has 1084 pages and it is exactly as the sugestion of CodeRanch has described. The version 6 has just 678 pages. The biggest deferences look to be about Security and Dependency Injection. Which version will be cover by exam? Every article I foun are talking only about version 5. I found excellent article comparing SCJP version but nothing about SCEA yet (

Ps.: Version 5: and Version 6:

Thanck in advance