I have a scenario in which I have to isolate every inbound HTTP Connection and store it in a hash storage (like a Hashtable) along withe username & other connection information.
How do I isolate this HTTP connection in a mule flow? I think I might need to install DevKit? That way I could use annotations based java classes and get a handle on the connection.
Or is that an overkill? Because firstly I don't see the devkit tab in my studio. Is there an alternate way of achieving the same?
I did not get the part of isolating the HTTP Connections though , but if you wish to use Devkit you first need to install it in your AnypointStudio
Go into Help >Install New Software >Select Devkit Update Site
If you do not have the Devkit Update Site in your studio do use this link.
Related
In order to satisfy a certain criterium, there is a need to publish a message to an existing ActiveMQ instance. Currently we use different software and a JMS-based connection to publish and read messages.
I did find about the additional plugins where MQTT is listed. We don't prefer to use that protocol if not required.
I could not find any plugins for Apache Hop that deal with receiving/sending over JMS, so is that an option?
I will unfortunately have to disappoint you in this case.
As far as I know no one has written a plugin to support ActiveMQ yet.
You can create a ticket on our jira to request a community member to create such a transform(s). Or we can support you through our mailing-list if you have specific questions when writing a plugin to support it.
Also if I have authorisation header fields-> Where and how do I give them?? Is there any tool for this?
I have done local host "ws://localhost:8080/socket" using
If you are using the "WebSockets Samplers" plugin with JMeter, you can open multiple websocket connections, but not at the same time on the same thread (JMeter user). If you are sure you need that feature, there is an experimental build of the plugin that supports multiple connections on one thread.
You can add authorisation fields by using the standard JMeter HeaderManager.
what is the best way to monitor the Mule ESB instances. Is there a way i can get alerted when my mule instance goes down for some reason. I have 4 instances of Mule running and how will I come to know if 1 of them got down due to some reason.
Thanks!
I assume you are running community edition? (Enterprise edition provides a Management Console which allows you to define alerts). If you are using CE, then you are able to enable JMX monitoring on the instances and then use one of many ways to verify based on JMX info, whether your server is running. One way is to write your own application that retrieves JMX data programmatically and act accordingly.
HTH
If you are using Mule EE, you can use MMC to monitor all your instances as Gabriel has already suggested. My suggestion would be to install MMC inside tomcat on a separate server. This is to ensure that even if your Mule Server crashes or goes down, your MMC is still running and can send you alerts about your Mule server downtime. You can refer below link for details on how to setup server down and up alerts.
https://developer.mulesoft.com/docs/display/current/Working+With+Alerts
Additionally I would recommend to use MMC with database persistence to ensure you have ability to recover MMC workspace even if your MMC server crashes. You can refer about MMC setup with DB persistence at below link.
https://developer.mulesoft.com/docs/display/current/Configuring+MMC+for+External+Databases+-+Quick+Reference
If you don't have Mule EE, you may want to explore other tools or customer alerting applications as suggested by Gabriel.
HTH
You can set up a JMX agent by adding the following lines into your "conf/wrapper.conf" file :
wrapper.java.additional.19=-Dcom.sun.management.jmxremote
wrapper.java.additional.20=-Dcom.sun.management.jmxremote.port=10055
wrapper.java.additional.21=-Dcom.sun.management.jmxremote.authenticate=false
wrapper.java.additional.22=-Dcom.sun.management.jmxremote.ssl=false
wrapper.java.additional.23=-Djava.rmi.server.hostname=127.0.0.1
don't forget to change the values accordingly. Also you can implement SSL authentication with a few extra lines.
Now once your monitoring platform is set up you can always activate Java pollers and start the server.
How to verify if Mule server is deployed or not? My intention is to send a query(HTTP or something else) to Mule server and to see if it is up or down. This I want to do when no applications are deployed on the Mule server. This is to do validation post Mule server deployment. I am using community edition v3.3.0 and v3.4.0. I cannot use Mule EE version.
Thanks and Regards
Jai
That seems like a good idea.
The other option is to have you mule app sending a notification when started.
I know you said you can't use EE but the MMC module is probably what you need.
In any case they only problem with the previous approach is if you have a connectivity problem in the server you have your mule app running, but I reckon in that case you'll have several other problems.
HTH
Whenever hit the http we can see the response in console or in the logs.
First check whether your sever is running or not, give the proper url.
I am having a requirement like interacting the mules from different machines.I used the tcp inbound endpoint it is working perfectly if I configure everything in the mule-config.xml.Now my problem is i dont want to use the mule-config.xml but I want to load it programmatically.if any one have the solution pls update..
Thask.
The whole point of using Mule is that you can configure your flows simplistically, rather than writing complex code yourself. Having said that you can programmatically configure endpoints provided they are
outbound endpoints.
OR you using mulerequester:request
You cannot programmatically configure inbound endpoint.