How to check properly Db connection are opened or closed in java webapplication - java-melody

Is any way tool or any machines to find out whether DatabaseConnections are properly opened or closed in real time java web application.
Is it suggestable to use javamelody related jar file?
Thanks and Regards,
Raju.

Related

Unable to add model from database in asp.net web API project

I am creating a web API in visual studio. I am using MySQL database. I have downloaded each and every package that is needed for MySQL from nuget. When I try to add a model from my database I am unable to add it. Below is the image.
When I press next button. The window is closed down and I am not redirected to the next step. Though the DB is added in the server explorer window, the model is not added.
Any help is highly appreciated

Server DB usage

I've been trying to create 2 proof of concept applications with gwt and vaadin.
I started with gwt:
I was astonished by the idea off me debugging the client side in eclipse :)
The same reason I couldn't open a connection in mysql. in my gwt project (its client side DUH?!)
When I started working with vaadin I saw the following weirdness:
I could open a connection of mysql and inject the results into the containers.
Now that's weird?! how can I do mysql connection in the client? and how come I don't need an rpc for the db info to be transferred to the client?
I'm sure im missing something here. any help?
Vaadin is basically gwt with server-side business logic.
The containers work on server side, the results are then displayed with gut components.

Examples can't connect to electroserver

I have recently downloaded Electro Server 5.4.1 from Electrotank, I have started the SAFEMODE.exe and I can see the console, I then log on to the server using the adobe AIR program, I then go and start the ChatLogger and it can't connect, has anyone got any ideas on why this isn't working?
Canvas
extra tags ElectroServer, ElectroTank
I know this is an old question, and odds are you already got an answer to it on the Electrotank forums. Just in case somebody else has a similar problem: the ChatLogger code example requires the ChatLogger extension to be deployed.
You should also check that you can connect using one of the SimpleChat code examples which do not need any extension. If the Unity client works but AS3 doesn't, then you need to set your Flash global security settings to allow socket connections from that area of your hard drive.

SQL Replication, CE device [closed]

Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 10 years ago.
Improve this question
I have a Windows CE device that I'd like to replicate data to a SQL Server 2008 R2 database. I understand the basics of replication and I need to use MSDN's "Two-Server Topology". Where there is an IIS box and a separate SQL Server box.
I have replication and a publication set up on the SQL database. Also, on the IIS box I created a virtual directory and via UNC have the physical folder on the database box. So the virtual dir path on the IIS box looks something like "\databasebox\c$\Replications". I set up a user on both boxes and am able to test the connection successfully.
I'm able to browse to the virtual directory from the device via a path such as: "https://www.mydomain.com/Replications" and with directory browsing turned on I can see the sqlcesa35.dll.
The issue is adding the subscription. Using the Web Synchronization Wizard, I cannot complete the process. I get to the point where I'm configuring the existing virtual directory. Choose it and get an error "ConnWiz - The local path is not in the correct format". If I use the wizard to create a new virtual dir and get tot he point of adding the remote directory UNC it does not allow it.
I've tried mapped drives, not allowed. This has to be possible, its part of Microsoft's "Two-Server Topology".
How do I create a replication subscription on IIS box-1 where the virtual directory points to a folder on box-2?
The problem you are facing is related to IIS 7&8 support of Web Synchronization wizard. According to this MSDN article "The Configure Web Synchronization Wizard is not supported on IIS 7.0.". What you need is to do manual configuration of IIS for Web Synchronization. You can find the steps to do that here.

load the mysql driver in android emulator

how to load the mysql server in android emulator
i.e
Class.forName("com.mysql.jdbc.Driver")
i got the exception java.land.ClassNotFoundException in com.mysql.jdbc.Drive
please reply me.
This assumes MySQL is publicly available from internet, but it is never good idea .
Setup public WebService and connect to it from mobile application.
You won't be able to run MySQL server on an Android device.
What you're doing, however, is trying to load the MySQL client library. That isn't included as part of Android so you cannot load it. You'd need to include the relevant JARs in your project, if you really do want to connect to a remote MySQL database from an Android app.
If you do want to store and access data on your Android device, the awesome SQLite database is included by default, including all the APIs you need to create, upgrade and otherwise interact with SQLite databases.
When I did this I created PHP files for the database operations. I sent data in XML and received data in XML all using PHP scripts. I found this to be the easiest way for me...but you need to know PHP of course.