|On the servlet side it says:
|
|java.rmi.ServerException: Could not get EJBObject; nested exception is:
| javax.naming.NoInitialContextException: Need to specify
|class name in environment or system property, or as an applet
|parameter, or in an application resource file: java.naming.factory.initial
|javax.naming.NoInitialContextException: Need to specify class name
|in environment or system property, or as an applet parameter, or
|in an application resource file: java.naming.factory.initial
|I think these are two unrelated problems, since the serverside stack
|trace seems to occur while trying to commit a transaction.
yes probably unrelated
|As for the clientside problem, it is odd. The client already has an
|InitialContext which is has obviously use to contact the server; it
|causes the serverside stack trace. Even more oddly, the code which
|causes the clientside problem is:
|
|WebFoot wf = ...;
|javax.ejb.Handle h = wf.getHandle();
|
|...
|
|WebFoot ft = (WebFoot)h.getEJBObject();
it is missing the jndi.properties stuff from the Tomcat side. Did you
follow the instructions? Try coding it, it should work.
|The exception is thrown on this last line. How does getEJBObject()
|(which returns a serialized connector, I believe) fit in with a proxy
|based system?
oh come on... you went that far and you don't go and read the source? man
what good is it that we do this in open source, I ask you.... that is when
we end up with the wonderful "5 tables are better for entity than 1 table"
ignoramus non-sense (I still have to answer that one). Ignorance is bliss
but it also leads to voodoo computing and open source battles that...
ok on to your answer :) getEJBObject just looks up on InitialContext and
asks for a generic connector to the server that says "get me a proxy with
that key". done.
come on go read it! it makes for a good entertainment
marc
|
|Tom
|
|
|--
|--------------------------------------------------------------
|To subscribe: [EMAIL PROTECTED]
|To unsubscribe: [EMAIL PROTECTED]
|Problems?: [EMAIL PROTECTED]
|
|
--
--------------------------------------------------------------
To subscribe: [EMAIL PROTECTED]
To unsubscribe: [EMAIL PROTECTED]
Problems?: [EMAIL PROTECTED]