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
JMS Publisher : reload file content if file name changes #3630
Comments
UbikLoadPack support (migrated from Bugzilla): How did you create it ? You should first read this: Then to submit a patch, in Eclipse : Regards |
mchassagneux (migrated from Bugzilla):
Ho sry, I use WinMerge to do it ... I will look an other way to generate it... |
mchassagneux (migrated from Bugzilla): |
mchassagneux (migrated from Bugzilla): Created attachment JMS_DisableCache.patch: Patch file to disable cache when filename change JMS_DisableCache.patchdiff C:/perso_max/workspace/JMeter_2.12/src/protocol/jms/org/apache/jmeter/protocol/jms/sampler/PublisherSampler.java C:/perso_max/workspace/JMeter/src/protocol/jms/org/apache/jmeter/protocol/jms/sampler/PublisherSampler.java
92,95d91
< // Store file name
< private String file_name = null;
<
<
257,259c253
< // reload file if name change !
< if (getInputFile() != file_name) {
< file_name = getInputFile();
---
> if (file_contents == null) {
326,328c320
< // Reload file if name change !
< if (getInputFile() != file_name) {
< file_name = getInputFile();
---
> if (bytes_msg_file_contents == null) { |
Zafiu Andrei (migrated from Bugzilla): |
@pmouawad (migrated from Bugzilla): URL: http://svn.apache.org/viewvc?rev=1713842&view=rev Modified: |
@pmouawad (migrated from Bugzilla): It would be nice to have feedback on nightly build (available tomorrow) to see if everything works fine. |
mchassagneux (Bug 58160):
I've made this little hack (see attachment) on the JMS Publisher component to disabled the cache when the file name change ( by example when you variabilize the field )
Could you look at it and add it if possible. May be on other component where cache is use.
Created attachment JMS_DisableCache.patch: Patch file to disable cache when filename change
JMS_DisableCache.patch
OS: All
The text was updated successfully, but these errors were encountered: