Priyank Nautiyal

Greenhorn
+ Follow
since Oct 18, 2005
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 Priyank Nautiyal

Looks like so but not certain
Thanks anyways Mihai.
Rachna,

SCBCD Exam Kit is for the older version of SCBCD. EJB3 In Action is by Debu Panda and others and is meant for SCBCD 5.

Regards,
Priyank.
Hi,

The metadata-complete attribute is used to ignore the annotations of an entity/mapped-superclass.
I have doubt that if in a mapping file the metadata-complete="true" is specified for a mapped-superclass , are the annotations on it’s child classes also ignored?
Hi Guyz,

Read the specification of the Map interface.

"An object that maps keys to values. A map cannot contain duplicate keys; each key can map to at most one value. "
This means that you cannot have duplicate values for a key.

In case you do manage to do that it would not be a Map, rite

11 years ago
I was facing the same issue. In order to resolve it:
Verifiy that the Java Build Path is set up correctly.
In each project right-click -> Properties -> Java Build Path -> Order and Export. Move ‘JRE System Library (jdk)’ to the top and have it check marked.

After that I did what Manimaran worte, i.e. right click the EJB project and click Validate. All the errors disappeared.
Hope it helps.

Hi Rizwan,
Many many Congratulations. That's a great score.

What are your next plans?
15 years ago
Congratulations. Well done.
15 years ago
Hi Amit,
Answering your first question.If you want a particular class in your application to be notified when a session is activated that class should implement HttpSessionActivationListner. This could be because you may want to perform certain actions or checks in the class at the time the session is activated on the JVM. It can be any normal Java class, which is deployed inside the servlet container.
Hope this answers your question.
Hi All,
Thanks a lot for your wishes.
For those who wish to know my mode of preparation, i studied SCWCD kit throughly, then went in for Head First Servlets & JSP.I studied the details about design pattern from this link: http://java.sun.com/blueprints/patterns/catalog.html
I also studied the about the elements in DD and TLD. Finally i went in for mock exams.
All the best to those going to appear for their exams.
Congratulations,well done,i cleared mine with 85%
Hi All,

I cleared SCWCD exam with a score of 85%. The exam was a little tough though.
I got 2 questions on ejb-mapping in deployment descriptor, which unfourtunately i had left as I didn't expect them on the exam, but those of you who are going to appear for the exam,plz make sure you do go through them.
Also i got a question on mime-mapping in deployment descriptor.
Now am thinking of going for either SCBCD or OCP, can anyone suggest which one would be better choice and why? Also if you can suggest approx time required for preparation of these two exams.
Wishing All the best to those going to appear for their exam.
Hi All,

I cleared SCWCD exam with a score of 85%. The exam was a little tough though.
I got 2 questions on ejb-mapping in deployment descriptor, which unfourtunately i had left as I didin't expect them on the exam, but those of you who are going to appear for the exam,plz make sure you do go through them.
Also i got a question on mime-mapping in deployment descriptor.
Now am thinking of going for either SCBCD or OCP, can anyone suggest which one would be better choice and why? Also if you can suggest approx time required for preparation of these two exams.
Wishing All the best to those going to appear for their exam.
Hi,
Your 2nd question has already been answered by Rizwan, so i'll answer your 1st question.
The page object in JSP refers to the servlet that is generated after translation of a JSP i.e. it is same as the "this" keyword used in a Java file, while pageContext is a page scope object similar to request,session and application. So it is the pageContext object which refers to the page scope and not the page object as we might tend to think.
Hi Narendra,

I used tomcat-5.0.28 and it ran fine. Infact i did the same thing sucessfully on weblogic-8.1.3-SP3 as well.
Hi Narendra,
If by "target is not in scope of session" you meant target is in a scope higher than session i.e. context scope then yes i do support your argument.Vishnu's statement: "when we use sendRedirect with different context the session is not preserved",is absolutely right. This is because sessions are not shared across contexts. Though a session may be migrated from one context to another,at a particular instance a session can reside only in one context. So a session in one context is not available in another context.
Also I have used RequestDispatcher to forward a request to another context successfully.The code is given below:

//config is the implicit ServletConfig object
ServletContext sc=config.getServletContext();ServletContext context2=sc.getContext("/anotherContext");
RequestDispatcher rd=context2.getRequestDispatcher("/start.jsp");
rd.forward(request,response);

The first context(application) was named "test" while the second was named "anotherContext", which contains a JSP named start.jsp