This week's book giveaway is in the Agile and Other Processes forum.
We're giving away four copies of Darcy DeClute's Scrum Master Certification Guide: The Definitive Resource for Passing the CSM and PSM Exams and have Darcy DeClute on-line!
See this thread for details.

Prakash Krishnamurthy

Ranch Hand
+ Follow
since Oct 08, 2002
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 Prakash Krishnamurthy


Since this is a stateless bean, it shouldn't have instance variables as those could change between, or even during, invocations.



What is the solution then?

Regards,
PK
Let us just consider a "Hello World" program for its simplicity. Say there is a jsp page that accepts the first name and last name. This then gets passed on to a servlet which calls the create() method on a stateless session bean. Then it calls the business method hello() on the session bean which returns "Hello World, first_name last_name". Now, how do I pass the first name and the last name? A real convenient way to do this would have been to pass the names through the create method. But this is not permitted. So, passing it through the business method(hello(), in this case) is one option.

Is there any better option?

PK
I have created a stateless session bean and I wish to pass some parameters to the bean instances. I cannot do it through create()/ejbcreate(), since they wont accept parameters. How do I do it then? Through business methods?

Regards,
PK
Enterprise JavaBeans by Richard Monson-Haefel (O'reilly)
and Mastering EJB by Ed Roman are excellent books to start with.
I am trying to pick up on EJB's. I tried doing a hello world EJB using "Websphere Studio Application Developer", but had lot of administration issues with it. Whats very confusing to me is when to do the "EJB mapping", setting up of the EJB references etc.

I am quite clear on EJB fundamentals. Can somebody recommend a good book or point me to a good link which has steps on how to accomplish this?
I am familiar with J2EE technologies but I am having issues with WSAD (Websphere Studio application developer). I am trying to understand how to use it to actually develop a end-to end J2ee application. Things like what you need to do from the administration, deployment,when to generate RMIC code etc. I looked into the help but I did not find some of those documents all that helpful.

Can somebody suggest me a good book?

Regards,
PK
Hi there. I am quite new to this forum and havent really made up my mind to take this test. I am still in two minds. I dont know if I have the expertise to take it.

I havent worked on J2EE many projects before, although, I am very familiar with it. I have cleared the IBM 484 test, which is, J2EE (EJB's + servlets +JSP's + JDBC+ JNDI ). With this background do you guys think I should be able to take the test.

Regards,
Prakash
I am beginner to Struts. I am reading this book on Struts by Richard Hightower. Is there any other book that you guys would like to recommend?

PK
19 years ago
deepa,
Try doing a java -X on the command line/prompt and if all the path settings are right, you should see options -Xms and -Xmx to set the initial heap size and max heap size.
pk
[ May 06, 2004: Message edited by: Prakash Krishnamurthy ]
19 years ago
Seema,
I wanted to know how do you guys prepare your questions and how do you know that its close to the actual exam?
PK
Does anybody know the relation between a subject and Principal? Can a subject have many principals or is it vice-versa?
pk
19 years ago
Gayathri,
It is disallowed. The container calls ejbStore() and ejbLoad() and if you did a BMT you would need to call them explicitly. This is because typically a transaction exits between a ejbload() and store()(usually). Since the container only has the priviledge to call these methods and you dont have control over these it is ILLEGAL to have a BMT in a Entity Bean.

Prakash
[ April 01, 2004: Message edited by: Prakash Krishnamurthy ]
[ April 01, 2004: Message edited by: Prakash Krishnamurthy ]
The ejbcreate() method in a stateless bean cannot have any arguments. So if I wish to do a credit card validation, how do I use it? I dont think stateful needs to be used for credit card validations because you dont need to maintain the state once the validation returns 'yes' or 'no'
Regards,
PK

Originally posted by Sri Basavanahally:

Does that help ?
-Sri


Sri,
THat does help. I was thinking that the stuff on the book could have been a mis-print. But now I am convinced..
I had a question about ejbCreate(). The book,"Mastering EJB" by Ed Roman on Table 4.1 says that for a stateless session bean "You can define only have a single ejbCreate method with no parameters"
Say If I have a stateless session bean for a credit card validation. All it does is returns a yes or a no for a validitiy of a credit card. I was thiking that this could be done by sending the credit card number, expiry date adn the name as parameters to the bean and having it return a yes or a no.
Can somebody help me clear my confusion?
PK