简体   繁体   English

Tibco服务JDBC SQL部署问题

[英]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: 因此,有几个问题:

  1. What could be the cause of the above error, given the DB being accessed is the exact same one, using same SQL query, but from different machines? 考虑到正在访问的数据库是完全相同的数据库,并且使用相同的SQL查询,但来自不同的计算机,因此可能导致上述错误的原因是什么?
  2. Is the JDBC driver used for development compiled as part of the packaged EAR file? 用于开发的JDBC驱动程序是否已作为打包的EAR文件的一部分进行编译?
  3. Does the JDBC driver being used in a Tibco Process depend on the Tibco service installed or on the packaged EAR file? Tibco进程中使用的JDBC驱动程序是否取决于安装的Tibco服务或打包的EAR文件?

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.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM