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

Kaarthik Sivashanmugam

Greenhorn
+ Follow
since May 29, 2004
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 Kaarthik Sivashanmugam

Thanks for the quick response.

I am not explicitly opening or closing sessions. I just use getHibernateTemplate(). I think Spring opens and closes session for every method call.

A typical method in my DAO would look like:

I am interested in reusing the same session object across multiple doInHibernate() calls.

I also tried using a HibernateTemplate object as a instance variable in my DAO and use the instance variable (and hence the same template) to carry out multiple methods; that didnt seem to help either. A new session is used in every method call.
[ February 22, 2005: Message edited by: Kaarthik Sivashanmugam ]
I am using Hibernate and Spring in my project. My DAO has several methods like
getEntity()
getRelatedEntities()
etc.

Since the related entities are loaded lazily, I want to reuse the session across multiple method calls. I want to make sure that getHibernateTemplate() in all the methods in my DAO use the same session instead of creating one for each method call. I have tried using "HibernateTransactionManager" with "LocalSessionFactory"; but whenever I make a call to the DAO, it throws an exception that says "no session is bound or session closed". Do I have to explicitly get a session in the DAO and bind it to the current thread of DAO, so that the session is retained across all method calls in that DAO ?

Also, the use of SessionFactoryUtils.getSession() method is not very clear to me. When and where can it be used ?

Responses are much appreciated.
Today I took SCDJWS exam and got 81%

I used the following resources to prepare for the exam:

1. J2EE WebServices by RMH (helpful++)
2. Mikalai Zaikin's SCDJWS study guide (helpful+++++). Thanks MZ. Great job !
3. WS-BP 1.0 as a reference (helpful+)
4. Mikalai Zaikin's quiz (helpful+...but I would have been more happy if it offered more for what it costs)

About the exam:
1. Most questions are simple. You can answer them correctly if you know finer details.
2. I found security related questions difficult to answer. Got only 50% in security.
3. WSDL, UDDI and JAXR questions were easy
4. Two questions from JSP/EJB specs.
5. I lost some points in "Endpoint Architecture" related objective
15 years ago
WS-Basic Profile overrides SOAP specs in some aspects. In the exam, if there is a question about the validity of a SOAP message, what is the reference to use to check for the validity ? Is it the WS-Basic Profile or the SOAP specs ?
SCDJWS objectives are categorized into 11 sections; some with several sub-sections and some with fewer subsections.

Is it valid to assume that the number of questions asked under each section in the exam is proportional to the number of subsections listed under the sections? In other words, how are the exam questions distributed among these sections.
[ January 27, 2005: Message edited by: Kaarthik Sivashanmugam ]
It can run in EJB container also, if you are exposing your endpoint as stateless session bean
Thanks for your reply, Valentin !

In the mean time, I cross-checked with the book "J2EE Web Services" by Richar Monson-Haefel. It says

Neither SOAP 1.1 nor the BP explicity prohibits intermediaries from modifying the contents of the Body element. As a result, the ultimate reciever has no way of knowing if the application specific data has changed somewhere along the message path. SOAP 1.2 reduces this uncertainty by explictly prohibiting certain intermediaries, called forwarding intermediaries, from changing the contents of the Body element and recommeding that all other intermediaries, called active intermiediaries, use a header block to document any chances to the Body element.



So, looks like JAX-RPC message handlers fall under "active intermediaries". Any idea if JAX-RPC Message handlers can be mde "forwarding intermediaries" ?
Can Message Handlers modify SOAP Body ?

I remember reading that SOAP intermediaries (a.k.a Message Handlers) cannot change the Body part of a SOAP Message.

Please correct me if I am wrong. I am confused after reading "Handler Scenarios" in MZ's guide that says Handlers must be able to transform just parts of the body.
Thanks, Ming, Bert and Venu !

Bert, I took the final mock exam the day before the actual exam. I didnt get a good score. It was 49/69 (71%). However, I was sure that I was going to get a much better score in the actual exam. The reason is that for most of the questions that I answered wrong, my answers were proper subsets of the actual correct answers. If only I had the clue on number of correct answers, I would have been more careful while answering and would have scored a little more. As you all know, the actual exam has a hint on the number of correct answers for each question and thats why I could score better. Apart from the hints, difficulty-wise, the mock exam was similar to that of the actual exam.

Thanks for writing such a wonderful book, Bert (and Bryan and Kathy). I am looking forward for your next book (on Design Patterns? ).
15 years ago
Hi all,
This info might be encouraging for the ppl who want to take SCWCD 1.4..so here are the details:

When I was 50% done with SCWCD Exam Study Kit, the book Head First Servlets and JSP was released and (like any other fan of "Head First" series) I decided to buy the book and go for SCWCD 1.4 instead of SCWCD 1.3. I completed reading the new book in 3 weeks. I didnt use any other book or study materials or practice tests and I took the exam today. The exam was not very difficult. A couple of questions were confusing and I had to pick up the best possible answer. I might have lost some points here. Though I was disappointed by the fact that I could not maintain my track record of 90%+ score in the Sun certification exams, I was glad that it did not get worse.

My general comments is that the book Head First Servlets and JSP is sufficient to pass the exam with the good score.

Good Luck !

regards,
Kaarthik
[ October 12, 2004: Message edited by: Kaarthik Sivashanmugam ]
15 years ago
Hi All,
What are the criteria to be considered while selecting an application server for a project ? And as a related question, are there any disadvantages in using free application servers like JBoss ?

Your response will be much appreciated.

Thanks,
Kaarthik
Hi all,
I took SCBCD today and cleared it with 94 %. The test was neither too difficult, nor too easy. After the preparation for about a month and a half (about 2 hours per weekday and 5 hours per weekend-day), it appeared moderately easy (and moderately difficult). Had lots of questions on MDB and EJB QL.

I read HFEJB once, tooks mock tests from SoftBCD, INE Systems, ejbCertificate, JDiscuss and JPilot and used Mikalai Zaikin's SCBCD guide and then I was all set to go. Some posts from Java ranch were really helpful to understand the basics better rather than spending time memorizing stuff. Occasionally I had to refer to the specs as some info from the above sources contradicted with others.

Next, I am planning to appear for SCWCD.

Good Luck to all who are preparing for SCBCD and other exams.

regards,
Karthik
16 years ago
Page 559 in HFEJB says the same.. (Client Scenario #2)
Ian, Thanks a bunch for giving your simulator free of cost.
Thanks for your reply, Jef. It did not answer my question though. What I have quoted in my posting is the last point in the passivation rules. This is mentioned in the specs in addition to what you have added in your posting. I wanted to understand what I have quoted from the specs.