Win a copy of Spark in Action this week in the Open Source Projects forum!

Alex Zhang

Ranch Hand
+ Follow
since Apr 19, 2001
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 Alex Zhang

Before I dislike documentation, I just thought it was a kind of wasting, esp when the time frame is limited. Whereas good documentation DOES help replication of idea and skills. Someone may argue only few ppl get involved in the projects or even only the developer itself involved may it not be so neccessary. Whereas to me, I think it helpful in communication not only to the rest of the developers but also your boss and the most important, YOUR CLIENT. And it provides a standardised means of language for discussion.
Hey BTW, Do you think Javaranch should use java technology for this web instead of using cgi?!
I think it is not good for a group of Java supporters to use non-Java technology to discuss Java technology.
I must be the 1st volunteer to take part in the design and implementation if it will be migrated to Java platform. Or we should take a look at!!! :roll:
For me, the value of Entity Bean or considering using it is the power of transaction and persistance management, and it is what the spec wants J2EE to provide to the user (the developer). So, when someone say "I am going to use Entity Bean", most likely I would think they have considered the benefits and the power of Entity Bean over other methods like Session Bean + Data Access RowSet. Surely entity bean is not a total solution for data access unless we don't have so many patterns in this field. But what I hold is when we choose to use it, we should take less consideration over data persistence and transaction management. Do you agree?
Quote from J2EE Tutorial
What Is a Session Bean?
"As its name suggests, a session bean is similar to an interactive session. A session bean is not shared--it may have just one client, in the same way that an interactive session may have just one user..."
What Is an Entity Bean?
"What Makes Entity Beans Different from Session Beans?
Entity beans differ from session beans in several ways. Entity beans are persistent, allow shared access, have primary keys, and may participate in relationships with other entity beans.
Shared Access
Entity beans may be shared by multiple clients..."
I think what you concern or we concern is how the entity bean presist data, if it is CMP, the persistence job is handled by the container, and what I experience is whenever I call the set methods, it presists, and when I have lock the record by other means, the operation suspends.
And with BMP, it persists whenever the ejbStore method is invoked, so I think it is not so critical that the container will handle such jobs for us.
U buy the assignment voucher from where U bought your part 1 voucher. And several days later, in my case 4 days, they will reply you via email telling that your assignment can be downloaded.
So you can just login to
and download your copy!
Go ahead man!
As I know, the actual number of bean instance is vendor specific but entity bean can be accessed by multiple client. So It may be single or multiple for the entity bean instance, whereas to the remote object of the entity bean, every client should have their own proxy object to that bean.
Great to Learn that You have made it and well. You know I have just got my part 2, exam questions and going to digest it (once I can have time from my tedious office work!!! )
Let's discuss the question once U have got yours too!
Hi, I hope I have not made a mistake in the understanding of EJB or your question. To what I know is the ejbPassivate together with other ejb<xxx> methods, they are the callback methods for the Container when the state of the bean has changed. So we don't call them directly.
And it is all up to the vendors who implement the EJB Server for the method of handling the calling of the callback methods. :roll:
U know I am absolutely agree that it is too common or Sun has just made it too easy for the SCJP exam, I am afraid it is getting to be another MCSE or MCSD. That will worsen the status of the exam.
The time allow for the whole exam should be 1 and a half hour, if I have not made a mistake, but I just spent not more than an hour for the whole exam. Actually I am afraid I have missed something or overlook something so I have checked thru the ans word by word twice. So I don't think time is really a concern.
About the questions, there are several questions about case study that requires u to go thru them before answering. But luckily that, the key points or requirements for design concern are seperated in point form note which makes it easier for locating.
Sorry for missing something...
If you have not been to Ian's page, you must have a look there as it can help you to know how much you know and can sum up what is required for your exam.
But You have not taken the Programmer exam nor the Web developer exam?
Isn't it a must for having the programmer exam before the architect exam?
As I remember it seems we need to take the programmer exam first.
Taking about the exam, I dont think you should be so nervous about it. Once you have experience in working in enterprise application design and development, and know what they require in the several aspects mentioned by Sun are enough.
It doesn't mean this is just a simple exam and make sure you know the related topics to J2EE well.
Thx everybody here! I have taken my exam on monday and passed with 85%. Actually the questions are not tough but there are some confusing in paper. Or we should be careful about it. Just as mentioned many many times here, the questions about security, i18n, design and uml are just some basic questions. But I think more effort should be put in part EJB and about applicability.
I am going to get the voucher for the assignment exam. Anyway Thx alot
OH THX ROBIN, but to the legacy and protocol parts, I really can find no materials about them, can you email or post yours to me...
Many thxs!
To my understanding, sandbox is a place with very restricted resource access right for untrusted code to run in. It is an idea introduced in Java 1.0. But to protection domains, it grouped certain resources or classes in the pc to form a domain, if downloaded and untrusted needs to accept the class mentioned in that area, they need to be verified by the policy. If they have not granted the rights they cannot use those resources.
If I have made any mistake, please correct me.