As part of a test case for EJBTHREE-1423, i am testing that the @RemoteBindings on a bean
is being honoured. I am not completely clear about how the clientBindUrl works:
| @Stateless
| @RemoteBindings (
| {
| @RemoteBinding
(jndiBinding=MyStatelessBeanWithMultipleRemoteBindings.REMOTE_JNDI_NAME),
| @RemoteBinding
(jndiBinding=MyStatelessBeanWithMultipleRemoteBindings.ANOTHER_REMOTE_JNDI_NAME,
clientBindUrl=MyStatelessBeanWithMultipleRemoteBindings.CUSTOM_CLIENT_BIND_URL)
| }
|
| )
| @Remote (MyStatelessRemote.class)
| public class MyStatelessBeanWithMultipleRemoteBindings implements MyStatelessRemote
| {
|
| /**
| * Remote jndi name
| */
| public static final String REMOTE_JNDI_NAME = "SomeJndiName";
|
| /**
| * Another remote jndi name
| */
| public static final String ANOTHER_REMOTE_JNDI_NAME = "AnotherJndiName";
|
| /**
| * Client bind url
| */
| public static final String CUSTOM_CLIENT_BIND_URL = "0.0.0.0:3333";
|
| ...
| }
Based on my understanding, i expect the bean to be bound to "SomeJndiName"
(communication happens through default port 3873) and also "AnotherJndiName"
(communication happens through custom port 3333). Is this correct? Right now, in my test
case i see that the bean is never bound to the "AnotherJndiName" and instead its
bound only to "SomeJndiName"
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4166908#...
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&a...