Give me some recommendation about JBoss and MySQL using Openshift Tech - mysql

I've created my first application using Openshift Tech. It's a Java Web Application running on a JBoss at Openshift and uses MySQL 5.5 as its database. And I have to deploy by it using the war file (I don't know how to do it the normal way).
So anyone can tell me: Should I create a local database or use online database? And is there another way to deploy my Java app not using the war file?

I would suggest that you check out the OpenShift Developer Center (https://developers.openshift.com), specifically this link (https://developers.openshift.com/en/jbossas-overview.html) about using jboss. Make sure you read all of the sections, specifically the Deployment Options, and the Datasources links. If you are interested in just being able to do a "git push" to deploy your code, you should create a new jboss application on OpenShift, and do a "git clone" of the code and check out how it's setup, it is using the Maven project structure, which is pretty common.

Related

How to deploy a laravel project?

Like the question says How I should deploy a laravel project? that is already on github.
Do I need to install laravel whit the composer on the web server or just copy the whole directory of my proyect that have the folders app,public,vendor and the other files?
It depends on your server. If you hava full access to server (such as vps or even dedicated), it's good to install composer there and do laravel installation use Composer, allow you to easily manage your project later. Otherwise, yes, you have to copy all files including vendor directory to your server.
Note, if you're going to deploying to shared server which you have no full access to, you probably want to create fresh laravel installation (production version of your project) with --prefer-dist and --no-dev locally first. It'll reduce application file size.

The module has not been deployed. Build failed in Netbeans

I am developing a web application for login form using Servlets in netbeans and MYSQL database.
But when I run the project I am getting error 'The module has not been deployed, Build failed.
You probably need to undeploy a currently deployed version which is preventing Netbeans to clean preceding the build.
I usually tend to kill Glassfish altogether though.
These can be reasons why you are not able to Deploy the project.
Sometimes, existing deployed project or not properly deployed project does not allow to
deploy the project again.
Right Click on your project from Projects.
Choose Clean and Build which will undeploy application at context path if any.
Then again Right Click on your Project and Deploy. This should deploy your project.
You should get BUILD SUCCESSFUL (total time: 0 seconds) under Output window in your project name tab.

Bundling MySQL with an application

There are alot of applications like MAMP, WAMP, etc. That come with a version of mysql that needs no installation and can be turned on and off easily. I am trying to create a web based application that will use a mysql database, where do you get mysql to bundle and how is it done so the user doesn't have to install it?
you can get it mysql
http://dev.mysql.com/downloads/
you can used php, ruby (rubyonrails) or java for developed application. in the case php install xampp.
MAMP, WAMP, etc. all have a bunch of configuration that is already set up for them. Essentially they've installed MySQL and everything else included under a single directory that doesn't rely on anything outside that directory and then zipped it up together. I'm not sure exactly what you're trying to do, but that really seems like overkill. May I suggest checking out sqlite? It's designed for bundling and embedding and will be quite a bit easier to deal with.
Are you truly creating a Web Based app or are you wanting to create a desktop application using web scripting languages?
If you are creating a web app, you shouldn't need to bundle MySQL since when you deploy to your hosting environment it should already be in place. If you truly need to package everything you'd be best off offering your software as a virtual machine appliance with the appropriate services already configured and running.
If you are creating a desktop app, that's a whole other issue.

GWT and tomcat development

I been playing around a bit with GWT using the built in jetty server, purely in development mode, and I am now wondering if the framework will be fit for purpose for a project we are starting shortly.
We need to deploy on a tomcat server, and we need to be able to use a mysql connection pool on that tomcat server to populate the domain model of the GWT application. So we wont really be using the Jetty server built into jetty at all. So, here's the questions:
Is there any way of running the development mode up against Tomcat rather than the built in server? If no, what is the alternative? Debugging/run on a external server?
I've tried configuring the run on external server, but amending the arguments, so it doesnt use the built in jetty instance and it deploys to my tomcat webapps directory. But files from the /war folder seems to be missing. Can anybody explain or point me to a resource documenting this?
Have I overlooked something in GWT that will make it pain full to use a JNDI datasource as made available from tomcat?
would it actually be possible to use the tomcat JDNI
GWT places no limitation on what you can do on server, so unless there is a specific bug somewhere you should be able to use Tomcat JNDI.
As for running the GWT development mode against tomcat, yes it is possible. GWT Developer Guide covers this question. GWT eclipse plugin makes it even easier. You can just right-click on your project, select "Run As", and then select "Web Application (running on external server)".

create and restore a mysql db using a setup project (installer) in VS.Net

What is the best practice for creating an installer for a winform application.
The application is supposed to install the following without connecting to internet.
.Net Framework 3.5sp1
MySQL Server
My SQL Connector
Restore Mysql db
Update Config file with the MySQL uname/pwd.
I have all the msi files for installing the above mentioned items. But am wondering about the best practice to create the installer.
Thanks in advance,
Hi I came up with a similar situation. Firstly you should have .NET framework offline installer which can be downloaded from http://www.microsoft.com/downloads/en/details.aspx?FamilyID=992cffcb-f8ce-41d9-8bd6-31f3e216285c. I assume you are using visual studio installer. There are couple of choices but I prefer to copy the offline .NET installer to the setup projects output directory and from requirements on target machine tab I set the install URL property of .NET framework the exact name of offline setup file. As described in the figure.
So the installer does not try to connect to a remote computer to download .NET framework and install it however I think it is more appropriate that it connects to a Microsoft server and installs it. Anyways the next step is to configure the MySQL server. MySQL is really generous for me since they support a fully documented noinstall files. You can find the document here: http://dev.mysql.com/doc/refman/5.5/en/windows-install-archive.html
Using a noinstall zip archive you can copy the dbengine core files to any folder on the clint machine. And change the configuration parameters of MySQL. You can name the MySQL service anything you want. Start the the service and create tables. You can do all of this stuff from custom actions tab of the setup project choosing the appropriate script files or you can write code for it. The beautiful thing is that your customer does not need to know that he/she is installing a database engine on the target machine. I hope this helps. Thanks.