[jboss-jira] [JBoss JIRA] Commented: (EJBTHREE-678) RemoteBinding annotation doesn't use the default client binding of the remoting
Bill Burke (JIRA)
jira-events at jboss.com
Fri Sep 1 15:15:44 EDT 2006
[ http://jira.jboss.com/jira/browse/EJBTHREE-678?page=comments#action_12342621 ]
Bill Burke commented on EJBTHREE-678:
-------------------------------------
Make @RemoteBinding.clientBindUrl default to "" and we'll check for that.
> 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
> Assigned To: William DeCoste
> Fix For: EJB 3.0 RC9 - FD
>
>
> 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