As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance.
Closed 10 years ago.
Suppose I have a Java application. I want to run another Java application from current (not a thread - a separate application) to calculate some function and them get the result to my first application to output it. How can I implement this?
What comes to mind:
RMI
shared memory
piping
calling 1st from 2nd
sending signal
socket programming (REST, SOAP, etc.)
Related
As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance.
Closed 9 years ago.
I wanted to start writing my own service, which will gives iOS- app json and receive the same json, but I don't know from what I should start. Could you tall me some tutorial, and example?
Thank you
You should start with figure out how web services work.
I can recommend you REST approach. It is easy to set up and maintain.
Here you can find a good tutorial and here there is something useful from Oracle.
As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance.
Closed 9 years ago.
Basically the title. I am working on a legacy project that is under ROOT in tomcathome/webapps. What does this mean specifically for the webapp and tomcat when a file is deployed under this name, and why would somebody do that (i.e. what are the advantages)?
The project is using Java Servlets if that is important.
Is it simply that you can access the app via mydomain.com:8080/ directly?
It can be accessed at http://your-host.com/ rather than being accessed at http://your-host.com/yourWebApp/.
The advantage it that the URLs are shorter.
As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance.
Closed 10 years ago.
I'm searching for an industrial serial to USB converter.
I want to use it within my JAVA application to communicate with various devices.
Therefore the serial adapter has to provide a mode for RS232, RS422 and RS485.
Furthermore there should be a library which enables me to enable and disable the buffer in the serial adapter.
I tried the MOXA Uport 1150, which does a great job. The problem with this adapter is, that the serial mode (232,422,485) can't be changed within a Java-application and the buffer of the MOXA can't be enabled/disabled either.
I hope someone can help me!
Michael
As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance.
Closed 11 years ago.
What is the best Open Source Web Crawler Tool, written in Java.
Try crawler4j. You just need to implement a simple interface which controls which URLs to visit and what to do with each crawled page.
in java I think it boils down to Nutch vs Heritrix. You should specify what your needs are to get a better answer.
As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance.
Closed 10 years ago.
I seek some full featured async http client (using NIO, not thread per connection), that supports connections through all kinds of proxy(http/https/socks4/socks5).
I need different proxy per connection, not one global proxy for all connections.
so... what library i can use?
P.S. sorry for my english
I think you want this: https://github.com/AsyncHttpClient/async-http-client
Solution found!
look at http://htmlunit.sourceforge.net/