Last week, we had the author of TDD for a Shopping Website LiveProject. Friday at 11am Ranch time, Steven Solomon will be hosting a live TDD session just for us. See for the agenda and registration link

Ren Shao

Ranch Hand
+ Follow
since Dec 23, 2002
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 Ren Shao

I didn't see such a question in the real exam. You just have to know what JAX-WS is used for.
Yes, I think the company should pay for it. As this few hundred dollars shouldn't be a big expense for the company. But when taking out of your own pocket could hurt a bit
Ok, since I've already passed the test, if your happen to reading this post, I can tell you that there's no such question in the real exam. I don't think it's in the objective. So you can safely ignore it.
The SCEA certification is not cheap, as it's got three parts. I wonder how many of you are able to get your company to pay for the certification?
I passed the test with 67% in Sydney/AUS today. I didn't get a good score because I underestimated it. It is tough, although everyone is saying it, I just want to say it again. If you haven't taken the exam yet, please be prepared. In my case the toughness can be interpreted in two aspects. Firstly there are quite a few questions that I was just now sure. Secondly I was confident with most of the questions and the mark was much lower than I expected. (which means I probably have made a lot mistakes in those 'confident' questions)

I'm a Chinese so I had to do a lot of exams during primary and high school. I'm like some other Chinese who think we are good at exams(which is actually wrong). This is one reason that I underestimated it. I accidently received some good scores in my previous certification test which also makes me think it's not as hard as people described.

I've seen some people saying high level understanding of some technologies (such as JSF) would be enough. I think it is enough for passing. However if you want to get 85%+ you just have to have detailed understanding(or lots of real experience) of them. I have about 4 years J2EE experience. I've never used JSF and EJB 3 as the company I worked for never had a clear plan to upgrade.

Design patterns (both classic patterns and the enterprise patters) are really really important. I'm lucky that I realised it when reading other people's experience. For any one who is going to this test, you'll never regret if you spent lots of time on design patterns. You should be knowing every single patterns (23 classic + 21 enterprise). A good practice I did was writing down every patterns(without looking the book) on a piece of paper and try to think of their pros & cons.

There are some patterns that I've never used (or even known) before preparing for this exam. I think they are definitely worth to be known. I guess some of you are like me, who bought the GoF book long time ago but never went through the pattern catalog. This is another reason I highlight the design patterns.

Studying JSF and EJB3 properly if you don't have or have few experience with them. Make simple application using JSF and EJB3. That will definitely secure you some questions.

The mark of my security section is quite low (33%) and I thought I did well in security. This is quite annoying. I found it's quite normal to get surprised after taking SCEA part 1. So if you want to get 70%, you must feel like you are going to get 85%.

I did find some questions very similar to those in mock exam. When you're doing mock exam please don't assume the provided answer is correct. Use your knowledge to judge.

It is a tough exam and I think basically does its job - qualifying a Java EE architect. However I don't think certain questions in the exam are as good as others. It must be very hard to create those questions so I don't complain.

Good luck to everyone else who's going to take this exam.

Hello Bhavin,
I found your experience of the exam very helpful, thanks for sharing them. I'm taking the exam on next Monday.

I've seen mock exam questions asking active replication and screen scrappers. Are they objectives of a real exam?

I found this question in one of the mock exam, is that in the scope of a real exam?

16.The new Dispatch API introduced in JAX-WS supports a fully dynamic service invocation.

Which statement defines a requirement for a JAX-WS dynamic service?

A.Only an XML Schema document and knowledge of the body of the message is required to build a client.
B.Requires only the WSDL document and knowledge of the header of the message is required to build a client.
C.No WSDL or XML Schema document or any other knowledge of the message layout is required to build a client.
D.JAX-WS support for a fully dynamic service invocation requires knowledge of a WSDL and the XML Schema document

The answer is C
I've no idea what the new dispatch API is.

I have a voucher which expires on Aug 31 2009. Can I make a booking before Aug 31 but schedule the exam date after August?

Thanks, but what about playing my specified wav file, not the default beep sound?
13 years ago
I'm writing a swing application, it loads data into a JTable. I want to play a beep (a very short wav file) every time a new entry is inserted into the table. (a bit like the alert sound in windows)

I know there're different ways to play sound. I don't want to use a full-feature sound library because you tend to write more code and it going to use more RAM. I just need a simply way to play the sound.

Any suggestions?
13 years ago
As mentioned in his book, Data Mapper is a layer to hide database access from domain objects. It's also recommended that data mapper shouldn't be exposed to domain layer.

However, as I've experienced, most of my domain logic involves database access so I have to expose my data mapper to domain layer.

I know that I can make interfaces to avoid referencing data mapper directly, but it doesn't make sense to me. If you have a DataMapper with "void updateData()" method, why would you make an interface with "void updateData()" and get the DataMapper to implement this interface? I think it's totally unnecessary. Could someone comment on this?

So my conclusion is that data mapper can't be hidden from domain logics (in most cases). right?
I'm using Axis2 and Rampart to encrypt SOAP messages. I'm trying to understand the structure of encrypted SOAP message.

My current understanding is, the soap body is encrypted using AES-128, and the AES key is encrypted and embedded in the soap header, in <xenc:EncryptedKey> tag. Is that right? could someone confirm? (or point out my mistakes)

Here's a encrypted SOAP request

14 years ago
I've been searching for Swing best practice for a long time, but it's still not quite clear.

The most 'best practice' suggests that 'java.swing.Action' should be used to encapsulate command, and use an ActionRegistry to get references to thoese actions.

But my problem is that most of my Action has to update UI components, so my Action must have reference to those text fields, table models, which have to be passed in as constructor arguments.

Please look at the folling code segment

Is thes all right? (I personally think it's not quite elegent)

But how to update UI componenets in action listeners ? any ideas?
15 years ago