kevin wright schrieb:
[snip]
> Hi Philip,
Hi.
> Thanks for that. Unfortunately, the documentation that arrives with Suns APP Server is pretty much impenetrable. Although I did locate
> code that claimed to call an EJB method. On compiling and running,
> the code also produced a NoInitialContextException.
> On Sun's site I managed to find a FAQ talking about
> a factory context class called: com.sun.enterprise.naming.SerialInitContextFactory
That seems to be it.
> This class however does not come with the Sun's APP Server.
> I now believe that the APP Server provides no such context factory class and by implication does not in fact
> provide a mechanism to run EJB methods. All very dissapointing :(
As Suns App Server serves as some kind of reference implementation for
j2ee stuff, it would be pretty silly not to provide EJB support. ;)
However, I've seen it running EJBs and all the information you need is
in the appserver-rt.jar which comes in the servers lib folder.
As the documentation states, all you should need to do is add this jar
to your clients class path and call "new InitialContext()" without any
properties.
> Anyway, thanks again for your help.
> Kevin Wright.
Greetings,
Philip
kevin wright - 21 Jun 2006 19:10 GMT
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
[quoted text clipped - 43 lines]
> =wNAv
> -----END PGP SIGNATURE-----
Hi Philip,
Including appserv-rt.jar in my classpath proved to be the turning point
after fixing a few minor errors in the code. I have now made
my first successful call to an ejb method. Time for a drink I think!
Thanks for that vital info.
Kevin Wright.
Philip Reimer - 22 Jun 2006 08:43 GMT
kevin wright schrieb:
> kevin wright schrieb:
>
[quoted text clipped - 25 lines]
> Greetings,
> Philip
> Hi Philip,
> Including appserv-rt.jar in my classpath proved to be the turning point
> after fixing a few minor errors in the code. I have now made
> my first successful call to an ejb method. Time for a drink I think!
Cheers.
> Thanks for that vital info.
> Kevin Wright.
Philip