[Design of JBoss ESB] - Re: Features of JBoss Messaaging Message Bridge present in E
by beve
Hi,
I believe you can get the same fault tolerance by configuring your connection factory, queue and JMSRouter. By configuring the queue as clustered and using a clustered connection factory this should be possible.
Take a look at the configuration options for JMSRouter:
JMS Routing Action Processor.
|
| Sample Action Configuration:
|
| <action class="org.jboss.soa.esb.actions.routing.JMSRouter">
| <property name="jndiName" value="queue/A"/>
| </action>
|
| Option properties (default values shown):
| <property name="unwrap" value="false"/>
| <property name="jndi-context-factory" value="org.jnp.interfaces.NamingContextFactory"/>
| <property name="jndi-URL" value="127.0.0.1:1099"/>
| <property name="jndi-pkg-prefix" value="org.jboss.naming:org.jnp.interfaces"/>
| <property name="connection-factory" value="ConnectionFactory"/>
| <property name="persistent" value="true"/>
| <property name="priority" value="javax.jms.Message.DEFAULT_PRIORITY"/>
| <property name="time-to-live" value="javax.jms.Message.DEFAULT_TIME_TO_LIVE"/>
| <property name="message-prop->prop-name<="> value="prop-value<" />
|
Or if you have other requirements please specify them and we'll take a look.
Regards,
/Daniel
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4139158#4139158
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4139158
16 years, 3 months
[Design of EJB 3.0] - Determine whether an invocation is local or remote
by anil.saldhana@jboss.com
For ejb3 security integration, it is important for me to figure out whether an invocation is remote or local such that I can pick the appropriate security context. For remote invocation, I pick the one from the invocation.
Well, one solution would be if invocation.getsecuritycontext == null, then it is local. But I am unsure this would be the best.
Looking at the ejb3 codebase and considering various usecases, this is the code that I have copy/pasted to determine whether an invocation is local.
| /**
| * Check whether an invocation is local or remote
| * @param mi method invocation
| * @return true - local call
| */
| public boolean isLocalCall(MethodInvocation mi)
| {
| InvokerLocator locator = (InvokerLocator) mi.getMetaData(InvokeRemoteInterceptor.REMOTING, InvokeRemoteInterceptor.INVOKER_LOCATOR);
| return locator == null ||
| mi.getMetaData(IsLocalInterceptor.IS_LOCAL,IsLocalInterceptor.IS_LOCAL) != null;
| }
|
Another alternative would be setting a flag on the invocation.
Carlo, can you suggest a better solution?
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4139144#4139144
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4139144
16 years, 3 months