This content has been marked as final.
Show 4 replies
-
1. Re: How to make a simple EJB 3.0 client?
tzwoenn Jan 12, 2006 2:33 PM (in response to fabriciobraga)Yuo need the following Properties for your InitialContext:
java.naming.provider.url=localhost
java.naming.factory.initial=org.jnp.interfaces.NamingContextFactory
java.naming.factory.url.pkgs=org.jboss.naming:org.jnp.interfaces -
2. Re: How to make a simple EJB 3.0 client?
fabriciobraga Jan 12, 2006 2:36 PM (in response to fabriciobraga)
Ops,
there is little error at line:ProjectService projetService = (ProjectService) ic.lookup( SaqueHome.class.getName());
Now making a little correction:ProjectService projetService = (ProjectService) ic.lookup( ProjectService.class.getName());
Ok. -
3. Re: How to make a simple EJB 3.0 client?
fabriciobraga Jan 12, 2006 4:15 PM (in response to fabriciobraga)
I did what you told. It seems to work fine now, but I get 2 warnings messages:log4j:WARN No appenders could be found for logger (org.jboss.security.SecurityAssociation). log4j:WARN Please initialize the log4j system properly.
Is there something more that I need to do?
Thanks,
Fabricio Braga -
4. Re: How to make a simple EJB 3.0 client?
bill.burke Jan 12, 2006 8:24 PM (in response to fabriciobraga)put a log4j.xml file in your classpath.