-
Notifications
You must be signed in to change notification settings - Fork 80
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Parameterize Receiver and Listener types #710
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Wat als je van een jms naar een jdbc storage overgaat, is dan alles in je errorstorage verloren?
@@ -852,7 +852,7 @@ private void moveInProcessToError(String originalMessageId, String correlationId | |||
} | |||
} | |||
if (errorStorage!=null) { | |||
errorStorage.storeMessage(originalMessageId, correlationId, receivedDate, comments, null, sobj); | |||
errorStorage.storeMessage(originalMessageId, correlationId, receivedDate, comments, null, (M)sobj); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Wat als sobj hier een MessageWrapper is?
Er is een structuurprobleem, waardoor dat wat dit PR beoogt nu niet kan. |
* Basic browser of JMS Messages. | ||
* @author Gerrit van Brakel | ||
*/ | ||
public class JmsBrowser<M extends Message> extends JmsMessageBrowser<M,M> { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Misschien toch wel handig om ipv een import hier javax.jms.Message te gebruiken?
*/ | ||
public class JmsMessageBrowser extends JMSFacade implements IMessageBrowser { | ||
public abstract class JmsMessageBrowser<M, J extends Message> extends JMSFacade implements IMessageBrowser<M> { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Wat is M en wat is J?
} | ||
|
||
PipeLineSessionBase.setListenerParameters(context, null, correlationId, tsReceived, tsSent); | ||
String messageId = (String) context.get("id"); | ||
return processMessageInAdapter(origin, message, message, messageId, correlationId, context, waitingTime, false); | ||
return processMessageInAdapter(origin, (M)message, message, messageId, correlationId, context, waitingTime, false); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Je kan toch zomaar een string naar een M casten?
@@ -938,19 +938,19 @@ public void processRawMessage(IListener origin, Object rawMessage, Map threadCon | |||
|
|||
* Assumes that a transation has been started where necessary. | |||
*/ | |||
private void processRawMessage(IListener origin, Object rawMessage, Map threadContext, long waitingDuration, boolean manualRetry) throws ListenerException { | |||
private void processRawMessage(IListener<M> origin, Object rawMessage, Map<String,Object>threadContext, long waitingDuration, boolean manualRetry) throws ListenerException { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Moet rawmessage dan geen M zijn?
No description provided.