[jboss-user] [JBoss Seam] - A few issues.
tzman
do-not-reply at jboss.com
Mon Aug 13 09:27:54 EDT 2007
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:
|
|
| @Override
| 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
More information about the jboss-user
mailing list