At which point, I deployed a separate .war containing a simple webapp, where the servlet attempts to access the bean like so:
However, I couldn't get it because I got a ClassCastException. Basically the object retrieved by the ctx.lookup is not castable to ProcessHello.
However I checked a bunch of tutorials, and they seems to be accessing them this way. So my guess is that I must have prepared the bean .jar file incorrectly, but I couldn't work out what is wrong with it or what is missing.
Any pointer/help is much appreciated!
[ October 18, 2007: Message edited by: Zenikko Sugiarto ] [ October 18, 2007: Message edited by: Zenikko Sugiarto ]
Joined: Jan 09, 2005
Hmm, I suspected that this might be related to the way the container handled the JNDI naming. I tried this on the latest SJSAS 9.1 and it worked as I expected it to.
However shouldn't this be a standard? Anyone have used JBOSS extensively here and able to shed some light ?