Connecting application built in Tomcat server with application built in Windows server - java

I have an application built in Tomcat server(Java) and another application built in Windows server(Dot net). I want to connect tomcat with windows as i want to run both the module in one application with one database. Please help me with
Process to connect
2.If there are no ways to connect, then help me with the process to convert windows server to tomcat.
Thanks

In your case, the most straightforward solution would be to expose a rest API on the .net component and call this API from the tomcat component.

Related

How to separately configure application server and web server using tomcat?

I want my application to run on server configured on a different machine how can I do it please help??
my application connects with the database so for security reasons I want to separate both application and server machine
I am using tomcat for server
and I have built a maven java project
right now y projects run on tomcat installed in the same machine but I want to separate my app and server

How Does One Deploy a Jersey Application to a Remote Tomcat Server

I need to state up front that I am not a Java developer. So it is fair to assume that I know very little about the tooling etc. that Java dev's will be naturally familiar with.
So, I have created a Jersey web api (2.25.1) on my home server running Windows 2012. It serves data to a Xamarin application. I need to deploy this to a Linux server (Ubuntu) on AWS which my friend spun up.
At the moment, the only access I have is via SSH (Putty).
Tomcat (and Glassfish) have been installed on the Linux machine.
How do I go about deploying that application to that AWS server?
The official Jersey documentation seems to be MIA, and my Googling efforts don't yield much. There's a lot of SO questions with a similar title to this one. But I have not found any of the answers (and in many cases, questions) helpful to my cause.
Cheers
I assume that you are using maven to create your jersey web app .
Upon build you will get a *.war file .Copy the same to tomcat/webapps folder .
Start your tomcat then.
To take your file there on remote use winscp tool with your ssh credentials.

how to deploy struts2 eclipse web application on remote server

I want to check deploying procedure of my struts2 web application developed using eclipse juno on local tomcat server. I want to deploy it to a remote host like 000webhost. Can you provide me any information how to do that?
well, I run my application by typing
http://localhost:8080/Struts2starter/
on browser I want to run it by typing
http://myapp.com/Struts2starter
like something on browser. I wanted to know how to do it.
I don't believe you can deploy a Java application in 000webhost. For example, you can deploy on Google App Engine. Here is an example of how to do that: http://www.mkyong.com/google-app-engine/google-app-engine-struts-2-example/
It depends on server in question. Most servers provide some kind of remote deployment using manager applications / rmi connectors / whaever else exitic means , and eclipse can work with most of them. But of course it needs to be configured on both sides in order to work. Be more specific about your server config, and you will surely get proper answer

Embed openfire in a spring java application

Is it possible to embed open fire or any xmpp server in a spring java application?
Are you trying to say that you want to embed openfire in your web application, that application can also contain Spring or any other framework.
You can embed Openfire in any web application, just set System property for openfireHome eg:
-DopenfireHome="C:\ChatServer\openfire".
Also you have to start the openfire from the application it self. i.e. openfire server should be working in standalone mode.
To start openfire server create 1 ServletContextListener, in that call ServerStarter.main(null);
This code will start the server in standalone mode.
tigase, is a better option.
You can get to work form within java.

running php and java on the same server

I have web services written using java which interacts with the android application only now we need to implement a front end web portal using php frame work codeigniter. We have common database mysql 5.1 which interacts with both the web services and also web portal, is it possible to configure the LAMP stack in a server which is already running tomcat6 servlet container but with out apache web server. How do I processed further and when Iwas search for same issuse I found something called php java bridge is that what I have to use??
Let me be more precise on this, I have ec2 ubuntu instance already running, domain is parked in godaddy, i have configured the A records with the ip of my ec2 instance, so when the requests comes in it will be directed to the application which is running in the tomcat6/webapps/ROOT but now I need to redirect it to the php application how do I do it and also requests from android should be directed to web services which are java based, how do I manage this?
Kindly help out
You can proxy requests to the tomcat server from Apache ... have two virtual hosts, one for the tomcat and one for the php ... all co-ordinated by apache.
http://tomcat.apache.org/connectors-doc/webserver_howto/apache.html
It is recommended that you also read the Workers HowTo document to learn how to setup the working entities between your web server and Tomcat Engines. For more detailed configuration information consult the Reference Guide for workers.properties, uriworkermap and Apache.

Categories

Resources