Helene,
you are genius 8-))). You were right, it was configuration problem. I didn't
have an idea that jndi.properties has to be on a classpath. As soon as I
have added JONAS_ROOT to our classpath, it started working. Thank you very
much for your patience and help.
Miro
-----Original Message-----
From: H�l�ne JOANIN [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, May 17, 2000 4:35 AM
To: Halas, Miroslav
Cc: 'Philippe Coq'; '[EMAIL PROTECTED]'
Subject: Re: Can't read bean environment properties
Hi Miroslav,
I'm quite conviced your problem is a JNDI configuration problem.
On JOnAS 2.0, the JNDI configuration must be done by the
way of a jndi.properties file that must be ACCESSIBLE from the
CLASSPATH.
(Contrary to JOnAS 1.6, the JNDI configuration was done by the
way of the jonas.properties file).
If you use Jeremie only, the jndi.properties file looks like:
java.naming.factory.initial
org.objectweb.jeremie.libs.services.registry.jndi.JRMIInitialContextFactory
java.naming.provider.url jrmi://<hostname>:1099
java.naming.factory.url.pkgs org.objectweb.jonas.naming
If you use RMI only, the jndi.properties file looks like:
java.naming.factory.initial
com.sun.jndi.rmi.registry.RegistryContextFactory
java.naming.provider.url rmi://<hostname>:1099
java.naming.factory.url.pkgs org.objectweb.jonas.naming
Your can also find remarks below.
Hope this help.
H�l�ne.
PS: I apologize for mistake your last name for your first name !!!
"Halas, Miroslav" wrote:
>
> Hi Philippe and Helene,
>
> No I wasn't able to run your examples. This is the error message I have
got
> when running the client
>
> D:\eqplite>java
> -Djava.naming.factory.initial=com.sun.jndi.rmi.registry.Registry
> ContextFactory eb.ClientAccount AccountImplHome
Don't set the java.naming.factory.initial property by the way of the
-D option.
Indeed, this property is setting by the way of the jndi.properties.
> Getting a UserTransaction object from JNDI
> Cannot lookup UserTransaction: javax.naming.NameNotFoundException:
> javax.transaction.UserTransaction
>
> .............
> Helene, my jndi.properties file look like this
>
> ###################### JNDI configuration
> # Please refer to the JNDI documentation for further details.
> # You must adapt <hostname> and maybe the port number (1099 by default)
> # depending on your configuration.
>
> # If you use Jeremie only
> java.naming.factory.initial
>
org.objectweb.jeremie.libs.services.registry.jndi.JRMIInitialContextFactory
> java.naming.provider.url jrmi://<hostname>:1099
>
> # if you use rmi only
> #java.naming.factory.initial
> com.sun.jndi.rmi.registry.RegistryContextFactory
> #java.naming.provider.url rmi://localhost:1099
>
> # In both cases
> java.naming.factory.url.pkgs org.objectweb.jonas.naming
This jndi.properties file seems not good.
Indeed, the <hostname> is not specified in the java.naming.provider.url
property.
So, I don't think THIS file is taken into account.
Moreover, properties are set for Jeremie and not for rmi ?!?!
>
> BTW My first name is Miro/Miroslav 8-)))
>
> Best Regards and thank you for your effort and help,
>
> Miro
>
--
-=- H�l�ne JOANIN -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
mailto:[EMAIL PROTECTED] http://www-frec.bull.com
Phone: 33.4.76.29.73.53 Fax: 33.4.76.29.76.00
Download our EJB Server JOnAS at http://www.bullsoft.com/ejb
_______________________________________________________________
----
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".
----
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".