Alec Shcherbakov

Greenhorn
+ Follow
since Feb 04, 2004
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 Alec Shcherbakov

Congrats!

Don't be surprised with your component diagram score - majority of people experience the same as component diagram is actually the one that depicts the whole architecture, including design patterns.
Hi Pankaj,

Originally posted by Pankaj Mishra:
Thanks Alec,

Could you pls answer a few more questions



1.In which of the two diagrams(component or sequence) did you show the DTOs.

This question deals with the level of details. I would answer as follows:
a) I did design my solution keeping in mind that DTOs will be used to transfer data between components.
b) I haven't explicitly shown DTOs on any diagram as DTOs appeared to be below the detail level of my diagrams. You can show them or not, on component or sequence diagram - it's all up to you. Any choice would be correct provided that you use them appropriately.
Another point to meditate on: you need to avoid creating extremely complex diagrams. YOur diagrams should be easy to read. If you feel you really need to put too many details, you might consider moving a component to a separate diagram that would depict its internals.

2.How did you do the state management for the Java client. Did you use an SFSB or client side management ?

I used client-side session management. But it doens't mean SFSB is a wrong choice. Both options have pros and cons, be prepared to defend your choice. Part 3 may well have questions similar to this one.

Could you also refer some sources where I can find examples showing state management using java client or SFSBs.

Google will be the answer, my friend. There's just a lot of resources and I wouldn't like to flood the topic.

3.In the Component Diagrams given in Mark Cade only the 'dependency' relationship between
various components is shown.In case we need to show the 'generalization'(inheritance) or
'realization' relationships then how do we show them ?

I personally think that dependencies should be depicted in the class diagram. Component diagram is a higher level view of the architecture. Though in some cases you can show dependencies between classes within component but this should be an exception to the rule.

Hope this helps!

Originally posted by Ajith Kallambella:
Congratulations! Hope you stick around and offer some help to other folks.


I'll try!
By the way, do you know if there's a topic watch feature at Javaranch? On other forums I can mark a topic as "watched" and get e-mails every time there's a new post in the topic.

Originally posted by Pankaj Mishra:
Congrats Alec !!

Its a great score.Could u pls tell me how did u represent the 'composite entity' design pattern both in component diagram and the sequence diagram.

Thanks
Pankaj



I haven't explicitly used this pattern. Though having analyzed the business object model I did combine some business entities into one component in my component diagram.

Originally posted by Theodore Casser:
Depends on where you are and when they mail out the certificate, honestly. For me (in Maryland, USA), it takes about five business days for certificates to arrive.

Congrats on passing - that's wonderful news.



Thanks much - hope all those months were not spent in vain.
By the way, when you found your part 2 status became "passed" in CertManager, was your certification status on the certification database changed to passed at the same time? For me it still shows pending, though it's been already 5 days sin ceCertManager status turned to "passed"...
I'm not sure if I need to worry or this is just a matter of time.

Thanks!

Alec

Originally posted by chao cai:
what solution did you use to persistence flight,equipment,segment,seat..?
did you introduce the concept Flight Timetable?



Trying to avoid saying too much:
I used Fast Lane Reader pattern with assumption that some external process (sort of a nightly job) would update the flight information in the database at a predefined interval.

Originally posted by Duren Lee:
Congratulation! Alec


How long did u wait for yr result?

Duren


I uploaded my part 2 on Oct 5 and took my part3 next day. The CertManager was updated Oct 31. So it's about 4 weeks.
Do you know when I can expect the paper certificate?
Finally it's over!
I've just seen in CertManager that I've passed my part II with the following results:
Score: 90%
Class diagram: 44/44
Component diagram: 36/44
Sequence diagram: 10/12

However Sun certification database still shows my part 2 as pending. Is this just a matter of time?

Also, how long does it take to get the certificate package from Sun by mail?

Thanks!

Alec

Originally posted by Roman Lasenko:
Well, it looks like using a phone is the best option to communicate
with Prometric.
Last when time I tried to schedule test, I was not able to pass
voucher validation point - I have got timeout on validation request.

But calling them was not that bad - the service was fast and friendly...



Wow, that's exactly what was happening to me 4 months ago! And when I called them they just apologized for "temporary issues". But the same happened yesterday! Looks like their temporary issues tend to be permanent.
Now, yesterday I discovered that you can create literally an unlimited number of profiles with the same testing ID. The only thing they check is your e-mail. So, now I have 2 testing IDs and 3 profiles with different e-mails. .
Another astonishing discovery: as soon as I created my new profile and check the history, I found an exam that I've never even taken. The exam was taken in 2003 in Russia(!). I suspect somebody with the same name took that exam, but how on earth could this exam appear in my testing history?!

Oh boy, Prometric does have a nice "enterprise application". And the technical support of this application is rock solid and highly available: you can be sure you won't get a response from "webmaster" 24x7. At least I never did. I wonder if they ever thought about hiring at least on of the thousands of those SCEAs.

For the sake of fairness I should confirm: yes, their live CSRs are professional and friendly.
4 months ago I found out that I have 2 accounts with Prometric: with different testing IDs. I called them and asked to merge the accounts. They fixed that, but now when I'm trying to log in I get an error message. Interestingly, when I use their 'forgot password' feature I successfully get an e-mail with my login and password - the same ones that fail to get me in! Reporting this issue to Prometric haven't helped much: thay only say "PLease send an e-mail with your problem to webmaster@prometric.com". I've sent 4 such e-mails so far and no response. I'm very surprised such a reputable organization doesn't have a well-defined online account support procedure. :roll:

Of course I can register for my test by phone, but this juts takes much more time. If anybody has an experience of solving similar issues with Prometric, please share it.

[ October 03, 2005: Message edited by: Alec Shcherbakov ]
[ October 03, 2005: Message edited by: Alec Shcherbakov ]
I have a property file located in a 'resource' folder in my enterprise application. This file is used by several EJB and Web modules, that is why I put it into the EAR. The manifest files of these modules contain the name of the folder in the EAR where the property file is located ('resource'). However the property file can't be loaded by ClassLoader.getResource().
If I put the property file into a jar-file and include jar-file name into the maifest file, everything works fine. The application server is Websphere 5.1.
This approach is described here:
J2EE Class Loading Demystified
Can anybody make any suggestion on what I might be doing wrong?
Thank you.
Hi there,
My question is mostly about J2EE component design.
There is a complex distributed J2EE application with multiple JNDI namespaces, running on WebSphere. Web and EJB components use ServiceLocator in order to locate business services.
Initially I decided to use a specific ServiceLocator for every component that lives in a separate container, with BaseServiceLocator defining all the common functionality.
Another approach I am thinking of is to create a single ServiceLocator that would keep a HashMap of JNDI contexts. The benefit that I see in this way: whenever there is a need in a new JNDI context, you don't need to create a new ServiceLocator. You just add a new naming factory/provider pair into the configuration file and call getInstance(KEY) of the ServiceLocator. ServiceLocator will use the KEY to obtain JNDI properties from the configuration file, check if the HashMap contains a corresponding initial context, and, depending on the result, either return an existing initial context, or create a new one and store it in the HashMap.
Perhaps this HashMap has to be synchronized.
What do you, dear experts, think about this? Which approach you think is the most appropriate in terms of scalability and performance?
Hi there,
My question is mostly about J2EE component design.
There is a complex distributed J2EE application with multiple JNDI namespaces, running on WebSphere. Web and EJB components use ServiceLocator in order to locate business services.
Initially I decided to use a specific ServiceLocator for every component that lives in a separate container, with BaseServiceLocator defining all the common functionality.
Another approach I am thinking of is to create a single ServiceLocator that would keep a HashMap of JNDI contexts. The benefit that I see in this way: whenever there is a need in a new JNDI context, you don't need to create a new ServiceLocator. You just add a new naming factory/provider pair into the configuration file and call getInstance(KEY) of the ServiceLocator. ServiceLocator will use the KEY to obtain JNDI properties from the configuration file, check if the HashMap contains a corresponding initial context, and, depending on the result, either return an existing initial context, or create a new one and store it in the HashMap.
Perhaps this HashMap has to be synchronized.
What do you, dear experts, think about this? Which approach you think is the most appropriate in terms of scalability and performance?

Originally posted by Chris Mathews:

If it is created from within an EJB then it resides within the context of the EJB Container and hence is breaking the spec by creating threads. This is exactly the type of confusion that I was alluding to above.


As you mentioned JMS, can you outline how to do that with JMS? I'm new to JMS and would appreciate a word from expert.

Originally posted by Kyle Brown:
This is the kind of thing you should handle using JMS and an MDB instead of a Session bean. You should NEVER, EVER spin off your own threads inside EJB's. It espressly disallowed in the EJB spec.
Kyle


I know that, but in my case I actually use a thread only as a timeout feature. Thread's run() method contains only a session bean's method call.
Thread starts and if it doesn't end within a given timeout, the utility object throws a TimeoutException back to the calling session bean. The problem is how to clean up all those pending beans that are still alive because of waiting for a response from the legacy system. Or maybe I should leave this to EJB container?