  | Mailing List | | Home | | Forum Home | | JBoss - Java Application Server | | Tomcat - JSP/Servlet container | | Struts - A MVC web framework | | iText - An open source PDF Java Library | | JDOM - JDOM XML Parser | | JSP - A mailing list about Java Server Pages specification and reference | | J2EE - A mailing list for Java(tm) 2 Platform, Enterprise Edition | | J2EE Pattern - An interest list for Sun Java Center J2EE Pattern Catalog | | Servlet - A mailing list for discussion about Sun Microsystem's Java Servlet API Technology | |
Struts & Hibernate
|
|
|
  | | | - A few issues. | - A few issues. 2007-08-13 - By tzman
Back My apologies if these issues have already been fixed/mentioned.
1.) org.jboss.seam.mock.BaseSeamTest
| | protected void startJbossEmbeddedIfNecessary() throws DeploymentException, IOException | { | if ( !started ) | { | Bootstrap bootstrap = Bootstrap.getInstance(); | bootstrap.bootstrap(); | started = true; | if ( resourceExists("seam.properties") ) | { | bootstrap.deployResourceBase("seam.properties"); | } | if ( resourceExists("META-INF/components.xml") ) | { | bootstrap.deployResourceBase("META-INF/components.xml"); | } | if ( resourceExists("META-INF/seam.properties") ) | { | bootstrap.deployResourceBase("META-INF/seam.properties"); | } | } | } |
The call to deployResourceBase will only locate the first resource?
or should this be:
| | | @(protected) | protected void startJbossEmbeddedIfNecessary( | ) throws DeploymentException, IOException | { | Bootstrap bootstrap; | if ( !started ) | { | bootstrap = Bootstrap.getInstance(); | bootstrap.bootstrap(); | started = true; | if ( resourceExists( "seam.properties" ) ) | { | bootstrap.deployResourceBases( "seam.properties" ); | } | if ( resourceExists( "META-INF/components.xml" ) ) | { | bootstrap.deployResourceBases("META-INF/components.xml" ); | } | if ( resourceExists( "META-INF/seam.properties" ) ) | { | bootstrap.deployResourceBases("META-INF/seam.properties" ); | } | } | } | | |
2.) org.jboss.seam.framework.Identifier
The equals method checks for an instance of the derived type org.jboss.seam .framework.EntityIdentifier
3.) It doesn't appear as though we can use injection in base classes. Am I mistaken? Is this a design decision? We have gotten around this by retrieving the components programatically, i.e. Component.getInstance( "entityManager" );
This means that for testing I have to load the container, when I only need hibernate; or I have to do a check in by base class before retrieving the component to ensure the application context is active.
Thanks for all the work.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic &p=4073542#4073542
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode =reply&p=4073542 __ ____ ____ ____ ____ ____ ____ ____ ____ ____ jboss-user mailing list jboss-user@(protected) https://lists.jboss.org/mailman/listinfo/jboss-user
|
|
 |