Re: [jira] Created: (CAMEL-1392) groovy renderer

2009-07-08 Thread alloyer
all right. I saw the deadLetter DSL have used "direct://start". Will this enforcemnt be applied before long? Claus Ibsen-2 wrote: > > On Thu, Jul 9, 2009 at 7:47 AM, alloyer wrote: >> >> Have the endpoint URIs been changed to "direct://start" from >&

Re: [jira] Created: (CAMEL-1392) groovy renderer

2009-07-08 Thread alloyer
Have the endpoint URIs been changed to "direct://start" from "direct:start" ? I haven't updated my camel-core source for several days. Maybe I have to update it now. JIRA j...@apache.org wrote: > > groovy renderer > --- > > Key: CAMEL-1392 > URL:

Re: [jira] Commented: (CAMEL-1392) groovy renderer

2009-07-07 Thread alloyer
eader(foo) == bar. Though >> this >> is >> > not as nice looking for the tracing feature IMO. What do others think >> of >> > this change? >> >> Maybe a new method is needed that can output it more DSL like. >> >> The toString as

Re: [jira] Commented: (CAMEL-1392) groovy renderer

2009-07-07 Thread alloyer
e DSL. willem.jiang wrote: > > Hi, > > xxxDefinition classes has the toString() method, which is useful for > tracing the message. > > I don't know if it can help your Groovy rendering. > > Willem > > alloyer wrote: >> groovyRenderer now need

Re: [jira] Commented: (CAMEL-1392) groovy renderer

2009-07-07 Thread alloyer
uses a predicate as parameter, and it also can use a xpath or other expression as its parameter, so in the filter processing part, I have to judge several conditions: {code} if (expression.getPredicate() != null) { PredicateRenderer.renderPredicate(buffer, expression.getPredicate()); } else if (expr

Re: [jira] Commented: (CAMEL-1392) groovy renderer

2009-07-07 Thread alloyer
it has a runtime. >> >> Maybe you need a getLoadBalancer() without a parameter. But try with >> getLoadBalancer(null) in the class LoadBalancerDefinition as it should >> have been created. Notice its the load balancer definition with R that >> can return the specific ty

Re: [jira] Created: (CAMEL-1392) groovy renderer

2009-07-06 Thread alloyer
After some discuss with Janstey, I know the web editor is working for changing the existing route, not for router development. The duty of creating bean may be dropped on groovy editor. alloyer wrote: > > all right. I am going to create a page to list which DSL have been > supported t

Re: [jira] Created: (CAMEL-1392) groovy renderer

2009-07-06 Thread alloyer
ntent Based Router (choice) is top priority. > > > > On Mon, Jul 6, 2009 at 1:05 PM, alloyer wrote: >> >> When renderring >>    loadBalance().failover(IOException.class) >>    resequence(body()) >> ,need a getExceptions() for FailOverLoadBalancer and a g

Re: [jira] Commented: (CAMEL-1392) groovy renderer

2009-07-06 Thread alloyer
There are one problem to define the assertions in test cases since sometimes we are not sure of an input sentence. For example: 1)"to("mock:a","mock:b") and "to("mock:a").to("mock:b") have the same route definition 2) Sometimes we can't use a ".end()" for the choice sentence. But when renderring

Re: [jira] Created: (CAMEL-1392) groovy renderer

2009-07-06 Thread alloyer
When renderring loadBalance().failover(IOException.class) resequence(body()) ,need a getExceptions() for FailOverLoadBalancer and a getExceptionList() for ResequenceDefinition. JIRA j...@apache.org wrote: > > groovy renderer > --- > > Key: CAMEL-1392 >

Re: [jira] Commented: (CAMEL-1392) groovy renderer

2009-07-04 Thread alloyer
Balancer() without a parameter. But try with >> getLoadBalancer(null) in the class LoadBalancerDefinition as it should >> have been created. Notice its the load balancer definition with R that >> can return the specific type. >> >> >> >> On Sat, Jul 4, 200

Re: [jira] Commented: (CAMEL-1392) groovy renderer

2009-07-04 Thread alloyer
ck:y", "mock:z") Claus Ibsen-2 wrote: > > On Sat, Jul 4, 2009 at 8:16 AM, alloyer wrote: >> >> Grabbing name from dataFormat type works fine. >> But when I use it on loadBalancer type, it throws a null pointer >> exception. >> >> >&

Re: [jira] Commented: (CAMEL-1392) groovy renderer

2009-07-03 Thread alloyer
Grabbing name from dataFormat type works fine. But when I use it on loadBalancer type, it throws a null pointer exception. loadBalanceDefinition.getLoadBalancerType().getClass().getAnnotation(XmlRootElement.class) throws the exception. JIRA j...@apache.org wrote: > > > [ > https://issues

Re: [jira] Commented: (CAMEL-1392) groovy renderer

2009-07-03 Thread alloyer
oho, I didn't find such a bug unexpectedly. It is caused I uses the same camel context for every test, and just get the first route definition every time without clean up the previous route definitions. As a result, we always get the route for the first test case. JIRA j...@apache.org wrote: >

Re: [jira] Created: (CAMEL-1392) groovy renderer

2009-07-01 Thread alloyer
When rendering the some expression, like the MethodCallExpression of ExpressionClause in web console, I have to use the expressionType property of ExpressionClause, so a getExpressionType() method is required. Can I fix this bug or create a bug issue? JIRA j...@apache.org wrote: > > groovy ren

Re: [jira] Assigned: (CAMEL-1392) groovy renderer

2009-07-01 Thread alloyer
When rendering the MethodCallExpression of ExpressionClause in web console, I have to use the expressionType property of ExpressionClause, so a getExpressionType() method is required. Can I fix this bug or create a bug issue? alloyer wrote: > > https://issues.apache.org/activemq/browse

Re: How can I do the -Psourcecheck before creating a patch?

2009-06-29 Thread alloyer
oh...it seems i used it uncorrectly before. the checkstyle pluging works well on every unproper formattings. :-D alloyer wrote: > > Yes, the checkstyle plugin provides most of the proper code style. > But there are some ill-suited code checkstyle plugin can not detect, like > this,

Re: How can I do the -Psourcecheck before creating a patch?

2009-06-29 Thread alloyer
eclipse:eclipse -Psetup.eclipse > * You will find the mvn create a wrokspace directory in the parent > directory of the camel trunk directory. > Open the eclipse and use the wrokspace, then import the projects > from the camel trunk. > > In this way you could see if the code is

Re: [jira] Assigned: (CAMEL-1392) groovy renderer

2009-06-28 Thread alloyer
https://issues.apache.org/activemq/browse/CAMEL-1769 is created now. Claus Ibsen-2 wrote: > > On Mon, Jun 29, 2009 at 7:59 AM, alloyer wrote: >> >> I do not have much knowledge of using JIRA, do you mean I create a >> sub-task >> to assign the ExpressionDefinition

Re: [jira] Assigned: (CAMEL-1392) groovy renderer

2009-06-28 Thread alloyer
n Sun, Jun 28, 2009 at 6:49 AM, alloyer wrote: >> >> Now I got it now through "expressionNode.getExpression().toString()", >> which >> return a string "{delayTime}". Then I can get the subString in it. Are >> there >> some better methods? >&

How can I do the -Psourcecheck before creating a patch?

2009-06-28 Thread alloyer
Hi, can anyone tell me how to add option -Psourcecheck when creating a patch? My previous patch have some style problem and jonstey tell me to do source check to ensure proper formatting when building the patch, but I can not find how to do it. I am using TortoiseSVN on windows XP. -- View this

Re: [jira] Assigned: (CAMEL-1392) groovy renderer

2009-06-27 Thread alloyer
Now I got it now through "expressionNode.getExpression().toString()", which return a string "{delayTime}". Then I can get the subString in it. Are there some better methods? alloyer wrote: > > Thanks, I found lots of test cases there. > When I construct the g

Re: [jira] Assigned: (CAMEL-1392) groovy renderer

2009-06-27 Thread alloyer
ecause the bundle of concepts: Expression, Predicate, ExpressionDefinition..., let me a little confusing. Claus Ibsen-2 wrote: > > On Fri, Jun 26, 2009 at 6:22 PM, alloyer wrote: >> >> Now groovy renderer has been implemented, but only tested by using some >> rotue >>

Re: Does the RouteDefinition instance contain only one route?

2009-06-27 Thread alloyer
When I remove a route through "camelContext.removeRouteDefinition(id)" method, the route still do the message delivery sometimes. Is it caused by the second route you mentioned as EventDrivenConsumerRoute? Claus Ibsen-2 wrote: > > On Fri, Jun 26, 2009 at 10:57 AM, alloyer wr

Re: [jira] Assigned: (CAMEL-1392) groovy renderer

2009-06-26 Thread alloyer
Now groovy renderer has been implemented, but only tested by using some rotue with basic processorDefinitions now. For test all the processorDefinitions, I wonder where can I get some complex route definition test cases? Thanks JIRA j...@apache.org wrote: > > > [ > https://issues.apache.

Does the RouteDefinition instance contain only one route?

2009-06-26 Thread alloyer
I see RouteDefinition uses List and List as inputs and outputs to maintain the message endpoints. It seems a route can handle several message flows, like: from("direct:a").to("mock:results") from("direct:b").to("mock:results") But in my test case, when I set a route configuration whi

Re: camel-spring build error

2009-06-20 Thread alloyer
. > > Something is wrong in the current Camel snapshot repository, the error > may caused by the out of date snapshot artifacts. > > Willem > > alloyer wrote: >> I tried "mvn clean install", but the same exception occured. >> It notice the org.apache.camel

Re: camel-spring build error

2009-06-20 Thread alloyer
t of the camel src ? > > Willem > > alloyer wrote: >> Maven version: 2.0.9 >> Java version: 1.5.0_12 >> OS name: "windows xp" version: "5.1" arch: "x86" Family: "windows" >> >> That's the versions of JDK and Maven. &

Re: camel-spring build error

2009-06-20 Thread alloyer
e with latest trunk code. > > Did you build it from root directory? > > Can you show me which version of JDK and maven are you using? > > Willem > > alloyer wrote: >> When I build camel-spring module, I encountered an error and have no idea >> how >

camel-spring build error

2009-06-19 Thread alloyer
When I build camel-spring module, I encountered an error and have no idea how to fix it. F:\camel\trunk\components\camel-spring\target\schema-src\org\apache\camel\spring\CamelBeanPostProcessor.java:34: 软件包 org.apache.camel.spring.util 不存在 import org.apache.camel.spring.util.ReflectionUtils;

Re: Jersey Usage: how to generate the resourcedoc.xml file for Jersey RS app

2009-06-08 Thread alloyer
hat when running the web console with mvn jetty:run (as shown in the > wiki) this is invoked automatically. > > On Sat, Jun 6, 2009 at 12:12 AM, alloyer wrote: > >> >> When I deploy the camel-web app by running the org.apache.camel.web.Main >> class , it throws an excep

Re: Inconsistency in Camel Java DSL

2009-06-08 Thread alloyer
Hi,Christian I agree with you and I think the builder and model package have a little inconsistency. When I implement the groovy route editor today, I found that: 1. In Xml schema editing mode, a RouteDefinition instance will be constructed to receive the web console content. 2. But in Groov

Jersey Usage: how to generate the resourcedoc.xml file for Jersey RS app

2009-06-05 Thread alloyer
When I deploy the camel-web app by running the org.apache.camel.web.Main class , it throws an exception: java.lang.RuntimeException: Could not load WadlGeneratorConfiguration, check the configuration of com.sun.jersey.config.property.WadlGeneratorConfig ... Caused by: java.lang.RuntimeException:

Re: background on the Web Console codebase (was Re: [jira] Work started: (CAMEL-1655) Groovy Route Editor for WebConsole

2009-06-05 Thread alloyer
nd > modify > > > > > Xueqiang, did you build from the trunk? > > On Fri, Jun 5, 2009 at 5:25 AM, alloyer wrote: > >> >> Thanks to James.That's much helpful for my previous work, and I have read >> most of the Jersey User Guide page.

Re: background on the Web Console codebase (was Re: [jira] Work started: (CAMEL-1655) Groovy Route Editor for WebConsole

2009-06-05 Thread alloyer
ng: James.Strachan wrote: > > Hi Xueqiang! > > 2009/6/3 alloyer : >> >> Hi All, >> I am Xueqiang Mi and alloyer is my ID on mailing list and IRC. I am a >> student of China and major in middleware technologies. >> I have been starting my work for about one w

Re: [jira] Work started: (CAMEL-1655) Groovy Route Editor for WebConsole

2009-06-03 Thread alloyer
Hi All, I am Xueqiang Mi and alloyer is my ID on mailing list and IRC. I am a student of China and major in middleware technologies. I have been starting my work for about one week. Now I am reading the XML rotue editor code and try to learn a overview of the implementation of camel-web component