Prasad Kumbhare

Greenhorn
+ Follow
since Oct 18, 2007
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 Prasad Kumbhare

I would suggest to use custom implementation of phase listener in this case. PhaseListener will execute after every phase or phase you mentioned. So after coming back from file management screen you can execute phase listener and get latest file attribute from database.
But with my experience of custom implementation of phase listener is, it takes some complex logic to determine when it should process or not.

Hoep this helps.
14 years ago
JSF
Please refer to this post. Did you try option suggested in there ?

https://coderanch.com/t/214433/JSF/java/render-myimage-from-backing-bean


14 years ago
JSF
Can you please post stacktrace of any exceptions you see in console ? When you say fails, I understood it throws some exceptions behind the scene.
14 years ago
JSF
If I understood your client correctly, you are trying to access EJB via JNDI looktup thorough JUnit test case. But JUnit runs out of container. Are you using Cactus or something or is this plain out of container JUnit client ?
If this is out of container JUnit you will not be able to access EJB vis JNDI lookup. No Initial context would be available in that case.

I also stuck across same question. I was wondering about not only Unspecified Security Context but about Unspecified Transaction Centext also. I didn't get exact answer but I could understood it little bit when I read specs, EJB-Core 13.6.5. It talks about "Handling of Methods that Run with “an unspecified transaction context."

The EJB specification does not prescribe how the container should manage the execution of a method
with an unspecified transaction context—the transaction semantics are left to the container implementation.



What specification mandates is Table 1 Operations Allowed in the Methods of a Stateful Session Bean on page 79. So it is container providers responsibility to handle such special cases.
I think same holds true for Unspecified Security Context also.

Still if somebody can make it more clearer that would be great.

Thanks,
Prasad
Here is one sample DD entry of env vairable.


Hope this helps.
About your second question I am really not sure. So I will try this and let you know.

Thanks,
Prasad

But quesiton says, Which statement characterizes stateless session beans? If we talk about having @PrePassivate in SLSB then question should have been , what callbacks are valid / allowed/ don't generate error in SLSB, or something like that. Makes sense ??
I think this could be problem in question.
If I understand your question correctly about Timer, you want to know how Timer works. Right ? I didn't get your question correctly I apologize.

Timer can be two types, programmatic and automatic.
For Programmatic Timer, you inject TimerService in your Bean and create Timer programmatically using one of the 4 createTimer methods of TimerService.

When Bean instantiates and come to the point where it can create timer, it creates Timer instance and Timer executes timeout callback method as specified while creating timer.

For Automatic Timer, we can use @Scheduler. You can specify when you want to run a particular task in schedule. Timer gets created automatically.
Timer doesn't die with Bean. Once it gets created and bean dies still Timer can execute in the server.

Below URL has some more good information on timer.

Timers in EJB3


Thanks.
Hi Chris,

Here is my web.xml

Vani,

To answer your questions, if servlet implements Single Thread Model then vendor can implement STM by creating multiple instances of servlet and make sure that every sevlet instance creates only one thread at a time.

Thanks.
Prasad
I assume you are talking about accessing same servlet from different computers and your servlet is not implementinng Single Thread Model.

In this case only one instance of servlet will be created. Depend upon how many requests you send to that servelt, that many number of threads will be generated. If you are sending 10 requests , 10 threds will be started by the server.

If your servlet implments Single Thread Model then picture changes little bit.

Hope this helps.

Thanks
I don't think you can use vouchers in US which are purchased from India. Refer below URL,

http://www.sun.com/training/certification/faq/index.html

There it says,

How do I purchase an exam?
Follow links to certification descriptions and follow easy steps to purchase online. Please note that exams must be purchased from the Sun country office or Web site in which they will be used.

The ways I am suggesting might not be best ones but I do this to remember method signatures.
1) I tried to code using these methods as much as possible. Doing that I remember them sometimes.
2) I write it down on piece of paper 2-3 times and go over them whenever get time.

Hope this will help.

Thanks!
Hi Chris,

I referred page 399 from HFSJ, but is is not showing any TLD there. I am referrig to second edition of this book for SCWCD 1.5. Page 399 is about how EL handles null values. Also the link mentioned points to sample web.xml files not TLD.

I went back to specs and now I got that I was looking at wrong page which was showing TLD elements for JSP 1.2.
But then, if Tomcat 5.5 implemets JSP 2.0, why should I get the error I menioned below. Why Tomacat it forcing me to mention JSP version ?

Thanks!
beanName can be used same as class attribute to create new instance of specified class. Please refer JSP 2.0 Spec page 135 for some more explanation.