exchangeStore question

31 views
Skip to first unread message

carlsmi...@gmail.com

unread,
Mar 8, 2016, 2:48:15 PM3/8/16
to membrane-monitor
Hello,

I've been trying to set up membrane Service Proxy to store the requests/reponses in both file form (fileExchangeStore) and memory (limitedMemoryExchangeStore).
So far I've been able to set up the proxies.xml so that the filestore is working as intended, but no exchanges are being displayed at all in the "Calls" tab on the admin console.

---------------------------------------------------------------------------------
-> proxies.xml:


<fileExchangeStore
id="teststore"
dir="logs/membrane"
raw="false" 
saveBodyOnly="false"/>
 
<router>
<transport>
<ruleMatching />
<exchangeStore name="teststore" />
<dispatching />
<reverseProxying />
      <!-- <accessControl file="acl.xml" /> -->
       <userFeature />
       <httpClient />
  </transport>
  
<serviceProxy name="TestFacade1" port="80" >
<path>/TestFacade1/</path>
<target host="10.18.83.22" port="8006" />
</serviceProxy>
<serviceProxy name="TestFacade2" port="80" >
<path>/TestFacade2/</path>
<target host="10.18.83.22" port="8001"/>
</serviceProxy>

<serviceProxy name="* * /axis2/:80" port="80" >
<path>/axis2/</path>
<target host="172.30.128.2" port="80"/>
</serviceProxy>

<serviceProxy name="Console" port="9000">
<basicAuthentication>
<user name="membrane" password="asdf123" />
<user name="membrane2" password="asdf123" />
</basicAuthentication>
<adminConsole />
</serviceProxy>
 
 </router>
 
</spring:beans>
------------------------------------------------------------------------------

Does anybody know what am I doing wrong ?
Any help would be greatly appreciated.

Thomas Bayer

unread,
Mar 8, 2016, 3:04:49 PM3/8/16
to membrane...@googlegroups.com
Hi,
create a second store besides the fileExchangeStore:

<limitedMemoryExchangeStore id="memoryStore" maxSize="10000000" />

<fileExchangeStore
id="teststore"
dir="logs/membrane"
raw="false" 
saveBodyOnly="false"/>

add the secound store inteceptor to your transport:


<transport>
<ruleMatching />
                        <exchangeStore name="teststore" />
<exchangeStore name="memoryStore" />
<dispatching />
<reverseProxying />
      <!-- <accessControl file="acl.xml" /> -->
       <userFeature />
       <httpClient />
  </transport>

That should fix it.

Cheers,
Thomas

Am 08.03.16 um 20:46 schrieb carlsmi...@gmail.com:
--
You received this message because you are subscribed to the Google Groups "membrane-monitor" group.
To unsubscribe from this group and stop receiving emails from it, send an email to membrane-monit...@googlegroups.com.
To post to this group, send email to membrane...@googlegroups.com.
Visit this group at https://groups.google.com/group/membrane-monitor.
For more options, visit https://groups.google.com/d/optout.

carlsmi...@gmail.com

unread,
Mar 8, 2016, 6:05:26 PM3/8/16
to membrane-monitor
Hey Thomas,

Thanks for the reply, it didn't work though =/. The "Calls" tab still doesn't store the exchanges, but they are being saved in .msg files.

That's how the proxies.xml is configured after the changes, I'm using version 4.0.17:

<limitedMemoryExchangeStore id="memoryStore" maxSize="10000000" />
<fileExchangeStore
id="teststore"
dir="logs/membrane"
raw="false" 
saveBodyOnly="false"/>
 
<router>
<transport>
<ruleMatching />
<exchangeStore name="memoryStore" />

Thomas Bayer

unread,
Mar 9, 2016, 9:11:29 AM3/9/16
to membrane...@googlegroups.com
Hi,
I think the UI references the ExchangeStore by its Spring Id. Can you try to change memoryStore to exchangeStore?

<limitedMemoryExchangeStore id="exchangeStore" maxSize="10000000" />

<transport>
<ruleMatching />
<exchangeStore name="exchangeStore" />
<exchangeStore name="teststore" />
<dispatching />
<reverseProxying />
      <!-- <accessControl file="acl.xml" /> -->
       <userFeature />
       <httpClient />
  </transport>

Please let me know if this does not work, than I have to look into the code for the right name.

Cheers,
Thomas


Am 09.03.16 um 00:05 schrieb carlsmi...@gmail.com:
--

carlsmi...@gmail.com

unread,
Mar 9, 2016, 10:43:54 AM3/9/16
to membrane-monitor
Hello,

Thanks again for the support.
Using exchangeStore as id/name didn't fixed it, the UI still doesn't acknowledge the memory store and no calls are recorded there. All the other tabs in the UI work just fine.
Reply all
Reply to author
Forward
0 new messages