[jboss-jira] [JBoss JIRA] Created: (EJBTHREE-678) RemoteBinding annotation doesn't use the default client binding of the remoting
Roland R?z (JIRA)
jira-events at jboss.com
Thu Aug 3 11:28:11 EDT 2006
RemoteBinding annotation doesn't use the default client binding of the remoting
-------------------------------------------------------------------------------
Key: EJBTHREE-678
URL: http://jira.jboss.com/jira/browse/EJBTHREE-678
Project: EJB 3.0
Issue Type: Feature Request
Affects Versions: EJB 3.0 RC8 - FD
Reporter: Roland R?z
The org.jboss.annotation.ejb.RemoteBinding annotation configures the jndi binding, interceptor stack, the client bind url and the RemoteProxyFactroy.
When the jboss remoting service is not configured using the url socket://0.0.0.0:3873 (not listening on the default port or using ssl), the programmer has to specify the the url when he wants to bind the bean to a different jndi context.
The deployment has to be deployed into different JBoss instances (pre-production, production,...) with different ports, the deployment has to be rebuilt (different jboss.xml) or even recompiled (with different annotation value).
I propose that the default "socket://0.0.0.0:3873" means the default of the remoting configuration or even better set the default to "" in the annotation which would be interpreted as the default remoting configuration.
The following fixes the issue using the first described approach:
org.jboss.ejb3.stateless.ProxyDeployer
public void initializeRemoteBindingMetadata()
{
remoteBindings = (RemoteBindings) advisor.resolveAnnotation(RemoteBindings.class);
if (remoteBindings == null)
...
}
else
{
// defaultClientBinding is more accurate that the constant in RemoteBinding
if ("socket://0.0.0.0:3873".equals(binding.clientBindUrl())) {
binding = new RemoteBindingImpl(binding.jndiBinding(), binding.interceptorStack(), defaultClientBinding, binding.factory());
}
RemoteBinding[] list = {binding};
remoteBindings = new RemoteBindingsImpl(list);
advisor.getAnnotations().addClassAnnotation(RemoteBindings.class, remoteBindings);
}
}
}
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the jboss-jira
mailing list