Vincent Brouillet | 10 Feb 04:31
Gravatar

Re: How to create a flow to do something when two different things happen?

Unfortunately, mule doc is outdated. They don't explain how to use collection-aggregator in a flow, only
in services.
Has someone successfully used a collection aggregator or custom aggregator in a flow ?

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email

Adrian Brenes | 9 Feb 20:25
Gravatar

How to connect an Esper Listener with a Web Service using a VM component

Hello,

I need to connect an Esper Technology Listener and a Web Service, so, I decided to use, for example, a VM component.
Specifically, I need to create new events from the Esper Listener and then send them to the web service.
I know to use the Mule Client in a MuleContext. I've tried in an specific class and it works perfectly, but
when I try to catch events which were sent from the Esper Listener it fails.
I think this happens because of the MuleContext.

So, my question is: What do I need for this to work?

I show the Mule Configuration File below:

-----

<?xml version="1.0" encoding="UTF-8"?>

(...)

    <spring:beans>
        <spring:bean id="jdbcDataSource" class="org.enhydra.jdbc.standard.StandardDataSource"
destroy-method="shutdown" doc:name="Bean">
            <spring:property name="driverName" value="com.mysql.jdbc.Driver"/>
            <spring:property name="url" value="jdbc:mysql://localhost/test"/>
        </spring:bean>
    </spring:beans>
    <jdbc:connector name="JDBC_Connector" dataSource-ref="jdbcDataSource"
validateConnections="false" queryTimeout="10" pollingFrequency="10000" doc:name="Database (JDBC)">
        <jdbc:query key="Guardar_Pachube" value="INSERT INTO meteo (fecha, temperatura, luz, humedad,
ruido, diox_carb, monox_carb, calidad_aire) VALUES (#[groovy:payload.timestamp],
#[groovy:payload.temperature], #[groovy:payload.light], #[groovy:payload.humidity],
(Continue reading)

Gennadiy Civil | 9 Feb 15:58
Gravatar

Monitoring JVM stats with jConsole (or similar) - how to remotely connect?

Hello:
We are running Mule community edition and would like to see general JVM stats (heap, threads, etc ) with
jConsole or similar. 
So I enabled these in the wrapper:conf

# Allow JMX to Connect
wrapper.java.additional.5=-Dcom.sun.management.jmxremote.port=9000
wrapper.java.additional.6=-Dcom.sun.management.jmxremote.authenticate=false but still can not
connect with jconsole

However jConsole is not able to connect to the server remotely on port 9000. 

What I am missing here?
Any help is appreciated

Thanks
Gennadiy Civil

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email

David Borja | 9 Feb 13:02
Picon
Gravatar

Problem with Mule and BonitaSoft

Hi there.

I am facing a problem trying to use Mule and Bonita.

What i am trying is to send a message through JMS queue, then Mule catch the message and start a process in Bonita, finally the result of process is sent to another JMS queue.

This is my simple configuration in Mule 2.2.1:

<?xml version="1.0" encoding="UTF-8"?>
<mule xmlns="http://www.mulesource.org/schema/mule/core/2.2"
       xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
       xmlns:spring="http://www.springframework.org/schema/beans"
       xmlns:stdio="http://www.mulesource.org/schema/mule/stdio/2.2"
       xmlns:vm="http://www.mulesource.org/schema/mule/vm/2.2"
       xmlns:jms="http://www.mulesource.org/schema/mule/jms/2.2"
       xmlns:bos="http://www.mulesource.org/schema/mule/bos/2.2"
       xsi:schemaLocation="
               http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.5.xsd
               http://www.mulesource.org/schema/mule/core/2.2 http://www.mulesource.org/schema/mule/core/2.2/mule.xsd
               http://www.mulesource.org/schema/mule/stdio/2.2 http://www.mulesource.org/schema/mule/stdio/2.2/mule-stdio.xsd
               http://www.mulesource.org/schema/mule/vm/2.2 http://www.mulesource.org/schema/mule/vm/2.2/mule-vm.xsd
               http://www.mulesource.org/schema/mule/bos/2.2 http://localhost:8161/demo/mule-bos.xsd
               http://www.mulesource.org/schema/mule/jms/2.2 http://www.mulesource.org/schema/mule/jms/2.2/mule-jms.xsd">

    <description>
   
    </description>
   
   
        <jms:activemq-connector name="jmsConnector" brokerURL="tcp://localhost:61616" />   
    <bos:connector name="bosConnector" login="admin"
        password="bpm" jaasFilePath="C:/Instaladores/Mule/mule-standalone-2.2.1/examples/webpurchase/conf/jaas-standard.cfg" undeployUnlistedProcesses="false" redeployProcesses="false" >
    </bos:connector>
    <model>
        <service name="HelloService">
            <inbound>
                <jms:inbound-endpoint queue="request.queue" />
            </inbound>
            <!-- <component class="com.itexchange.webpurchase.Welcomer" /> -->
            <outbound>
                <pass-through-router>
                    <bos:outbound-endpoint address="bos://SampleProcess--1.0" >
                    </bos:outbound-endpoint>
                </pass-through-router>
            </outbound>
        </service>
    </model>
  
</mule>

The process is running in BOS 5.6 bundled with Tomcat 6.

When i put a message in "request.queue", Mule throws the following exception:

SEVERE: Caught exception in Exception Strategy: Process type is missing, cannot start a new process.
java.lang.IllegalArgumentException: Process type is missing, cannot start a new process.
    at org.mule.transport.bpm.ProcessMessageDispatcher.processAction(ProcessMessageDispatcher.java:172)
    at org.mule.transport.bpm.ProcessMessageDispatcher.doDispatch(ProcessMessageDispatcher.java:69)
    at org.mule.transport.AbstractMessageDispatcher$Worker.run(AbstractMessageDispatcher.java:262)
    at org.mule.work.WorkerContext.run(WorkerContext.java:310)
    at edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1061)
    at edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:575)
    at java.lang.Thread.run(Unknown Source)


What is wrong with my configuration?, how can i set the process type asking in Mule?

Hope you can help me!!


Thanks in advance.


Regards.





Louie Nohay | 9 Feb 11:47
Gravatar

Help on XSL Formatting

HI community,

I am using XSL-Transformer before I insert my object messages to jms endpoints, however I am getting this
problem with my XSL file

-----
INFO  2012-02-09 18:42:51,500 [main] org.mule.processor.SedaStageLifecycleManager: Initialising
service: outgoing-entry-flow.async1
Error on line 4 column 12 
  *SXXP0003: Error reported by XML parser: Element type "xsl:param" must be followed by*
  *either attribute specifications, ">" or "/>".*
INFO  2012-02-09 18:42:52,046 [main] org.mule.lifecycle.AbstractLifecycleManager: Disposing
connector: JdbcConnector
INFO  2012-02-09 18:42:52,046 [main] org.mule.lifecycle.AbstractLifecycleManager: Disposing
connector: TCPPollingConnector
INFO  2012-02-09 18:42:52,046 [main] org.mule.util.monitor.ExpiryMonitor: disposing monitor
INFO  2012-02-09 18:42:52,062 [main] org.mule.lifecycle.AbstractLifecycleManager: Disposing
connector: AMQConnector
INFO  2012-02-09 18:42:52,062 [main] org.mule.lifecycle.AbstractLifecycleManager: Disposing
model: _muleSystemModel
ERROR 2012-02-09 18:42:52,062 [main] org.mule.tooling.server.application.ApplicationDeployer: null
javax.xml.transform.TransformerConfigurationException: Failed to compile stylesheet. 1 error detected.
-----

Here is the content of my XSL file:

-----
<?xml version="1.0" encoding="ISO-8859-1"?>

<xsl:stylesheet version="2.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
	<xsl:param="messagetype"/>
	<xsl:param="from"/>
	<xsl:param="to"/>
	<xsl:param="message"/>
	<xsl:param="timestamp"/>
	<xsl:template name="OutboxMessage" match="/">
		<xsl:element name="OutboxMessage">
			<xsl:element name="messagetype">
				<xsl:value-of select="$xsl.messagetype"/>
			</xsl:element>
			<xsl:element name="from">
				<xsl:value-of select="$xsl.from"/>
			</xsl:element>
			<xsl:element name="to">
				<xsl:value-of select="$xsl.to"/>
			</xsl:element>
			<xsl:element name="message">
				<xsl:value-of select="$xsl.message"/>
			</xsl:element>
			<xsl:element name="timestamp">
				<xsl:value-of select="$xsl.timestamp"/>
			</xsl:element>
		</xsl:element>
	</xsl:template>
</xsl:stylesheet>
-----

Can you help me with this as I am new in XSLT. Thanks in advance.

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email

Gravatar

Aggregating CSV files

Hi,

I need to aggregate multiple files into one before I send it to the component for processing. The number of
parts for the file will be part of the file name. 
For ex: If the file name is TH_FIN_1_4.csv, it means that the file is part 1 of 4. I need to aggregate all the 4
files into one and then send it for processing to the component.

Any idea how I should go about doing this?

Thanks,
Sumith

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email

Ludvig Johansson | 8 Feb 16:11
Gravatar

Re: Mule 3.1.1 [can't find tag thant is named by pattern:web-service-proxy]

Thanks Dave! You have saved me some time today.

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email

Prafulla Prafulla | 8 Feb 15:24
Gravatar

Not able to parse the response returned by a WebService in Mule ESB3

Hi All,

I am evaluating Mule to use as an ESB in my project. As a simple POC I want to call an external web-service and
transform the response returned and submit to JMS.

To start with I have created a simple Web-Service and deployed it in Tomcat.

Now I am calling that Web-service from Mule by refering 'JAX-WS Code First Client' section of following
link http://www.mulesoft.org/documentation/display/MULE3USER/Consuming+Web+Services+with+CXF.

I am able to call the web-service successfully but in the doTransform method of my Custom Transformer the
object that I am getting is of type org.mule.transport.http.ReleasingInputStream instead of my own
POJO object which I am returning from my web-service.

If I am using <object-to-string-transformer name="ObjectToString" doc:name="Object to String"/> to
parse the response it is getting converting into a xml String of soap envelop object, but i am not able to
convert it into my POJO

Please guide me where I am wrong. Below the flow xml of my sample Project

<?xml version="1.0" encoding="UTF-8"?>

<mule xmlns="http://www.mulesoft.org/schema/mule/core"
xmlns:http="http://www.mulesoft.org/schema/mule/http"
xmlns:cxf="http://www.mulesoft.org/schema/mule/cxf"
xmlns:jms="http://www.mulesoft.org/schema/mule/jms"
xmlns:doc="http://www.mulesoft.org/schema/mule/documentation"
xmlns:spring="http://www.springframework.org/schema/beans"
xmlns:core="http://www.mulesoft.org/schema/mule/core"
xmlns:mulexml="http://www.mulesoft.org/schema/mule/xml"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" version="CE-3.2.1" xsi:schemaLocation="
http://www.mulesoft.org/schema/mule/http
http://www.mulesoft.org/schema/mule/http/current/mule-http.xsd 
http://www.mulesoft.org/schema/mule/cxf
http://www.mulesoft.org/schema/mule/cxf/current/mule-cxf.xsd 
http://www.mulesoft.org/schema/mule/jms
http://www.mulesoft.org/schema/mule/jms/current/mule-jms.xsd 
http://www.springframework.org/schema/beans
http://www.springframework.org/schema/beans/spring-beans-3.0.xsd 
http://www.mulesoft.org/schema/mule/core
http://www.mulesoft.org/schema/mule/core/current/mule.xsd 
http://www.mulesoft.org/schema/mule/xml
http://www.mulesoft.org/schema/mule/xml/current/mule-xml.xsd ">
    <jms:activemq-connector name="Active_MQ" brokerURL="tcp://localhost:61616"
validateConnections="true" maxRedelivery="10" doc:name="Active MQ"/>

    <object-to-string-transformer name="ObjectToString" doc:name="Object to String"/>
    <flow name="jmsflowFlow1" doc:name="jmsflowFlow1">
        <inbound-endpoint address="http://localhost:63081/CalculateService" doc:name="Generic"/>
        <cxf:jaxws-service port="80" serviceClass="com.esb.publisher.ISumPublisher"
enableMuleSoapHeaders="false" doc:name="SOAP"/>
        <component doc:name="Java">
            <singleton-object class="com.esb.publisher.SumPublisher"/>
        </component>
        <cxf:jaxws-client operation="addAll" serviceClass="com.esb.service.ICalculateService"
port="80" doc:name="SOAP"/>
        <http:outbound-endpoint exchange-pattern="request-response"
address="http://localhost:8080/MuleESB/CalculateService" doc:name="Generic"/>
        <custom-transformer class="com.esb.transformer.SumTransformer" doc:name="Java"/>
        <jms:outbound-endpoint topic="testTopic" connector-ref="Active_MQ" doc:name="JMS"/>
    </flow>
</mule>

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email

Louie Nohay | 8 Feb 08:15
Gravatar

SMPP Connector to ActiveMQ

Hi community, Anyone here ever used SMPP-to-ActiveMQ connection using Mule?

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email

stroobat | 8 Feb 08:05
Gravatar

Linkedin Group: Mule opportunities in Belgium

Hi guys,

Sorry if this is not the correct place to post this data ... But I created a group on linkedin specially for
people located in Belgium.
Could be a great place to share ideas for Mule Developers in Belgium.

Feel free to join: http://www.linkedin.com/groups/Mule-opportunities-in-Belgium-4292715?gid=4292715&mostPopular=&trk=tyah

Best regards,

Tom.

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email

Roine Edmundsson | 7 Feb 17:52
Gravatar

Calling external web services

Hi, I have currently begun to evaluate Mule and Mule Studio and trying to figure out if you need to manually
code all interactions with external services on format etc. etc. Or is there some smooth way to match parameters?

What I have begun to create as an example is a really simple service. Where I expose the flow in Mule and in that
flow call an external service and then return the chosen value.

I can't find a good tutorial on this kind of interactions more then "you can use axis, xfire, apache cx"...
hmm... cvx.. baah, can't remember the name at the moment.

I am trying to figure out if Mule can provide a good way to smooth up integrations. I should add that I am used to
C# and there I really dont have to bother much with the proxy class creations. Just point out the service and
then I can use all calls/type/parameters as is.

And now I assume someone is thinking stupid things wanting to call me names and such, but I am looking for
something where I can easilly create the processes of a business flow with data transformations etc. And
Mule + Oakland Data Transformer was a suggested combination.

So in the end I ended up here, so I hope you can point me in the right direction. The direction with the least
coding and the most productivity ;)

And ofc good tutorials and documentation. Documentation with examples would be great.

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email


Gmane