I'm trying to use MongoDB connector https://store.wso2.com/store/assets/esbconnector/details/3ce6cbda-c62b-41e0-9706-f75da51e50ee and found some missing options, is it possible to customize it? where is the source code of the connector?
Yes, you can, you can fork the code and do the changes you require, and use it. The source code is located here. You can also consider contributing it back to WSO2.
If you want to build your own connector from scratch you can take a look at this.
Related
I would like to write a JUnit Test using any kind of embedded Elasticsearch engine in order to test my services which should create indexes with mappings on start-up. What is the best way to do it?
Probably, it would be also enough to use ESTestCase. Unfortunately, I cannot find simple usage examples. Could anyone provide one?
There is no embedded Elasticsearch since 5.x any more. I would use Testcontainers for this: https://github.com/dadoonet/testcontainers-java-module-elasticsearch
PS: This code will soon move to the Testcontainers repo.
I see in documentation that Flyway works with Java and jdbc. However, our project uses SQLServer with ODBC and C++. Thus, is it possible to use Flyway in such a case?
Thank you.
Yes. You should be able to use it no problem with the command-line tool: http://flywaydb.org/documentation/commandline/
I have made emm works, and start with mysql.
I am trying to add more features, like cache.
If I want to add cache capability, like put data into memcached, how do I add a new function?
I have found source code of ScriptableObject, like Log, Database, File. I can change those files and recompile them, but I cannot put into emm to make it run.
Because I only can find source code of org.jaggeryjs.hostobjects.db_0.9.0.ALPHA4_wso2v1.jar. and emm needs rg.jaggeryjs.hostobjects.db_0.9.0.ALPHA4_wso2v3.jar.
I have tried to search svn from wso2. But still cannot find 0.9.0.ALPHA4.wso2v3 source code. Anybody has any idea where is it?
I need to connect to a database with c++, I have tried to use mySql++, mySql connector, and a few others however I am unable to get them running, I've tried the tutorials but I can't seem to get them right. VS doesn't see the files that I try to include.
Anyways, Is there a somewhat easy way to connect to a database using c++ without needing to download a ton of files or api's. and if so could you please provide a link to a tutorial, ive tried using ODBC, however I don't think ive been doing it right as it shows a ton of errors in my code.
any help would be appreciated,
Thanks
How about OTL. It is just a header file so far away from tons of files. And all you need is the libraries depending on the DB you want to connect to.
ODBC is a little bare metal - surely there are some more accessable ADO classes (you might need MDAC)?
First, you have to know what kind of database you have to connect to. It does matter, as you won't use the same API to connect to a MySQL database, or to a SQLite one, or Oracle, or Postgres, or SQL Server ...
Then, have a look at the library that allows acces to the database. And make sure that the database is actually present!
C++ Standard doesn't has native database support. You cannot connect to a database using C++ without database/platform specific libraries. Such as this or this one, if you want to connect to MySQL server.
I am struggling to connect to oracle db using GNU C++.Is there any library which I have to install to connect to oracle db using simple c++ (oops).
Please provide me some sample code as well, this is new for me. Appreciate your help.
I asked a similar question before but forgot to mention that I am not using vc++ and proc.
You would need the oracle C++ libraries (OCCI) from oracle. You can find them here:
http://www.oracle.com/technetwork/database/features/instant-client/index-097480.html
Google "Oracle OCCI tutorial" and you should find pretty much everything you need.
Check out SOCI. It supports several database backends, including Oracle, MySQL, Postgre, ODBC, etc. Using this library would make it easier for you to migrate your application to a different DB, if necessary.
There's a code sample here. And several more peppered in the documentation.