[Design of EJB 3.0] - Re: @RemoteBindings and clientBindUrl - JNDI binding questio
by jaikiran
"wolfc" wrote :
|
| The goal is to give the bean developer the ability to specify a client bind url per remote business interface. Now in your example you have 2 bindings and 1 interface.
|
I started off with this test based on what i read here http://docs.jboss.org/ejb3/app-server/reference/build/reference/en/html/t.... The example there is similar, in the sense that it has a single remote interface but with 2 RemoteBinding. Has that behaviour changed?
Currently I don't see a way where i can associate a remote business interface (rather than a remote jndi binding) with a client bind url? To make it more clear:
| @RemoteBindings (
| {
| @RemoteBinding (jndiBinding=MyStatelessBeanWithMultipleRemoteBindings.REMOTE_JNDI_NAME),
| @RemoteBinding (jndiBinding=MyStatelessBeanWithMultipleRemoteBindings.ANOTHER_REMOTE_JNDI_NAME, clientBindUrl=MyStatelessBeanWithMultipleRemoteBindings.CUSTOM_CLIENT_BIND_URL)
| }
|
| public class MyStatelessBeanWithMultipleRemoteBindings implements MyStatelessRemote, AnotherRemote
|
Currently, I can't specify that the @RemoteBinding with a CUSTOM_CLIENT_BIND_URL is for the "AnotherRemote" business interface.
"wolfc" wrote :
| In my mind clientBindUrl is an attribute of the remote business interface.
|
Since the intention is to allow the bean developer to specify a client bind url per remote business interface, shouldn't the @RemoteBinding have a provision where the beanInterface can be mentioned. Maybe a "beanInterface" property to the @RemoteBinding annotation?. Just a thought, maybe there's a better way to handle this. In terms of API changes, not sure how big this change would be.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4167038#4167038
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4167038
17 years, 8 months
[Design of JBoss Remoting, Unified Invokers] - Re: R3 transports to implement
by david.lloyd@jboss.com
"trustin" wrote : I talked to Tim in the JBoss Messaging IRC channel to get some quick answers about the flaws of R2 protocol. They were:
|
| * Connection pooling doesn't allow you to send other commands when a request is in progress. It also causes the order of invocation get mixed up. - This issue can be fixed by fixing R3 client behavior.
Correct.
"trustin" wrote : * The way ping works - I don't have much idea about how ping works. Someone could address this issue.
|
| * Protocol doesn't have a command type identifier - It's OK because we can bump up the version field and provide a command type identifier, sequence no, etc if necessary.
If these issues are a problem, then don't use the R2 protocol.
"trustin" wrote : Also, he suggested me to abandon R2 protocol and go straight to the whole new transport (e.g. SSH + new wireformat) because:
|
| * We are not required to be backward compatible with R2 and we should give it up to avoid maintenance difficulty.
Incorrect, we are in fact required to be compatible with R2 before R3 can be accepted into JBossAS.
"trustin" wrote : * We can run both R2 and R3 at the same time in the microkernel, so R2 users should be able to keep using R2 services or upgrade to R3.
This is true; however then we will have not only both versions running, but all services will have to have an R2 and R3 version. This might be difficult to do in some cases where the Remoting implementation is tied to the service (like the UnifiedInvoker for example).
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4167023#4167023
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4167023
17 years, 8 months