Java application on windows server possibility? - java

I'd like to know if it is possible to have this application (neo4j) running on windows server 2008 alongside an asp.net mvc application. Reason for this, I need to access the graph database (neo4j) which provides a RESTful service from my mvc application. How would I go about setting up this architecture?

According to the website you linked to the application is self-contained (no Tomcat etc required). So just installing the Windows package and following the instructions here (for starting the service) should suffice.

Related

Web application using JSP web application or applet?

If i want to make a web application in java i mean JSP should I create an Applet and put it into a browser or create "Java web project"?
In other words the big companies system like Oracal and others have there own system by creating java web application or using applet and putting it into browsers.
Thanks
I would create a "Java web project".
Using an applet is considered a bad practice due to all of the security issues, the need for the user to install the correct version of java, and enable it in the browser.
Go with a solid java web framework like spring / spring-mvc. See this guide on how to start: https://spring.io/guides/gs/serving-web-content/
Java Applet runs on client side (in the brouser, like javascript), but JSP is part of Java Servlet API and runs on server side (you need to install servlet container like Tomcat to run them). It's not equivalent technologies with different abilities and application area.
Applets are old fashioned now, Applets were used to create interactive web applications in the early days of http development when developing a interactive website was not possible using any browser based technologies like html, css and java script.
But now the things have changed with the evolution of web-2.0. Now you can develop the interactive web application by using only browser based technologies and you don't have to install any third party tools or plugins like in the case of applet, JRE should be installed on client machine.

Integrating Apache Tomcat web server with Microsoft Visual Studio .net framework

I am currently part of a team working on developing a Telemetry monitoring application. Since I am an Oracle Associate, I have been tasked with setting up an Oracle database at the back end and integrating it with an Apache-Tomcat Webserver that will display a log of all entries/transactions being conducted in the Oracle Database. The software application will be used to retrieve and display all data (logs/entries etc) from the Data Engine (the Apache Tomcat webservice)
The problem is that our programming team intends to develop the software application in C# on Microsoft Visual studio which is confusing to me because while going through on-line documentation regarding integration of Apache-Tomcat web server with oracle database, I have come to understand that the Apache-Tomcat web service only works with Java applications and Java supported IDEs like eclipse (the documentation mostly details integration with reference to Java Servlets and JSPs)
Does that mean that I should:
A) request the programming team to change from Microsoft .net framework and Visual Studio to Java and Eclipse IDE so that there are no compatibility issues with Apache-Tomcat webserver
B) work with an alternate web server which is compatible with Microsoft Visual Studio, C# and the .net environment
C) Is there some kind of work around that will allow application development to proceed in C# and .net framework while still allowing us to use Apache Tomcat web servers?
Apache Tomcat is a Java application server for deploying Java Servlet-based web applications. I'm sure there is a way to get .NET applications to run from it, but since you are starting from scratch, I would avoid doing that. Either switch application servers or switch implementation technologies.
Or, perhaps I am misunderstanding your architecture. Are you intending to build a Java-based service that runs on Apache Tomcat, and a separate standalone application that contacts this service to fetch its information? If so, there's no problem, as long as the protocol for communicating between the two applications is well-defined (e.g. REST, XML-over-HTTP, SOAP, etc.).
It would be perfectly reasonable to write a Java-based service and then connect to it from any number of applications written using any combinations of technologies.
But don't try to deploy a .NET-based web application on Tomcat. You'll just be wasting a huge amount of time for no good reason.

What software runs on a Azure PaaS server on a rack to make Java web apps work?

I guess it runs on some form of Windows Server 2012 but I wanted to know exactly what VMs & Azure Websites run on and what it takes to make Java web apps run on it.
Azure Websites (now called Azure Apps Service) includes Java 1.7.0_51 (32-bit) with a choice of containers, Tomcat 7.0.50 or Jetty 9.1.0. Web Apps also has a Web App Gallery where you can select Tomcat 7.0.52 or Jetty 9.1.2 if you want to customize the containers.
Java 8 isn't supported yet but the Apps team is working on it. Here are some great articles on Java support in Apps that are very helpful if you are new to running Java on the service.
Create a Java web app in Azure App Service
Upload a custom Java website to Azure
This TechEd session has some great info on Java on Microsoft Azure. Java web applications can be run using a PaaS Worker role or on Azure Websites both of which have some form of Windows Server OS. This fact is supported by these screenshots which show a Windows file path within the metadata shown on a page hosted on Azure Websites and the Windows Server 2008 & 2012 TargetOS options shown within Eclipse configuration options.
You may find this Azure Friday video & this MVA tutorial series helpful to learn more about Java on Azure PaaS
You may find in Azure portal that Java web app support switches off PHP, ASP.Net and Python one. It looks like they run Java web apps on dedicated server array (not Windows Server 2012). Actually I heard something like this on Azure DevCamp.

Java Application running as web service communicating with Java EE app on Glassfish

I have a stand alone Java application that needs to get information (string data) from a Java EE application, running on a Glassfish 3.1 Application server. I have created a web service for my Java app, but I'm wondering how I could achieve communication with the Java EE glass fish app (using servlet?).
I hope to have a method on my app that can be called from, for example, a client running on glassfish (and vice-versa). This method would have something like a String array as parameter, so that I would be able to pass the data between the apps.
Note: I am unable to deploy my app on Glassfish, since we are trying to achieve separation till we are sure the application I am developing will not cause Glassfish to crash ( we currently have other critical apps running on Glassfish). Also note that this is all taking place on the same machine.
You should develop a web service and deploy it on Glassfish within your existing application. You can do this via a Servlet based web service, or a Session Bean web service, whichever is more appropriate for you.
You will then create a web service client against that web service for your Java app, and integrate it appropriately with calls to the servers via the web service.
Of course, this should all be done against development servers, not your production servers. Glassfish can be deployed pretty much anywhere: your machine, another machine, a VM, in "the cloud". Not having a development server available for, well, development is unacceptable. There is no way you can determine if your app will "crash Glassfish" unless you can test it.
To quote the esteemed Donald Knuth: "I have only proved it correct, not tried it."
Get a test server, develop against it. Move forward.
Have you looked at the URL class.
try this url Java URL example
This may help

Clarification on How to access the Java+ Xml application in PHP based web portal

I Require a clarification on one Technical Implementation to check its feasible or not.
I have one VPS server which has a Java Environment and I have one more dedicated server which doesnot have a Java Environment where i have built my PHP based web application,
In the VPS environment I am planning to implement the XML based application using the Observer pattern with java and DOM Parsers and make that application available at say for example
123.124.125.65/XML_Works/Sample,xml file
Now My doubt is that: 1)is it possbile to access this application in dedicated Server where the java environment is not there.
2)if yes, then is it possible to access that java + XML application in IFrame in PHP based web portal.
1) No JVM = no java running on that machine
2) The most common solution I saw (and am using) is to externalize the java functionality you want as a web service or servlet and package it as a .war
Then use some web container such as tomcat to load that war and use a connector to connect calls to tomcat to your PHP server.
So the configuration I use is, Java as war, Tomcat as web container, Apache as PHP server and mod_jk connector for communication between servers.
Note that the mod_jk connector also supports other web servers.

Categories