yasserzamani opened a new pull request, #8955:
URL: https://github.com/apache/camel/pull/8955

   Fixes CAMEL-5963 via adding a new producer specific uri param so called 
`messageReceiverRouteId` which is however optional and so backward compatible 
(i.e. if not set then previous TX behavior will be seen exactly as before). If 
set then the user wouldn't define a corresponding redundant consumer. Camel 
will use the specified route above as corresponding consumer - internally it 
uses one and same SmppSession as producer.
   Example:
   ```java
                   from("direct:start")
                           
.to("smpp://j@localhost:8056?password=jpwd&systemType=producer" +
                               
"&messageReceiverRouteId=testMessageReceiverRouteId");
   
                   
from("direct:messageReceiver").id("testMessageReceiverRouteId")
                           .to("mock:result");
   ```
   
   CamelContext startup would fail in the first place on a wrong 
`messageReceiverRouteId` value via registering a StartupListener when no route 
can be found for the specified id. This has integrated tested in 
org/apache/camel/component/smpp/integration/SmppTRXProducerIT.java
   
   NOTE: When user's SMPP Server doesn't support TRX, still possible and she/he 
has to define separate producer (TX by default) and consumer (unchanged and RX 
by default) as before.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscr...@camel.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to