Hi, I'm having ap problem with yesterday's cvs version of Jonas.


I wrote a custom bean + client:

in the bean DD:

BeanHomeName       = "AlbumHome";

this is the output of AdmServer -L:
AdmServer -L :  Name 0 in the JNDI context = jonas_Adm
AdmServer -L :  Name 1 in the JNDI context = jdbc_1
AdmServer -L :  Name 2 in the JNDI context =
javax.transaction.UserTransaction
AdmServer -L :  Name 3 in the JNDI context = TMFactory

this is the output of AdmServer -l :
AdmServer -l
AdmServer -l :  Bean 0 in the JOnAS server =
com.stria.DataServer.EnterpriseJavaBeans.fusion3.Entities.JOnASAlbumBeanAlbu
mHome

this is the outpu of AdmServer -E:
AdmServer -E
AdmServer -E
AdmServer -E :  jonas.datasources=PostgreSQL
AdmServer -E :  jonas.trace.out=out
AdmServer -E :  jonas.trace.level=31
AdmServer -E :  jndi.syntax.ignorecase=false
AdmServer -E :  jonas.name=jonas
AdmServer -E :  jonas.beans.descriptors=Album.ser
AdmServer -E :  jonas.tm.remote=false
AdmServer -E :
java.naming.factory.initial=com.sun.jndi.rmi.registry.RegistryContextFactory
AdmServer -E :  jonas.trace.header=false
AdmServer -E :  jndi.syntax.direction=flat
AdmServer -E :  jonas.trace.err=err
AdmServer -E :  java.naming.provider.url=rmi://localhost:1099

the client code:

...

env.put("java.naming.provider.url", "rmi://localhost:1099
env.put("java.naming.factory.initial",
"com.sun.jndi.rmi.registry.RegistryContextFactory");

Context ctx = new InitialContext(env);

AlbumHome home = (AlbumHome)ctx.lookup("AlbumHome");

...


I get javax.naming.NameNotFoundException: AlbumHome when running the client.
I didn't try to set the demo beans up, but I think i'll end up whith the
same error, because the InitialContext.lookup() is there too. Any idea?

thanks

--vincent

----
To unsubscribe, send email to [EMAIL PROTECTED] and
include in the body of the message "unsubscribe jonas-users".
For general help, send email to [EMAIL PROTECTED] and
include in the body of the message "help".

Reply via email to