Tao Liu

Greenhorn
+ Follow
since Nov 02, 2001
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
In last 30 days
0
Forums and Threads

Recent posts by Tao Liu

Took it on June 5th. VA
[ June 07, 2004: Message edited by: Tao Liu ]
With 2 EARs, I can recreate the ClassCastException in WAS 4.0.4 (as in WSAD5), but it's OK (no exception) in WAS 5.0. I make the two configurations equivalent according to WebSphere documentation. Could you please explain why it works on one version but not the other?
Thanks in advance,
-----------------------------------------------
The server configurations are set as default:
1) The module visibility of WAS 4.0.4 is J2EE (com.ibm.ws.classloader.J2EEApplicationMode=true);
disableJIT="false"
2) The server configuration of WAS 5.0:
Application classloader policy = MULTIPLE;
Application classloder mode = PARENT_FIRST
WAR classloader policy = MODULE
disableJIT="false"
[ May 28, 2003: Message edited by: Tao Liu ]
21 years ago
So, does it mean by that the stateless session doesn't have to be thread-safe?
"If multiple threads try to access the same client context, an exception will be generated." Could you please tell me what type of exception will be thrown?
Thanks a lot,
tao
When did you get ClassCastException? Is it thrown when you cast Vector.get(int) or sth else? It seems a RMI issue.
I got a similar problem when I tried to pass ArrayList across .ear files, but that is because ArrayList uses transient member variables to hold its elements. Vector is a totally different story, it holds its element with this:
protected Object elementData[];
So it's weird unable to use Vector across .ears.
One possible way to avoid ClassCastException is to package the common objects in a separate .jar and put this .jar in a shared directory such as $WAS_ROOT/lib/app. This is also recommeneded in WebSphere InfoCenter.
tao
[ May 14, 2003: Message edited by: Tao Liu ]
[ May 21, 2003: Message edited by: Tao Liu ]
[ May 21, 2003: Message edited by: Tao Liu ]
21 years ago
Hanumant,
Your book will definately help us a lot for the SCWCD exam. I have read the two sample chapters, which shows a lot attractive features of a good book. I am wondering whether there will be an acompaning booklet, which sketches the key ideas and points covered in the book and elaborate a little bit on common pitfalls and traps. I believe this kind of things will be a great help for passing the exam.
Many thanks,
tao
My question about the voucher has been forwarded to Prometric, so it seems not a problem in voucher itself.
I can register the exam at Prometric site now, thought I have never got any contact from them.
[ April 24, 2002: Message edited by: tao liu ]
I also got the voucher number yesterday. But 2test website seems not accepting that number.
The Voucher is not authorized for this test (26)
was shown when I tried to register the real test. I've just sent an e-mail to IBM for this.
tao
[ April 18, 2002: Message edited by: tao liu ]
My question is about "EncodedPage" servlet on page 106 of Marty Hall's Core Servlet & JSP.
I can make this servlet run without problem, but
the page becomes blank if I hit the browser's "refesh" button.
This may be because of close() call, but how can I get the page back?
Browser: IE 6.0
Servlet container: Tomcat 4.0
OS: Win2k
Thanks,
tao
--------------------
PS. Core Servlet book is free now at http://pdf.coreservlets.com/
The example is in Ch. 4.
22 years ago
1. The output of 2.jsp is an empty string since "str" is created with the default constructor.
2. When the link is clicked in 1.jsp, the output of 2.jsp is still empty, which is also strange for me. "str" is a Session Bean, and it can pass info from page to page by getXX or setXX. The only thing I can find: "str" in <% str="hello"; %> is not "str" Bean, so it can't pass info from 1.jsp to 2.jsp.
[ January 19, 2002: Message edited by: tao liu ]
Count me in, too.
The info in this group is really helpful.
Thanks,
tao
After one month intense reading, I finally passed 486 with 85%. I'd like to thank Sandeep and all others in this group for the thorough info, it helps me a lot and saves me a lot of time.
The books I read are UML distilled(Fowler's) and Applying UML(Larman's 2ed) according to the recommendation. Larman's book is a big one -- 600+ pages, but I could score higher if I had read it twice. The real exam is like a small OO project, many diagrams are shared in the questions. Other aspects are very similar to what's been described in the previous posts.
Thanks,
tao
Thanks, Ruilin.
For 18), I read p97 of UML Distalled 2nd again, but still
couldn't get anything wrong with choice a).
Here is the link of sample test: http://certify.torolab.ibm.com
tao
Hi,
I took the sample test, but missed a static modeling
question. Here listed are three of the questions I'm
not sure of. Please tell me if my answers are incorrect.
Thanks,
tao
===========================================================
20) Given the requirement statement, which of the following public methods would be used in a related sequence diagram?
a) aBalance.subtract( anAmount )
b) anAmortizationTable.calculateInterestUsing( aPayment )
c) anAmortizationTable.apply( aPayment )
d) aMortgage.apply( aPayment )
Multiple Select - Please select all of the correct answers (this question has 2 correct choices). http://certify.torolab.ibm.com/figures/test486F14.gif
==> b,d
18) Referring to the partial class diagram in Figure Qualified Association, which of the following BEST describes the relationship?
a) Access to SalesLineItems is by Product. A SalesTransaction can have multiple SalesLineItems for one Product.
b) Access to Products is by SalesLineItem. A SalesTransaction has zero or more SalesLineItems for one Product.
c) SalesTransactions contain Products, which are listed by one or more SalesLineItems.
d) SalesLineItems are for a quantity of one or more Products for a particular SalesTransaction.
Single Select - Please select the best answer (one and only one choice must be selected). http://certify.torolab.ibm.com/figures/test486F12.gif
==> a
10) Benefits resulting from designing and implementing layered application components include:
a) reduced initial design time.
b) reduced time for initial development cycle.
c) maintainability and reuse of the application components
Single Select - Please select the best answer (one and only one choice must be selected).
==> c