Camunda h2 database persistence - camunda

We are using camunda-bpm-jboss-7.1.0-Final in our java web project. The UI part is created using jsf and the database is mysql.
However, camunda comes with default h2 database, which does not persists data.
Each time we turn the jboss server off, we loose some process -id's.So my question is, is there a way to configure the h2 database, so that it persists data?

camunda currently supports H2, MySQL, PostgreSQL, DB2, Oracle and MSSQL. If you don't want to use the default H2 configuration you can change the data source in your JBoss configuration. Please see the installation guide: http://docs.camunda.org/latest/guides/installation-guide/jboss/#bpm-platform-install-the-platform-on-a-vanilla-jboss-creating-a-datasource

Yes, simply change your JDBC connection string to :
jdbc:h2:file:full-path-to-file
*nix:
jdbc:h2:file:/tmp/my-database-file
Windows:
jdbc:h2:file:C:/data/test
For more information, see: http://www.h2database.com/html/faq.html#database_files

Related

Migrating WSO2 api manager databases

I'm trying to migarte my API from one environment to another environment by copying H2 databases from wso2am-2.1.0/repository/database.
I know there is an utility for import/export but I have a lot of API and this utility is only processing by one API.
After copying databases , my APIs and tags are not shown in the store/publisher dashboard.
But if I check applications-->subscriptions, I can see theses API.
Any explication about this behaviour please?
Basically, WSO2 does not recommend to run production in H2 database. I hope this is a testing/ try out scenario. When you are running in production please use a production-ready databases such as oracle, mysql, mssql, etc.
The issue here is things you have listed as missing comes from the indexing. In your case, if there are lots of APIs, it would take time to index. WSO2 uses solr to index resources. If you copy the solr directory which resides in the WSO2 server folder to the new environment would work. Before replacing the folder please delete the complete folder in the new environment.
If this is not working you can re-index resources by following - https://stackoverflow.com/a/42646742/3176125.
When you are moving from one environment to another you need to copy the content which resides in the /repository/deployment/server/ folder. It contains synapse configs of the APIs, custom sequences, etc.

Connecting ColdFusion 8 to Oracle 11g with JDBC

I created a datasource from my ColdFusion 8 admin using JDBC/Oracle Thin Client. The datasource creation was successful.
When Oracle encryption is configured as "Requested" I can browse my ColdFusion app. and run many functionalities with no problem. But when the Oracle encryption is configured as "Required" the connection fails.
The way I tested and know that it was failed was when I log in to my web app. It won't log me in. But when the Oracle is switched back as "Requested" I can log in successfully and run my tasks.
I have ColdFusion 8 Enterprise version and the operating system is Unix.
From the network dept, I was told they have the correct JAR file in place but not sure what is the correct JAR file.
Currently my web apps are running with datasource created using Oracle Thin Clint but the Oracle encryption needs to be switched back to "Requested" otherwise my users are complaining that they can't log in.
Has anyone ever experienced this situation and found a solution?
What should I do so I can use Oracle encryption set to "Required"?
I believe you are looking for the ojdbc14.jar file in the ColdFusion8/wwwroot/WEB-INF/lib directory (this will work with 11g).
I would give Coldfusion a restart but it might not be unnecessary.
Navigate to your Coldfusion Administrator.
In the ColdFusion Administration under data sources. Add a new data source along with your credentials and choose Other from the Database driver options.
Then enter this: jdbc:oracle:thin:#10.10.10.11:1521:ORCL in the JDBC URL Textarea.
In the Driver Class textfield enter oracle.jdbc.OracleDriver.
If you need a different jar (not sure you will) but if you do you can down load it from here.
http://www.oracle.com/technetwork/indexes/downloads/index.html
Hope this is helpful or at least gets you further along.
Frank, Thank you for the answer but the java version running on my CF server is JAVA1.6 and the ojdbc.jar that's installed in there is ojdbc6.jar
Should the version of ojdbc.jar and java be the same? If I am already in the right track with my ojdbs.jar and java files then I'm back to square one
In addition, my further test using Oracle encryption as "Requested", I can run my apps. just fine except when my CF made a call to a str. procedure, it did not return a result. So I got CF error.
From me googling this issue, I found a blog that says this is a problem on CF standard version when using Oracle Thin Client. My CF is Enterprise edition.
I'm confused...is this related? how can I make this work?

WSO2 Identity Server 3.2.3. Missing Ability to Add External User Stores

What happened to the ability to add an external user store with custom tables in WSO2 Identity Server 3.2.3?
We are evaluating use of this IS and it appears an older version had this capability and the latest version does not.
Am I missing a configuration setting or has this capability been completely removed? Or is this a build configuration option?
Not having this feature is a show-stopper.
it's done through the config files - there is (seemingly) no ui component. I was able to connect to an external sql server user store via jdbc by manipulating the user-mgt.xml and master-datasource.xml files. Although next step would be to define a logical schema definition to map the id fields. e.g. running the mssql.sql script in /dbscripts on my sql server db will create the needed structure.

How make [Web Forms for Marketers] module works when using Sitecore Azure?

Recently, i am working on a project using Sitecore Azure.
when creating a web form, we use Web Forms for Marketers module provided by Sitecore.
It works fine in local environment. but when we publish it to Azure. it dose not work.
Because there is no database for web form in Azure.
Has anyone experienced this before, maybe you guys can help me. Thanks
Finally, i get it down.
first, you need to create a same database for WFFM as the local one Sitecore_WebForms in SQL Azure.
Here is a link tells you how to do it.
second, change the connection string in forms.config to point to the database in sql azure.
here is a example.
<formsDataProvider type="Sitecore.Forms.Data.DataProviders.WFMDataProvider,Sitecore.Forms.Core">
<param desc="connection string">Database=Sitecore_WebForms;Data Source=tcp:YOURSERVERNAME.database.windows.net,1433;user id=YOURID;password=YOURPASSWORD;Connect Timeout=60</param>
</formsDataProvider>
This is how i fix it. Hope it helps if anyone has the same problem.
Only Web Forms for Marketers (WFFM) 2.4 or higher is compatible with Sitecore Azure module. Additionally, you must use SQL Server version of WFFM database, which must be shared between all WebRole Instances. Please check the details here: https://kb.sitecore.net/articles/880886
How to add WFFM database in Sitecore Azure and automatically deploy it with entire Sitecore solution read in the following article: https://kb.sitecore.net/articles/179306
Best Wishes, Oleg

Symfony 1.4 and Webservice

I am having a IPAD Native application and a symfony 1.4 application. I am having a local sql-lite DB with the same schema as that of symfony app. Now when I click on sync in the Ipad the data has to be stored in the mysql db of the web server. Similarly if there is new data in the webserver that has to be again added in the local sql Lite. The data transfer has been done by PLIST files. I am now using a normal PLIST parser for parsing the plist and storing it in DB. Also I am using Content-Disposition mechanism for sending data.
Note: There are data from both the sides since both device and web server can add data.
Can any one help me out with this since, if we are adding data in both the sides, we may get same id(primary key). How to solve this issue. Is there any plugin to do this in symfony?.
Thanks in Advance.