[jboss-user] [EJB 3.0] - embedded-war problem + source code

emil_prager do-not-reply at jboss.com
Thu Oct 12 12:50:15 EDT 2006


Hello everybody!

I'll put here a question about Embedded EJB3, as it was the requirement posted at http://www.jboss.org/index.html?module=bb&op=viewtopic&t=91662


  | 1. About the embedded EJB3 tutorials (http://docs.jboss.org/ejb3/embedded/embedded.html), which are classified there in 2 categories:
  | 
  |   | + a simpler one, and the 
  |   | + "Advanced Deployment Tutorials" 
  |   | 
  | Did they all work fine at you?
  | 
  | For me, almost all the simpler ones worked fine, with the exception of the "embedded-war" to deploy to Tomcat (while the "security" one was skipped from tests for the moment). 
  | (Maybe the "embedded-war" one should be considered to be in the 2nd category of tutorials.)
  | After I modified a little the JSP for getting more infos about what's happening there, I found that a 
  | NamingException: org.jboss.tutorial.embeddedwar.CustomerDAOLocal not bound
  | is thrown.
  | (If it's useful, I can insert later some code snippets from the modified EmbeddedEJB3.jsp, but it's only usual old-style debugging stuff for finding more infos.)
  | 
  | 
  | 2. About the source code and the libraries (jboss-ejb3-all.jar, hibernate-all.jar, thirdparty-all.jar)
  |  
  |   | 	i.   If all the tutorials succeeded at you, what version of embedded EJB3 did you used ? (e.g. "Alpha8 patch 2", or "Alpha 9", the latest by now). 
  |   | 	ii.  From where should I try to get the source code for the version of embedded EJB3 I use at some moment (I mean the source for the libraries in the org.jboss.ejb3.embedded package, within the jboss-ejb3-all.jar, part of some version of the embedded EJB3 product)? (this question was posted today in another thread, see http://www.jboss.org/index.html?module=bb&op=viewtopic&t=92609.)
  |   | For ex., I found some source code at http://anonsvn.labs.jboss.com/labs/jbossbuild/trunk/projects/jboss/ejb3/src/main/org/jboss/ejb3/embedded/ 
  |   | (Revision 6759, from now on referred as "anon.labs").
  |   | But it seems to be quite different from the decompiled version from jboss-ejb3-all.jar 
  |   | (for ex., the "Alpha8 patch 2" or "Alpha 9" EJB3StandaloneDeployer.java start() method contains a call to the private void loadMbeanServer(), which doesn't appear in the version from the "anon.labs".
  |   | 
  |   | This is the point where the embedded-war example fails at me: (Main.main(), at the call of deployer.start().
  |   | 
  | 
  | (If it's useful, I can insert later some code snippets to provide more details about where exactly that Exception is thrown; by default, this throw is not visible in the jsp page, it just don't show the expected result.)
  | 
  | If necessary, I can give in a later reply more informations. 
  | (For the moment, let's mention that I used Windows XP SP2, with JDKs/JREs of generation 5.0 from Sun, Bea and IBM, the one in use during the tests being JRockit from Bea; the IDE used was Eclipse 3.2/Lomboz).
  | 
  | (The main reason I am interested in embedded EJB3 is for testing the availability of JBossESB with other App Servers which currently don't have support for EJB3, e.g. WebSphere 6.1, see http://www.jboss.org/index.html?module=bb&op=viewtopic&t=92220 for a related thread).
  | 
  | 
  | 
  | 
  | Thank you very much in advance.
  | 
  | Best regards,
  | ___ Emil Prager __________________________________________________

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3977938#3977938

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3977938



More information about the jboss-user mailing list