Java Application Integrating Windows Small Business Server - java

I'm currently writing a client program in Java for my company that will access a mySQL database with customer information.
The company already has a Windows Small Business Server 2011 server with various images and reports related to the customers.
My intention is to store the path of these images into the mySQL database to be recalled from my Java application.
I guess my first question is: Is this possible?
How do I begin connecting a Java application to SBS in order to access an image file located on the server? Researching online has lead me to believe I can connect Java to SharePoint using a Java -.NET bridge. Am I heading in the right direction?
Is there any issue with installing the mySQL database on the same machine as a SBS?
This is my first time posting on StackOverflow; I apologize if my question format is not focused enough.
This is also my first time working with mySQL and servers. I've been able to figure out mySQL in Java; but I'd really appreciate a finger pointing in the correct direction with the server.

1 Yes.
2 Sounds like a decent approach. You might also consider a Java-COM bridge like jacob.
3 Possible issues may include
Licensing
Performance impacts
Memory impacts
Backup impacts
Lack of redundancy
Support
Implementation complexity
Storage requirements

Related

Open cart integration with Other systems

I want to know whether we can integrate Opencart with other application built in Java / Mongo-DB.
To be precise, A back end system is developed using Java/ Mysql and Mongo DB. All products will be managed from this application(backend) and orders which are placed have to be pushed to this application from opencart(Frontend).
Can you guys help me to know possibility of how a communication between 2 systems, Opencart(Frontend) and Java application(Backend) can be achieved.
With some development experience and a plan of action this can be achieved. The steps are as follows:
Define what system you would like to connect to. For me this was a MSSQL Database.
Come up with a plan of how to connect the two items and what needs to be exchanged.
Once this plan has been setup, you can develop the integration to Opencart, this can be done by simply adding CSV files to exchange data ora direct connection between the databases. Remember to ensure you link the correct fields of your other system to the correct fields of Opencart.
If done by CSV there must be a way to upload the updated results to your other system.
For a java system I came across this system a while ago, not sure if it will help
Good luck with the integration, I have done an integration between a visual studio program in .net and opencart. So far so good

Programmatically Editing a TFS Work Item Field from an OS X Application

Doing some research for a student project we're working on (only looking for advice here!) and I was hoping I might field some questions about interacting with TFS from an OS X machine. Our end goal is to develop a simple application that is able to update/display the amount of time spent//allocated on that work item. The available .NET libraries would make quick work of this problem if we were developing for Windows but we're encountering problems developing this for OS X.
From searching Google and SO I've found several claims that working with TFS on OS X is impossible beyond very basic version control operations and I was hoping to get confirmation that as of March 2015 that is still the case. Many of the questions I've seen are from '10-'13 and I haven't been able to find any information that suggests progress since. My question is: Is it even possible to programmatically connect to a TFS server from an OS X machine, retrieve field data for a work item, and update field data for a work item?. It is my opinion that my team is beginning to spend time pursuing a C# solution that will ultimately not ever work.
Here is what we have tried so far and why it didn't work:
Develop application using Xamarin Mac//Mono .NET - The TFS API
available on NuGet makes Win32 specific calls (advapi32.dll) and thus
far we have had no luck using downloaded .dll's. When we use the TFS API on NuGet we get lots of warnings about missing DLLs.
Interact with TFS using web services - In so far as I can tell the only way to interact with TFS is using SOAP and the exposed services don't appear to accomplish what we'd need. List of TFS services
Here is what we are going to try and why we think it might work:
Utilize the Java SDK - The provided java libraries may play more nicely
cross-platform than the C# libraries.
Force our team to switch to Visual Studio Online - Supports a REST
api, can interface with TFS. Costs money after 5 users.
Is there a solution that will allow us to create a stand alone application that is able to connect to TFS, query the server for work item fields, and allow updates to work item fields that runs on OS X? Any feedback would be appreciated! Thanks for taking the time to read this question.
There is a full java API as part of the team explorer everywhere. You can use that on any platform that runs java.
http://www.microsoft.com/en-us/download/details.aspx?id=40785

Installation for a college DBMS Project

I have created a simple database application as a part of my college assignment. I have used Java (Eclipse IDE) and MySQL (command-line and phpMyAdmin) for the purpose of creating and using the database on a stand-alone application. The thing is that my database is stored on the localhost.
An easy way to make my application usable on another person's computer would be to convert it into an Executable JAR (since, I am using Java). However is there any way by means of which I can also install the database directly to the other person's computer (on the localhost)?
Something like an installer or so?
I read online that a simple thing would be to manually install MySQL and create the database. But I don't know PHP and typing the MySQL commands / using phpMyAdmin would be the only choice. But is there any better way to go about doing it?
Thanks for any help.
EDIT1:
I don't know if this helps but I have no previous knowledge regarding creating installers for projects. All I have done until now has been exported either as an executable JAR or as source code. I am still studying.
EDIT 2: Creating an installation for a java project <- is a similar question but it does not help my cause. It recommends not using MySQL. Our college has compulsorily asked us to use MySQL and nothing else. That is what they taught us and expect us to work only with it. Please help.
You don't need PHP here, so don't worry about not knowing it. PHP is just another programming language (a web-based interpreted one), and isn't going to help you install MySQL.
You should probably ask your instructor for assistance, because anything we come up with would be a guess about how they intend for your to operate, whereas they know and have done this before many times. That being said, we can make reasonable guesses toward helping you.
You could probably have one master MySQL installation that all your installed Java applications access. This is probably what you want, rather than installing the MySQL application on each individual computer. Your Java application then connects to your college's MySQL server rather than localhost. This requires configuring the MySQL server for remote access, but if that's what they want you to do they probably have already done so.
The other option is to have an installer that actually installs MySQL and runs a series of scripts to import the expected database structure. I can't imagine this is actually the intention, but there are many different installers that can help with this, and it depends how what platform you're developing for as to which automated installation tool might work best for you. You can, to a large degree, script the installation of the official source, so you may simply be able to tweak that once you find the customization options you need, then wrap that in a simple shell script which first installs MySQL then imports your database structure. I can't imagine this is what your school intends, but that's how you would do it if it were. That or Chef, Puppet, or your distribution's built-in package manager. Too many options to cover them all thoroughly here.

Java MySQL web host recommendation

Not a programming question, but a question which is uniquely important to programmers.
Can anyone recommend a good Java Servlets/Mysql/Tomcat hosting provider.
Cost and ease of setup is the main consideration as this is just a demo.
give amazon ec2 a try. its perfect and very cost effective for your requirement.
I would suggest Onlinecares (https://wwww.onlinecares.com) a try, they have 14 days trial period. The negative side is remote postgresql connections are not allowed in their servers, you need to use phppgadmin to access postgresql databases. Mysql databases could be connected remotely. For newbies, their system is a bit complex as they don't include tomcat support in Cpanel control panel. You need to deploy the java war applications either using SSH or using Tomcat manager. The positive side is their server performance and support.

How to take a Java Web-application offline?

We develop Java Web-aps (Websphere, DB2) which display graphical and databased information. We would also like to offer the same application offline (distribution via CD/DVD) with online data-update. We have tried a number of alternatives in the past, but nothing has been really stable. What are the new best practices to take a Web ap plus data (in a small database) offline?
I don't know how well it works with the CD/DVD distribution front, but the first thing that comes to mind is Gears. On the .NET side of the fence there's Silverlight 2. Then there's the Mozilla Prism project, although I don't know how far advanced that is.
These are all designed for not just offline access, but mixed offline/online, talking to a server when it's available and working locally when necessary.
I'd suggest using Apache Derby as the database (also available as Sun's Java DB, and possibly still IBM Cloudscape (does that still have DB2 compatibility in place?)).
I'm sure there's plenty of Web servers/Servlet containers about. Apache Tomcat is the obvious one. An alternative approach would be to use an embedded native browser within a single Java process. That approach should be relatively hassle free for users and tech support, and you can just use WebStart to install and update.
If you're using EJBs and other nonsense, then there are similar freebies about. I understand Sun Glassfish is nice and fast starting.
You could create an image of your server as a VMware instance and distribute it with a copy of VMware player (licensing allowing of course). Personally I'd build it on top of a Linux distribution like CentOS5.
You can bundle a JRE along with JETTY server and use a different database e.g HSQLDB (that you can bundle inside the webapp itself).
If you are using an ORM tool to connect to database, you might not have to make many code changes for this.
A lot of Application server distribute their admin consoles like this.For e.g Weblogic admin console runs offline (it uses internal ldap server for its database)
Also as far as Google gears is concerned, they are also pretty much doing the same thing.
They have a server that is bundled along with SQLDB and they allow to synchronize the data between online offline app.
You can sync the data too (use webservices in the online app) and talk over https from the offline app to sync the data, if you need the sync feature.
Also you can check this link
http://developers.sun.com/learning/javaoneonline/2007/pdf/TS-69700.pdf

Categories