-
1. Re: How using message in memory queue with messaging?
marklittle Jun 22, 2007 4:27 PM (in response to claudio_br)Not sure exactly what you mean. Can you give a more complete description?
-
2. Re: How using message in memory queue with messaging?
claudio_br Jun 22, 2007 5:18 PM (in response to claudio_br)Hi Mark,
Jbossmq and messaging persist the messages in database.
Is it possible remove persistence in database of the messages?
The messages would be only in memory.
Thanks -
3. Re: How using message in memory queue with messaging?
marklittle Jun 22, 2007 5:45 PM (in response to claudio_br)You want to to know if the ESB supports non-persistent JMS messages?
-
4. Re: How using message in memory queue with messaging?
claudio_br Jun 22, 2007 8:36 PM (in response to claudio_br)Yes,
And if supported, How can I use?
Thanks -
5. Re: How using message in memory queue with messaging?
marklittle Jun 23, 2007 10:28 AM (in response to claudio_br)I don't think there's anything in the codebase to mandate persistent messages, but I've asked Daniel to check. Hopefully he'll be able to post something here to help you later.
-
6. Re: How using message in memory queue with messaging?
burrsutter Jun 24, 2007 11:23 AM (in response to claudio_br)
For the ESB without JMS (e.g. using FTP or SOAP), a message is not necessarily stored in the database unless you explicitly ask it to be.
For the ESB with JMS (e.g. ActiveMQ, JBossMQ, MQSeries) it will depend on the implementation of the JMS provider. In the case of JBoss MQ and Messaging, persistent messages require a database. -
7. Re: How using message in memory queue with messaging?
marklittle Jun 24, 2007 1:45 PM (in response to claudio_br)"burrsutter" wrote:
For the ESB with JMS (e.g. ActiveMQ, JBossMQ, MQSeries) it will depend on the implementation of the JMS provider. In the case of JBoss MQ and Messaging, persistent messages require a database.
Yes, but not all JMS messages have to be persistent, which is what I think claudio is after. -
8. Re: How using message in memory queue with messaging?
beve Jun 25, 2007 7:01 AM (in response to claudio_br)Hi,
I've taken a look and it turns out that this is not possible at the moment, but I've created this JIRA http://jira.jboss.com/jira/browse/JBESB-646 as a feature request.
Let me know if there is anything else I can do?
Thanks,
Daniel -
9. Re: How using message in memory queue with messaging?
claudio_br Nov 8, 2007 7:25 AM (in response to claudio_br)Hi
I am trying to use non persistent jms (esb 4.2.1.GA), but I have a doubt about config.
In jira I get:<jms-message-filter dest-type="QUEUE" dest-name="queue/quickstart_business_service_Request" persist="true"/>
In Programmers Guide I get:<bus busid="local-jms"> <property name="destination-type" value="topic" /> <property name="destination-name" value="queue/B" /> <property name="message-selector" value="service='Reconciliation'" <property name="persistent" value="true"/> </bus>
What should I use them?
In my esb, I am using jms-message-filter
Can you add a sample about jms-message-filter with non persistent jms here?
Thanks -
10. Re: How using message in memory queue with messaging?
sebcio Nov 8, 2007 9:59 AM (in response to claudio_br)Hi Claudio,
you mean the delivery mode? DeliveryMode.NON_PERSISTENTYes, but not all JMS messages have to be persistent, which is what I think claudio is after.
Sebastian -
11. Re: How using message in memory queue with messaging?
claudio_br Nov 8, 2007 11:04 AM (in response to claudio_br)I did a test and with jms-message-filter I should using:
<jms-message-filter dest-type="QUEUE" dest-name="queue/cep_esb" persistent="false"/>
Is it correct?
I am using:ServiceInvoker myservice = new ServiceInvoker("Cep", "Cep"); MessageFactory mfactory = MessageFactory.getInstance(); Message requestMessage = mfactory.getMessage(MessageType.JAVA_SERIALIZED); Comando cmd = new Comando(); cmd.setValor("test"); requestMessage.getBody().add("Comando",cmd); Message replyMessage = deliveryAdapter.deliverSync(requestMessage,5000);
Do I need change my code to use message non persistent?
Just I modify the jboss-esb.xml or I must also modify my code?
Thanks. -
12. Re: How using message in memory queue with messaging?
claudio_br Nov 12, 2007 7:06 AM (in response to claudio_br)The performance of my application did not improve with a change in jboss-esb.xml (last post).
Do I need to change anything in my code?
Thanks -
13. Re: How using message in memory queue with messaging?
claudio_br Nov 13, 2007 7:13 PM (in response to claudio_br)Please,
Someone help me! -
14. Re: How using message in memory queue with messaging?
beve Nov 14, 2007 3:12 AM (in response to claudio_br)Hi Claudio,
You should not need to change anything in your code. Setting the persistent property to false should do the trick:<jms-bus busid="quickstartGwChannel"> <jms-message-filter dest-type="QUEUE" dest-name="queue/quickstart_helloworld_Request_gw" persistence="false" /> </jms-bus>
I've tried this with the helloworld quickstart. If you enable logging for org.jboss.soa in conf/jboss-log4j.xml:<category name="org.jboss.soa"> <priority value="DEBUG" /> <appender-ref ref="CONSOLE"/> </category>
You should see the following in the log/server.log file (when 'ant runtest' is executed):DEBUG [org.jboss.internal.soa.esb.couriers.JmsCourier] JMSCourier deliveryMode: 1, peristent:false
The delivery modes are as follows :
DeliveryMode.NON_PERISTENT=1,DeliveryMode.PERSISTENT=2
Could you check to see that you get the log statement above and that the deliveryMode is set to 1?
Thanks,
/Daniel