Last week, we had the author of TDD for a Shopping Website LiveProject. Friday at 11am Ranch time, Steven Solomon will be hosting a live TDD session just for us. See for the agenda and registration link

Joshua Masuki

Greenhorn
+ Follow
since Feb 14, 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 Joshua Masuki

Hi,

Would anyone know the password used in Cloudscape DB, which is shipped with J2EE RI? I'm creating a deployment setting for my firt entity bean.



Thank you very much.

- JM
Hi,

It's working now. Thank you so much!

- JM
Hi,

Apparently, using Object obj = ctx.lookup("java:comp/env/MyFactorial") does not work, I got NamingException. My JNDI name for FactorialBean is "MyFactorial", so I don't think "java:comp/env/MyFactorial" would work.

What do you think is other cause of problem? How can I make this work?

Thank you so much!

- JM
Hi,

It seems not to be working on my end. I still encounter ClassCastException. Can somebody please help?

In this example of mine, the client uses PermutationBean (my 1st bean), which uses FactorialBean (my 2nd bean). MyPermutation and MyFactorial are JNDI names for PermutationBean and FactorialBean, respectively.

Here is my DD:



Here is a code snippet of my first EJB, PermutationBean:



And here's the code snippet of my client:



Thank you very much.

- JM
[ February 28, 2005: Message edited by: Joshua Masuki ]
Hi Keerthi,

Thanks so much for the help. I'll it out and hopefully this works for me this time.

- JM
Hi,

By mistake, I have posted this message in SCWCD thread. I'm just creating a copy here. I need help on local interfaces.

Thank you.

------
Hello there,

I am new to EJB and I am trying out Local home and component interfaces. According to the book that I have read, for one EJB, you can expose both local and remote home/component interfaces. Does this mean we would only have one JNDI for this EJB? Whether the local or remote interfaces will be used, will depend if you narrow or downcast? (Please see below code)



But when I do the second one (ordinary type cast) from another EJB to get my bean's local home, I encounter a ClassCastException. What could have gone wrong?

Thank you for your help.

J.M.
SCJP2
Sorry. I was supposed to post this under SCBCD. Can somebody move this post to that forum?

Thank you.
Hello there,

I am new to EJB and I am trying out Local home and component interfaces. According to the book that I have read, for one EJB, you can expose both local and remote home/component interfaces. Does this mean we would only have one JNDI for this EJB? Whether the local or remote interfaces will be used, will depend if you narrow or downcast? (Please see below code)



But when I do the second one (ordinary type cast) from another EJB to get my bean's local home, I encounter a ClassCastException?

Thank you for your help.

J.M.
SCJP2