K Zhang

Greenhorn
+ Follow
since Nov 29, 2007
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 K Zhang

The pdf from pearson website only show that I took the exam.
Anyway, thanks for the explanation.

12 years ago
Congrats!!!
I have a question. Are you able to see the score report from any site?
I got an email from oracle today, saying I passed the certification.
But from pearson website, my cert status is still taken.
From cert view, I can see the following:
Test Start Date Exam Number Exam Title Grade Indicator
23-SEP-11 1Z0-866 Java Enterprise Edition 5 Enterprise Architect Certified Master Essay Exam TAKEN

22-SEP-11 1Z0-865 Java Enterprise Edition 5 Enterprise Architect Certified Master Downloadable Project PASS

Not both are marked "PASS".
Do you see the same thing or something different?
12 years ago
Sorry, I used scenario 1. Scenario 2 is ridiculous.
I mistyped option1 & 2 in my previous reply.
I'll go with scenario 2 because scenario 1 is a bit ridiculous for an internet retail shop.
And it's described as a matter of fact in the current situation for big smokes.
In the design, I'll propose scenario 2 to remove the manual intervention of credit card processing.
I think it should be acceptable.
Thank you for your reply!
Hello all,

Thank you for your replies.
Yes I'm using red hat enterprise 5.
I also did some research that this Java FileLock is Advisory locking, which doesn't guarantee the real file lock.
12 years ago
Hello all,

I wonder if someone could help me understand the behavior of Java FileLock.
I have one java program to lock the file:


And I have another program writing to the same file


When I run the first program in 2 java threads. The thread that started later would throw an exception, which is as expected, because file is already locked exclusively.
However, when I ran the second program immediately after the first program was started, the string was still written to the file, while the file was supposed to be locked exclusively.
Is it an expected behavior?
Is there any way in Java to acquire the file lock and prevent any application from writing into it?
12 years ago
1. I also came across similar issues when I was working on the JSF design part. (I'm still working on it now)
My solution was to mention that JSF implicitly uses Controller. But I didn't add the FacesServlet to any of my diagrams.
EJBs are injected into backing beans directly in my design. One backing bean is used for each JSP page.
I believe this is one of the correct ways to do it.

2. I didn't show the interface for EJB in the diagram. Instead, I mentioned it in the design.

3. Component diagram from the book seems not detailed enough. I still need to work on my assignment to find out which level of details is proper. In my opinion, you need to understand what information people need to get from your diagram. If there's some important information missing in the component diagram, then you should elaborate it further. Otherwise, it's also Ok to adopt the diagram from the book.
I agree with Jesson that JMS connection creation details is unnecessary to be included in the sequence diagram.
Hello all,

I'm currently working on SCEA part II. However, I have some doubt about the description of the assignment.
I got the big smokes cigar shop assignment. The case description says "They use a point of sale (POS) system to manually enter a customer's credit card numbers and expiration date. Merchant Bank can handle Internet transactions. "
I can think of 2 possibilities:
1. Customers enter their credit card information, and the credit card information is sent from cigar shop application to Marchant Bank for validation and transaction. In this case, the bank is doing the work of "handle Internet transactions". But then, there's no step of "manually enter a customer's credit card numbers and expiration date".
2. Customer enters credit card information when placing an order. The order message will be placed in a queue. Then sales person would check the order and use POS to enter the credit card information, and do the validation and transaction. In this case, this asynchronous logic is quite strange to me, because I've never seen any webshop implementing the asynchronous credit card processing. Besides, is it allowed to store the credit card information from the customer? I don't think so.

Without words like "POS", "manually", I would definitely go for option 1. Currently, I'm a bit confused.
Can somebody give me a hint? I'm a bit scared to make the assumption that is contradictory to the case description.
Thanks.

Head First JSP & Servlet is the best book for the exam and beginners.
Sorry for not replying for a long time.
After the exam, I seldom visited this forum until now I start to prepare another exam.
I spent 1 month reading the book and doing all the mock exams (from the book and enthuware) I had, then I booked the exam and passed it.
After you install MQ, first you need to create a queue manager.
Suppose the MQ bin directory is in your system path, use
crtmqm -q QM1
Then start the queue manager
strmqm
Then connect to queue manager to use control command
runmqsc QM1
Then define a local queue
define ql(testQ) descr('Test Q')

Then use "end" to quit the command.
The final step is to run samples like "amqsput" and "amqsget" to send and receive message, and they are also available in the bin directory.
15 years ago
I passed the exam with 97% correct rate, which makes me feel so lucky!!!
Thanks a lot!
I'm more confident now, and I just scheduled the exam today.