[英]Tibco Service JDBC SQL deployment issue
I have created a Service running on Tibco, containing a JDBC-enabled process within it, and tested it successfully. 我创建了一个在Tibco上运行的服务,其中包含一个启用了JDBC的进程,并成功对其进行了测试。 The database server is MySQL, and is hosted remotely.
数据库服务器是MySQL,并且是远程托管的。 When connecting to the remote DB from the service hosted on my machine, the SQL is executed well, but after building the Tibco EAR file and deploying to another external machine, then trying to access the same remote DB server using the same credentials, the external machine returns the below error upon returning:
从我的计算机上托管的服务连接到远程数据库时,SQL可以很好地执行,但是在构建Tibco EAR文件并部署到另一台外部计算机之后,然后尝试使用相同的凭据访问同一台远程数据库服务器,机器返回时返回以下错误:
You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'OPTION SQL_SELECT_LIMIT=DEFAULT' at line 1
So, a few questions: 因此,有几个问题:
Am asking from a learner PoV as am currently picking up Tibco 我正在从学习者PoV那里询问,目前正在接Tibco
It looks like jdbc driver issue. 看起来是jdbc驱动程序问题。 You may have different mysql driver version in tibco designer and BusinessWorks.
在tibco Designer和BusinessWorks中,您可能具有不同的mysql驱动程序版本。
You don't need to add jdbc driver to your ear package. 您无需将jdbc驱动程序添加到您的耳包中。 Please note that you can specify mysql driver in your package classpath.
请注意,您可以在包类路径中指定mysql驱动程序。 In tibco Administrator PackageName->Configuration->ServerSettings->Prepend to ClassPath or Append to Class path.
在tibco管理员中,PackageName-> Configuration-> ServerSettings-> Prepend到ClassPath或追加到Class路径。
You can also try to copy the driver from your tibco designer(in BW5 it's in \\tibco\\bw\\5.11\\lib\\ ) to the BusinessWorks classpath 您也可以尝试将驱动程序从tibco设计器(在BW5中位于\\ tibco \\ bw \\ 5.11 \\ lib \\中)复制到BusinessWorks类路径中。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.