JIRA

  • Log In Access more options
    • Online Help
    • GreenHopper Help
    • Agile Answers
    • Use Agile By Default
    • Keyboard Shortcuts
    • About JIRA
    • JIRA Credits
    • What’s New
  • Dashboards Access more options (Alt+d)
  • Projects Access more options (Alt+p)
  • Issues Access more options (Alt+i)
  • Agile Access more options (Alt+g)
  • Create Issue
  • Mule
  • MULE-5614

"vm://path?method=foo" syntax not work in Mule 3.1.2

  • Agile Board
  • More Actions
  • Views
    • XML
    • Word
    • Printable

Details

  • Type: Bug Bug
  • Status: Open Open
  • Priority: Major Major
  • Resolution: Unresolved
  • Affects Version/s: 3.1.2
  • Fix Version/s: None
  • Component/s: Transport: VM
  • Labels:
    None
  • Environment:

    Windows 7, JDK 1.6.0_26

  • User impact:
    Medium
  • Effort points:
    1
  • Configuration:
    Hide

    <spring:bean id="methodTestComponent" class="MethodTestComponent" />

    <flow name="methodTestFlow">
    <vm:inbound-endpoint path="methodTest" exchange-pattern="request-response" />

    <component>
    <spring-object bean="methodTestComponent" />
    </component>
    </flow>

    Show
    <spring:bean id="methodTestComponent" class="MethodTestComponent" /> <flow name="methodTestFlow"> <vm:inbound-endpoint path="methodTest" exchange-pattern="request-response" /> <component> <spring-object bean="methodTestComponent" /> </component> </flow>
  • Similar Issues:
    None

Description

I realize there are other ways of setting the method property than using the syntax "vm://path?method=foo"
but we find this extremely convenient, and after upgrading to Mule 3.1.2 (from Mule 2.1.2) this does not work!

Here is the Java code (Component class + unit test class) for my test case (and see config section also for config):
public class MethodTestComponent {

public String method1(String s) { return "method1 called"; }

public String method2(String s) { return "method2 called"; }
}

public class MethodTestCase extends FunctionalTestCase {

@Test
public void test() throws Exception { LocalMuleClient client = muleContext.getClient(); MuleMessage reply = client.send("vm://methodTest?method=method2", "dummy msg", null); String result = (String) reply.getPayload(); String msg = "result "; assertTrue(msg, result.equals("method2 called")); }

@Override
protected String getConfigResources() { return "src/main/app/mule-config.xml"; }
}

Activity

  • All
  • Comments
  • Work Log
  • History
  • Activity
  • Transitions
  • Commits
  • Source
  • Builds

CE Bamboo View RSS feed

People

  • Assignee:
    Unassigned
    Reporter:
    Steve Markoff
Vote (2)
Watch (2)

Dates

  • Created:
    21/Jun/11 02:52 PM
    Updated:
    07/Mar/12 12:50 PM

Agile

  • View on Board
  • Atlassian JIRA (v5.0.7#734-sha1:8ad78a6)
  • Report a problem
  • Powered by a free Atlassian JIRA open source license for MuleForge. Try JIRA - bug tracking software for your team.