从jboss保险丝ESB中的属性读取表名称

时间:2018-07-31 15:39:02

标签: mysql jboss

当表名称为  从property加载到运行时,我尝试使用blew语句 但没有运气,任何人都可以帮助我。

sql:insert into :#${property.destinationLocation} values 
(:#${property.requestId} , :#${property.originalMessage} ,NOW())

RouteId              ProcessorId          Processor                                                                        Elapsed (ms)
[cbr-route         ] [cbr-route         ] [activemq://queue:BTECK_EVENT_LOG_IN                                           ] [      1888]
[cbr-route         ] [rootElementPropert] [setProperty[rootElement]                                                      ] [        52]
[cbr-route         ] [originalMessagePro] [setProperty[originalMessage]                                                  ] [         0]
[cbr-route         ] [requestIdProperty ] [setProperty[requestId]                                                        ] [        16]
[cbr-route         ] [_from1            ] [sql:select * from esb_service_inf where SERVICE_OPERATION = :#${property.rootE] [      1223]
[cbr-route         ] [_log1             ] [log                                                                           ] [         1]
[cbr-route         ] [_choice1          ] [when[bean{}]choice[]                                                          ] [       147]
[cbr-route         ] [_log4             ] [log                                                                           ] [         0]
[cbr-route         ] [destinationLocatio] [setProperty[destinationLocation]                                              ] [       145]
[cbr-route         ] [_to3              ] [sql:insert into :#${property.destinationLocation} values (:#${property.request] [       429]

Stacktrace

  

org.springframework.jdbc.BadSqlGrammarException:   PreparedStatementCallback;错误的SQL语法[];嵌套异常为   com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException:您有一个   您的SQL语法错误;检查与您的手册相对应的手册   MySQL服务器版本,可在“ newtable”附近使用正确的语法   值('123456789','\ r \ n \ r \ n \ r \ n \ r \ n \ r \ n \ r \ n

0 个答案:

没有答案