on the page 84 in the free chapter 2 pdf
in list 2.16 hello word main class
// Deploy all EJBs found on classpath (fast, scans only build directory)
// This is a relative location, matching the substring end of one of java.class.path locations!
// Print out System.getProperty("java.class.path") to understand this...
EJB3StandaloneBootstrap.scanClasspath("helloworld-ejb3/bin");
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
should be
EJB3StandaloneBootstrap.scanClasspath("helloworld-ejb3/build");
or EJB3StandaloneBootstrap.scanClasspath();
when I try this example , if I use EJB3StandaloneBootstrap.scanClasspath("helloworld-ejb3/build") ,I got exception for jndi name find MessageHandlerBean/local ,use EJB3StandaloneBootstrap.scanClasspath() , it works
|