Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 2 years ago.
Improve this question
how to use JNI in JSP page?.In net i found that
1. because if anything goes seriously wrong in the C part of your application, it will very likely crash your J2EE server, downing all other web services and applications it is running.
because the 'reactivatable' nature of web applications means there is no guarantee that a static initializer will not be executed more than once during one JVM run.
Unless you're confident of the reliability of your JNI-linked library, I'd strongly recommend not doing this, for the reasons you've identified.
I'd recommend decoupling the application server from your native code, and make the native library available via some remote mechanism (e.g. web service / REST / simple socket). That way you've isolated the app server from any fatal problems related to the native code.
Related
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 5 years ago.
Improve this question
Can C++ be used as back-end and Javafx as front-end in the same Application?
And if I do this will the application be an executable (.exe) ? Otherwise is there any way to make it an Executable (.exe) ?
**Edit: Reason - I've got some problem in developing GUI applications with C++. **
You could create a server/client system, where the server is C++ and the client is Java, communicating with some sort of IPC between them. Once there is a disconnect between components, they can be any combination of languages. I'm currently working on a system, where the front end is C# (GUI) and the back end is VB.
Keep in mind that a GUI is about displaying information. There is no rule that says that processing and displaying needs to happen in the same application; written in the same language.
In other words: you "only" need an abstraction layer that allows you to retrieve data from the C++; and to use services on the side.
Your C++ side could provide a RESTful API; or you use JNI to make native calls. Various possibilities, but all of that: advanced topics.
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 8 years ago.
Improve this question
I am designing an IT healthcare system for academic purposes. I would like to create a database in an ordinary Internet web-domain and a separate Java client-application.
Somehow I want the client to have access in the database through Internet. I am looking for the technology to implement that. I would really appreciate if you could share any ideas of how can I do that?
Giving direct access to the database over the public Internet is a discredited approach. Instead applications are designed as three-tiered, such that on the server side you have a dedicated application server which communicates with the database as needed.
There are many frameworks which make this task easier, such as Grails (lightweight), the Spring Framework (industrial-strength, quite heavyweight), or the Java EE platform (more heavyweight than Spring).
I would suggest developing locally.
Run your database on Vagrant or just a plain old VM and treat it like its an external database server.
Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 8 years ago.
Improve this question
I currently have a Java Servlet backend Tomcat server running,
and I want to create the front-end(webpage) with a good CMS
and make a call to my java Servlet I understand that Joomla is a php base content-management system so is there a way that I can get it work such as using a REST service, or using PHP/JAVA Bridge or even install xampp would help ?
Or is Java base CMS the only CMS Tomcat server will be able to run?
You have to look for Java based CMS. There are so many options.
dotCMS may be a good pick, but it depends. So take a look and
see what meets your requirements.
Java based CMS list
Closed. This question is opinion-based. It is not currently accepting answers.
Want to improve this question? Update the question so it can be answered with facts and citations by editing this post.
Closed 8 years ago.
Improve this question
I need to make a cross platform application than can run on MAC, Windows, Linux and also on web. Can JAVA be used for this? If yes then what type of JAVA project and what architecture should I use? And also need to implement MVC.
My Application will store data on local pc and will also have same interface on web. And both platforms will keep in sync!
Your choices are somewhat as follows.
Create a remote server
Create a Swing desktop client
Use the Swing client through Web Start or create a separate web
client on the remote server (with any frameworks of your choice).
Obviously the choice without a separate web client is simpler, but it also means that all "web" users must have Java installed and Web Start must be allowed.
Yes java is best fit for this....about project type first of all decide the frameworks you are going to use.
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 8 years ago.
Improve this question
I need to access data from an oscilloscope (Tektronix DO4034B) connected to my LAN. The oscilloscope has a web-GUI to perform the functions.
My doubt is how I develop a software in Java to perform these same functions in my program, accessing the oscilloscope in the network.
Thanks.
If the oscilloscope publishes a Java API, it will be easy. Download the API and use according to directions.
If the oscilloscope publishes a non-Java API, then it's a matter of binding the Java language to the published API.
If the oscilloscope doesn't publish an API, then you have to make a choice.
Figure out how to set up a service on the oscilloscope, which binds to the internal api, and presents what you desire.
Use a Java web client, Apache's HttpClient comes to mind, and have Java drive a program driven headless web browser.
I'd opt for #2 unless there is some overriding reason to make it integrate with a larger environment better.