This content has been marked as final.
Show 3 replies
-
1. Re: mail services jndi not bind
schaefera Aug 16, 2002 1:03 PM (in response to solidboy)Hi
I don't know what is going wrong but you should not set JNDI properties in the application server.
Drop the first three lines (System.setProperty()) and try again.
Have fun - Andy -
2. Re: mail services jndi not bind
adrian.brock Aug 16, 2002 2:56 PM (in response to solidboy)System.setProperty("java.naming.provider.url","localhost:1099");
forces the jndi lookup to go over RMI
the java:/ context is only within the same VM
If you have a standalone webserver, you cannot
access the jboss mail service.
If your webserver is embedded within jboss,
as Andreas says, don't set the properties.
Regards,
Adrian -
3. Re: mail services jndi not bind
solidboy Aug 16, 2002 9:31 PM (in response to solidboy)thanks
You are right! I try the 'java:\Mail' in the
EJB ,it's no problem.