"ALRubinger" wrote : Though probably isn't worth the effort; I see that
Alexey's tests for JBoss50Creator (the piece responsible for handling JBoss-specific
annotations) are now passing, so I'll probably try to change over to use this soon.
|
| Done.
|
|
http://jira.jboss.com/jira/browse/EJBTHREE-1422
|
| So of course now we have:
|
|
http://jira.jboss.com/jira/browse/EJBTHREE-1423
|
| S,
| ALR
I have a test case for EJBTHREE-1423 which fails even after we changed the MetaDataHelper
to use JBoss50Creator.
@Stateless
| @Remote (MyStatelessRemote.class)
| @Local (MyStatelessLocal.class)
| @RemoteBinding (jndiBinding = "MySLSBeanRemote")
| @LocalBinding (jndiBinding = "MySLSBeanLocal")
| public class MySLSBean implements MyStatelessLocal, MyStatelessRemote
| {
|
MetaDataHelper:
| JBossMetaData metadata = new JBoss50Creator(finder).create(classes);
|
| // Get delegate
| JBossSessionBeanMetaData beanMetaDataDelegate = (JBossSessionBeanMetaData)
metadata
| .getEnterpriseBean(beanImplClass.getSimpleName());
|
| // Mock up a @RemoteBinding if none specified but are required
| if ((beanMetaDataDelegate.getBusinessRemotes() != null ||
beanMetaDataDelegate.getHome() != null)
| && (beanMetaDataDelegate.getRemoteBindings() == null ||
beanMetaDataDelegate.getRemoteBindings().size() == 0))
The beanMetaDataDelegate.getRemoteBindings() returns null in the MetaDataHelper.
I came up with a test case for the JBossMetadata project to test this on the JBossMetadata
trunk and even that fails. The @RemoteBinding (and @LocalBinding) are not yet being picked
up. I'll probably wait for
http://jira.jboss.com/jira/browse/JBMETA-45 to be done
before moving ahead with the EJBTHREE-1423 test case.
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4158648#...
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&a...