Cristian Aionesa

Greenhorn
+ Follow
since Jan 05, 2007
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
(keep public parts private until JForum day)
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt
Moderation Tools

Recent posts by Cristian Aionesa

dayan kodippily wrote:Fernando,

Thank you very much.



Cristian,
I did Jee5, It's very important that you read and understand the topics very well, Sun Certified Enterprise Architect for Java EE Study Guide by Mark cade, Sun Certified Enterprise Architect for Java EE Study Guide by Paul Allen, although second book contains some old materials(prior to ejb3) it's really good for other topics, just start reading a chapter and doing some chapter related questions, that will help you to grasp things on a topic, don't try any mock questions or anything unless you have a understanding of the concepts, better stick into chapter or topic related questions until you get a fair understanding.
epractizelab part 1 exam is good specially when it's comes to design pattern related questions, and I have some good mock questions I used to collect over the time, tell me a convenient way i'll let you have my materials, good luck.



Hi Dayan!
Many thanks for your reply. Could you please send me your materials on cristian.aionesa@gmail.com.

Thanks again!
Hi Dayan,

I am preparing for the part 1 as well. Did you attend JEE 5 or 6 version of the exam? What materials did you used in tour learning process? How was the exam?
Many thanks for your answers and I hope that someone will help you start preparing for part 2.

Thanks a lot to you both, you are great helping people on this forum!

This facade design has caused me some problems, but I still think it is the best approach.
Hi to all,

I have a problem regarding throwing RecordNotFoundException. My Data class is a facade and I use two other classes DataAccessManager and LockingManager for the actual work. I'm not sure if RecordNotFoundException should be thrown by the DataAccessManager object and allowed by Data to propagate on the stack, or if Data should do something like this:



I like this approach more, but I'm not sure if this design doesn't contradict the idea behind facade pattern.
Any suggestions are welcomed
Ok, sure. I didn't know about zombie threads, my bad

Thanks!
Hi to all,

I have a problem regarding throwing RecordNotFoundException. My Data class is a facade, just like yours, and I use two other classes DataAccessManager and LockingManager for the actual work. I'm not sure if RecordNotFoundException should be thrown by the DataAccessManager object and allowed by Data to propagate on the stack, or if Data should do something like this:



I like this approach more, but I'm not sure if this design doesn't contradict the idea behind facade pattern.
Any suggestions are welcomed
Hi to all,

Roel, are you saying that in your opinion is a good practice to check a parameter passed to a method for null and throw an IllegalArgumentException in case of null before start using it? Or just for this project?
Here is a situation:



I don't know how you can deal with this situation. I think that in this specific case you can't do anything then letting a NullPointerException being thrown or check for null in the calling method. How did you validate the recNo parameter?

Regards,
Cristi

Hi to all,

Mikael, the API for class Object states:

The current thread must own this object's monitor. The thread releases ownership of this monitor and waits until another thread notifies threads waiting on this object's monitor to wake up either through a call to the notify method or the notifyAll method. The thread then waits until it can re-obtain ownership of the monitor and resumes execution.



So thread b entering wait() will release the lock on the data object, so thread a now can reaquire the lock and will be able to call update(). So there is no deadlock.

The idea behind a singleton Data object is that there is no point in having more Data objects as long as you have just one database file to access.

Hope this helps,

Cristi
Hi,

I think it's a good design. If all the locking checks are done at the facade level you don't have to use LockManager in FileAccessManager or viceVersa. And through this you get a clear separation of concerns. If anyone thinks otherwise please reply.Thanks.

Roel De Nijs wrote:Hi Cristian,

According to this thread you have unlimited time for completing your assignment (because you downloaded it before May 2009).

Concerning voucher expiration: it's true they can't be extended, but they certainly can replace it with another voucher. So if you ask it kindly to the sun education services of your country (where you bought the voucher I guess) they might replace it...

Kind regards,
Roel



Thanks a lot Roel! I knew about this thread but I didn't pay enough attention at the date that Sun mentioned

Vasya Pupkin wrote:1) if your voucher expires, schedule an exam and reschedule it later. This will buy you some time.
2) 1 year limit is only for newly purchased assignments.



1. About the voucher expiration, I called at Prometric and I was told that I have to schedule the exam and take the exam until the voucher expires. I was planning to do what you said.
2. I purchased my assignment on 22/11/2008, so I should have just one year to finish, but as you can see from the e-mail that I've got back from Sun, it says that I can upload it even if the 12 months expire.
Hi to all,

Fernando, I have the same problem as you do. Today I wrote to Sun:

"I've downloaded the assignement 9 months ago and in your mail you said that I have 12 months to complete it. I know that the voucher for the essay exam is valid for 12 months. About the assignement I know that I have no time limit. I will not be able to take the exam in the 12 months that I was supposed to, but I hope that when I'll finish the assignement I can buy a new voucher, because the old one will be expired, and upload my assignement and take the exam.

Can you please tell me if I'm right with this and otherwise clarify this situation for me?"




And this is the respononse that I got back:



"Hello Cristian,

You can still complete and upload your assignment. If your voucher for the essay expires you will need to purchase a new one as vouchers can not be extended. We highly recommend completing both as soon as possible.

Please let us know if we may be of further assistance. Thank you for choosing Sun products and services."



As far as I can tell the assignment will be valid even if the 12 months expires. This contradicts the info from Sun site: "
Time limit: 12 months from assignment download ". I don't know what to believe!! What do you think?

Mary John wrote:Hi
I have a question regarding using a method of LockManger in DataManager
my design is pretty much same as that described in Andrews book and follow the facade pattern for the Data class that implements the DBAccess interface.
So Data class calls methods of DataManager class(all read/write/find methods) and LockManager (lock, unlock) methods


My question is can I call LockManager method within methods of DataManager eg update, delete etc? is it against the principle of separation of classes?

pseudocode:

class DataManager{
public void updateRecord(data, recno, cookie)throws securityexception, rnf
{
if(LockManager.isLockedBy(recno,cookie))
throw new securityexception();
//continue update record

}

class LockMananger
{
map of locked records;
lock method returns cookie;
unlock method;
isLockedBy method return boolean;

}
[ April 17, 2008: Message edited by: Mary John ]





Hi Mary John,

I have the same problem as you did. How did you handle it? The solution that you gave is the only one that I can think of, but this make my classes depend of one another...or not?! If I reconsider my thoughts the fact that one class uses the services from another is not a bad thing. I'll probably follow your design.

What do you guys say about that? Any advice? Thanks.
I am using jboss seam.
My exact case:

I have a table with some data, in witch I have an "Edit" link for every row
Every time I hit "Edit" a new long running conversation starts. So, I can start one conversation and after that I can go back at the dataTable and start another one. On every conversation I have a selectedPerson object witch I try to edit.

My problem is that let's say that I am on Conv 1 and I try to switch to Conv 2. At Process_validation PHASE I have a validation error at a required field and my page is redisplayed with an error message. So far everything is ok.
I fill in a value for that field and I try to switch again to Conv2.
The problem is that when I get to Conv2 the values that apear on page are those from Conv1. So somehow data gets mixed.
If i don't get any validation error everything is ok, I can switch conversations without a problem. Data is OK.
I want to mention that I have looked at the "selectedPerson" from every conversation and the objects are ok. The data is not mixed. I believe is something at the JSF render response phase, but I am not sure.

Thanks for any help!
9 years ago
Hi!
I want to know if, from a backing bean's return String I can navigate to a servlet or a jsp and, if is possible, how. My application is using facelets and seam, so that might be a problem. I don't know how to create the navigation case for this.

Thanks!
10 years ago
JSF