MobileFirst SQL Adapters requestTimeoutInSeconds - ibm-mobilefirst

I have WL6.0 project that contains SQL adapter. The adapter has procedure with requestTimeoutInSeconds="240" and I am trying to migrate that project to WL7.1.
As per Adapter timeout and concurrency article on IBM Knowledge Center, I have to use JNDI config instead.
The requestTimeoutInSeconds attribute of and
elements is ignored. Use JNDI configuration instead.
Can any one provide an example how to implement that?
I am working on MobileFirst Studio 7.1 and I imported the project with no errors.

Note that you are developing in MobileFirst Studio, which utilizes the Liberty application server as its underlying server.
Locally such changes are not required, since you're working locally...
This will become important once you start on moving to testing and production environments.
This means that you will need to update the server.xml of your WebSpher full profile/Liberty profile - not the server.xml of the server in MobileFist Studio.
You you can find documentation for this in the Liberty docs, here: http://www.ibm.com/support/knowledgecenter/was_beta_liberty/com.ibm.websphere.wlp.nd.multiplatform.doc/ae/twlp_dep_configuring_ds.html
Note that the setup you need to do differs based on your database type: MySQL, Oracle, DB2, ... You can find examples for each database type in the link above.

Related

IBM Mobilefirst 8 with Websphere application server using oob derby database

Installed IBM Mobilefirst 8 server with WAS 8.5.5.12 using Apache derby database.
Facing below error while checking connection of datasource which are created for mobilefirst server :
java.lang.Exception: DSRA8101E: DataSource class cannot be used as one-phase: ClassCastException: org.apache.derby.jdbc.AutoloadedDriver40 incompatible with org.apache.derby.jdbc.InternalDriver
Working fine with mysql database.
While this message would normally indicate that a data source implementation class was specified that does not implement javax.sql.ConnectionPoolDataSource, I don't believe that is the case here based on the classes identified in the exception message. Another possible cause is that multiple copies of the Derby JDBC driver are on the classpath at the same time. It should be noted that WebSphere Application Server traditional ships a copy of the Derby JDBC driver. If you do have two copies, is it possible to switch to only using the one that is shipped with the application server? If that is not possible, you might be able to work around this by selecting the option to isolate your JDBC provider.
For use with MFP 8.0 standalone server with Websphere Application Server 8.5.5.5, use DB2,MySQL or Oracle

Can we use server configuration tool for MFP Foundation on IBM Container(Bluemix)?

Server Configuration Tool needs Database Settings(host,port,username,password,dbname) and AppServer Settings(installation directory,username,password) information. The tool also need to access database directly.
The MFPF docs doesn't provide such kind of information. Is there anyway to user server configuration tool for MFPF on ibm container?
It is not possible to use the Server configuration tool for IBM Containers deployment. The only current way is to use the scripts as provided and instructed, here: https://developer.ibm.com/mobilefirstplatform/documentation/getting-started-7-1/bluemix/run-foundation-on-bluemix/

IBM Mobilefirst server configuration tool without GUI

I'm trying to install IBM Mobilefirst 7.0 server on production Ubuntu server in Amazon. The server has no GUI. I installed Websphere Application Server and IBM Mobilefirst server using silent installation of IBM Installation Manager and response file created on server with GUI. But now I'm stuck at a point where I have to configure MobileFirst server using server configuration tool. But I'm not able to find out how to do this without GUI since server configuration tool is GUI based. Any pointers or help would be highly appreciated!
You can use ant tasks to proceed with the configuration without the GUI.
Detailed steps for this can be found in the link below.
http://www-01.ibm.com/support/knowledgecenter/SSHS8R_7.0.0/com.ibm.worklight.deploy.doc/devref/t_transporting_apps_and_adapters.html
What I was asking for is way to implement MobileFirst Server administration without using GUI as given in step number 6 in this link: http://www-01.ibm.com/support/knowledgecenter/#!/SSHSCD_6.3.0/com.ibm.worklight.installconfig.doc/install_config/t_ov_server_install.html. Since the server I was working on does not have a GUI, I was stuck at step 6. But I found the way out now and for someone who is looking for this, the way to do is using ant scripts. Steps are listed at this link : http://www-01.ibm.com/support/knowledgecenter/#!/SSHS8R_7.0.0/com.ibm.worklight.installconfig.doc/devref/t_ant_tasks_configure_dbs_wlconsole.html

IBM Worklight 6.0 - Adapter disappears after it is deployed

I am trying to deploy multiple adapters to a Worklight Server in a production environment. When refreshing the console, the deployed adapters are missing.
What is the problem?
Can you please take a look at your Worklight Server log to see if any errors are displayed. I have seen in the past similar behavior when adapter procedures relied on security-tests, but the security tests were not defined properly in the authenticationConfig.xml file on the server side. In the server log I saw the following error:
"Failed to deploy adapter. This may be due to a JavaScript error in your adapter implementation"
If this is the case please update your authenticationConfig.xml on your production server to match the properties you have defined in your development environment. Also do these adapters deploy successfully in your development environment when running locally?
Make sure that the Studio the adapter was created in and the Server the adapter is deployed to are of the exact same build number
This is reason #1 for adapters to get deployed and then immediately get removed.

Exception starting Worklight server on Tomcat

I move the application from dev to producation,change the application-description.xml and worklight.properties files and generate a .war file,and then i add it to the tomcat,but when I start tomcat,it occur the follow error:
java.lang.ClassNotFoundException: Class org.hsqldb.jdbcDriver not found in Worklight platform or project
but even I add the hsql.jar to my application,it still the error,any help?
my worklight version is 5.0.5 and apache-tomcat-7.0.37 and mysql is 5.1.57
HSQL is the default database used when running the Worklight project in Eclipse.
When you move to Tomcat, you also need to edit in worklight.properties the database-related properties.
Since you mentioned MySQL, you need to uncomment the MySQL section in worklight.properties and edit it according to your setup.
Of course, also undeploy and re-deploy the updated .war file.
Additions:
HSQL is a filesystem-driven database, and is provided by Worklight to work out-of-the-box, when running in Eclipse.
When moving to Tomcat and installing Worklight in it, you must edit worklight.properties and set it up so that it will know how to talk with the datbase.
In your case, when using MySQL you must also include in Tomcat's \lib folder the MySQL connector/J file. You can get it from here: http://www.mysql.com/downloads/mirror.php?id=412178 (click on "No thanks, just start my download" at the bottom).
Note that in order to run Worklight on an Application Server (such as Tomcat, WebSphere or Liberty), you must use either the Consumer or Enterprise Edition of Worklight. This is required as otherwise you will not have the Worklight JEE .jar file as well as the SQL scripts to create the database tables. All of this is done via the IBM Installation Manager.
You cannot use Worklight on an Application Server using the Developer Edition.