[Design of POJO Server] - Re: appclient remote home regression
by scott.stark@jboss.org
So
| // Determine the jndi name for the reference interface
| String iface = getInterface(ref);
| //LegacyEjb3JndiPolicy policy = new LegacyEjb3JndiPolicy();
| String containerJndiName = target.getBeanMetaData().determineJndiName();
| if(containerJndiName != null)
| ref.setResolvedJndiName(containerJndiName);
|
and the metadata determineJndiName() is implemented by JBossSessionPolicyDecorator.determineJndiName(), which calls JBossSessionPolicyDecorator.determineResolvedRemoteBusinessDefaultJndiName(). This is for an ejb3x remote reference, not an ejb2x remote home reference. The call to getInterface(ref) is unused. The resulting iface should be getting passed into determineResolvedJndiName(String iface) so the iface can be recognized as a home rather than a remote business interface.
What we need is a comprehensive metadata unit test that takes each type of ejb reference metadata, and resolves a jndi name for both ejb2x, ejb3x bean metadata. This is what the MappedReferenceMetaDataResolverDeployer needs to set each reference resolved jndi name.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4165976#4165976
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4165976
17 years, 8 months
[Design of POJO Server] - appclient remote home regression
by scott.stark@jboss.org
I'm seeing the same 3 errors in the appclient tck tests as currently seen in the tck runs:
http://hudson.qa.jboss.com/hudson/view/TCK5/job/tck5-appclient/lastBuild/...
in the mc/vfs appclient work I'm doing, so its just a general regression in the jndi name of the ejb remote home. The home is resolving to the descriptor jndi-name, but the home is bound under ear-name/bean-name/home. These tests are effectively deploying ejb2.x beans as ejb3.x beans(no annotations, just a v3 ejb-jar.xml), and a j2ee 1.4 or earlier client is linking to the ejb using its bean name. Its a descriptor ejb-ref with a remote/home specified.
The issue is that the MappedReferenceMetaDataResolverDeployer will have to resolve the ejb-ref differently based on whether the target ejb is a 2.x or 3.x. We should have this info available in the binding policy, so I need to see what is going on with not using it. I guess its just that the server specified binding policy is not in synch with the current ejb3 behavior. Is the ejb3 proxy layer using the deployment binding policy for all proxies yet? Looking at the code this does not appear to be the case.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4165971#4165971
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4165971
17 years, 8 months