jms

How can I prevent Apache CXF from sending a response message?

陌路散爱 提交于 2019-12-21 20:43:30
问题 In cases where a given SOAP header element has a given value (for example, if the value of the header tag "response" is "0"), I don't want Apache CXF to return a response at all. How can I do this? It appears that CXF makes the assumption that all calls will receive a response. (I know this seems strange in a web services context, but if your transport is JMS, it seems less strange). 回答1: I've been able to do this with an interceptor that aborts the interceptor chain. I've tested this with an

Why JMS to send mail by Java Mail

一笑奈何 提交于 2019-12-21 20:09:02
问题 Scenario 1 : Setup a JMS Queue in your server Java code to send Messages to Producer Create a JMS Producer, which when invoked, should receive the email data (subject, body, to , cc etc) and post it to the Queue setup in step 1 Create a JMS Consumer, which subscribes to the Queue created in Step 1, and its onMessage should call the JavaMail API to send the email. Scenario 2 : Directly call the JavaMail API to send the email. I know about how to use and what JMS and Java Mail are doing.Thing

Differences between JMS and CORBA?

余生颓废 提交于 2019-12-21 20:05:47
问题 I have just read about CORBA and JMS , they both seem to be used to implement Broker Architecture/Pattern . I have few questions regarding them 1.The differences between them are still not clear to me, anybody please explain ? 2.Is CORBA is used in today's IT Solutions ? Or is it losing charm ? 3.Does JMS can replace every aspect of CORBA ? 回答1: Ramon Gil Moreno is right in stating that JMS is the Java API that allows building applications to send and receive messages. IBM MQ or ActiveMQ are

JMS: Can we get multiple messages from queue in OnMessage() withtout commit or rollback

家住魔仙堡 提交于 2019-12-21 17:33:09
问题 I am using a JMS client which receives JMS messages from a remote server. I am listening to the JMS message in the onMessage() method of the client. The issue I am facing is that, messages are getting accumulated on the Server side even while I am consuming the messages on Client side at regular interval. I send a rollback() or commit() depending upon the processing I am doing on the client's end. I have a query that while I am processing the JMS message and I have not sent a commit() to the

XA/JTA transaction: JMS message arrives before DB changes are visible

 ̄綄美尐妖づ 提交于 2019-12-21 12:45:30
问题 Context is: producer (JTA transaction PT ) is both sending message to JMS queue and making DB update; consumer (JTA transaction CT ) listens on same queue and reads DB when message is received; application server - WebLogic, DB - Oracle. I've observed, that sometimes CT is not (yet?) able to see DB changes of PT , event if corresponding JMS message is already received ( PT is committed?). It seems that JTA can't guarantee consistency of such kind (this was also confirmed in Jurgen Holler's

Implement Request-Reply pattern using ActiveMQ, Camel and Spring

我怕爱的太早我们不能终老 提交于 2019-12-21 12:39:56
问题 I am trying to implement the following functionality: Read CSV file line-by-line then for every line: Build request based on the values that the line contains Send the request to the message queue Other component needs to pick up the message, process the request and send the response to another message queue (known to producer, so the producer could pick up the response). I believe that the request-reply pattern fits the bill. I installed ActiveMQ, downloaded camel and tried to use their jms

Confused as to when you would use JMS (or a queue in general) versus a database

安稳与你 提交于 2019-12-21 04:27:20
问题 When you store a message in a queue, isn't it more of meta data information so whoever pulls from the queue knows how to process the data? the actual information in the queue doesn't always hold all the information. Say you have an app like Twitter, whenever someone posts a message, you would still need to store the actual message text in the database correct? The queue would be more used to broadcast to other subscribers that a new message has arrived, and then those services could take

HornetQ on Tomcat

社会主义新天地 提交于 2019-12-21 04:16:17
问题 Is that possible to run HornetQ (JBoss JMS implementation) on Tomcat? The HornetQ documentation is all about JBoss AS or standalone scenarios... Update: This is from HornetQ feature list: "HornetQ is architected as a set of Plain Old Java Objects, it can therefore be run in JBoss Microcontainer, Spring, Google Guice or embedded in any third party product and instantiated directly". So I would be glad to to know how the Web Application (WAR) running on plain Tomcat can embed HornetQ? 回答1:

How to enqueue on Oracle AQ table on commit with Java and consume with a JMS client

笑着哭i 提交于 2019-12-21 02:48:23
问题 I am writing a Java component for an enterprise level product and want to leverage a particular feature of Oracle 11g databases, Active Queues. The exact scenario i nwant to accomplish is - 1. write a message to the oracle active queue/queue table on commit 2. read that message from the queue with a JMS consumer I followed the demo and tutorial at http://docs.oracle.com/cd/B28359_01/java.111/b31224/streamsaq.htm and in particular, I'd like to focus on the enqueue part of the code - // Create

Using JMS or ThreadPool to send email messages

烈酒焚心 提交于 2019-12-21 02:40:15
问题 I will like to know: I have a scenario. If a user adds a product to the system (I'm developing), there's a listener that sends a notification to the user's client base notifying of a new product added by the user. I've read this thread and (seeing I've never used JMS nor ThreadPool before) I was wondering whether I should use JMS or ThreadPooling. I am using Tomcat 5.5 and higher and JBoss 5 and higher (depending on company last resort) to deploy my web application. If I use JMS, do I use