[Design of EJB 3.0] - Re: Ejb3Deployment.resolveMessageDestination
by scott.stark@jboss.org
The org.jboss.injection.ResourceHandler should just be looking at the mappedName/jndiName/resolvesJndiName and throwing an exception if its not set. This is the change I made in the client container version and then fixed the message-destination-ref link resolution in the MappedReferenceMetaDataResolverDeployer.
The org.jboss.injection.ResourceHandler is not looking to the resolvedJnidName curently. Should be something like:
| private static void loadXmlMessageDestinationRefs(InjectionContainer container, Collection<MessageDestinationReferenceMetaData> refs)
| {
| for (MessageDestinationReferenceMetaData envRef : refs)
| {
| String encName = "env/" + envRef.getMessageDestinationRefName();
| if (container.getEncInjectors().containsKey(encName)) continue;
| String jndiName = envRef.getMappedName();
| if (jndiName == null || jndiName.equals(""))
| {
| // Look for a resolved-jndi-name
| jndiName = envRef.getResolvedJndiName();
| if (jndiName == null)
| {
| throw new RuntimeException("message-destination has no jndi-name/resolved-jndi-name " + envRef);
| }
| }
| ...
|
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4168571#4168571
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4168571
15 years, 10 months
[Design of Messaging on JBoss (Messaging/JBoss)] - Re: Paging discussion:
by clebert.suconic@jboss.com
anonymous wrote : Can you elaborate more why you need different files for messages and message references? I found it hard to understand from your wiki.
|
I'll reformulate the WIKI, but let me explain this part here.
- Say you have one Address with 10 Messages:
Msg1, 2, 3, 4, 5, 6, 7, 8, 9, 10
- You have two consumers on that Binding. One of them consumed messages 1,2 and 3, the other one consumer 4, 5 and 6. Now the first consumer rolled back the ACKs while the second consumer committed the messages:
After these two Consumers operation, the Binding Queue will have:
Msg1,2,3, 7, 8, 9 (4,5 and 6 are gone)
While another Binding of the same address could still have:
Msg 1,2,3,4,5,6,7,8,9,10
so... because of that we will need the references on a separated data structure.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4168520#4168520
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4168520
15 years, 10 months