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 3 years ago.
Improve this question
My webapp exposes some application-specific metrics (think "orders placed") via JMX, which I'd like to monitor using Hyperic HQ (open source edition).
According to the Hyperic Inventory Model, my Linux server is called a Platform hosting my Tomcat 6 Server, which in turn hosts Services (e.g. "Servlet Monitor") that finally expose Metrics (e.g. "Error Count per Minute").
I assume I need to develop a custom Hyperic plugin (just an XML file, really) that would point the agent and server at the correct JMX MBeans. Ideally, I would like to see my webapp listed as a Service hosted by the Tomcat 6 Server, but looking at the Plugin Development docs, that doesn't seem to be possible.
Maybe that's not too bad anyway, because in theory, I might want to switch my app to Jetty. But I figure that's a very common use case, so are there any best practices? I couldn't really find any examples of this on the web, so I thought I might just ask the experts..
Please note: The Hyperic docs I linked to seem to require an account to view.
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 4 years ago.
Improve this question
We are well on our way to Dockerizing Domino. In fact, we have a Domino Docker running in IBM Cloud (bluemix) that replicates with on prem.
What we want to be able to do is automate the standing up of a Domino server.
In our script, we are thinking of calling a custom program we can build that will use either the C API or Java API to register a new server, deploy a XPages (JSF) application to it, and start the server, replicate over the common user directory (names.nsf) from the master server.
Currently, we started the Domino Container in CentOS in listener mode. We registered the server on prem, and copied over a bunch of files (server.id is one of them) and edited confirmation to manually configure it. We want to automate this process.
Any insights on how this can be better accomplished? any api references you can share to get us most of the way there?
Yes, this is possible. We have done this in Lotusscript using LS2CAPI.
As we are accesing API functions, this is also possible using Java. Not sure, if domino-jna already includes the needed Api calls, but this can be implemented. Take a look at github for Karsten Lehmann and domino-jna.
domino-jna can be used from XPages as well.
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 going to build web application in Java (JSP). In my web application ;JApplet will communicate with the database that is on other place(Remote Database).
My question is that how applet can take and give the data from the database.
I am Using MYSQL database.
Can I use JDBC for that ?If so then how?
Unsigned applets must follow the same origin policy, hence the applet will only be able to talk with the server from where it was downloaded. For this case it may work, assuming you bundle JDBC driver somehow (like moving driver classes into applet jar, or trying to use multiple jars in the same applet).
However if you want to deploy the application more widely, it may be better to use text based communication (XML or JSON) on the server port 80. JDBC port may be blocked by various firewalls.
As the alternative to the applet technology, you may also look into Google Web Toolkit. It is the same Java (just toolkit compiles to JavaScript) and you should feel at home, but it is easier to deploy reliably. GWT provides callbacks to pass the data to and from the server.
what you exactly wanted to do is run to your applet inside your web container for that you study the architecture of J2EE web container that how it run applet container.you can check on the oracle site link : about j2EE containers. for the architecture you can view this :http://tekmarathon.files.wordpress.com/2012/10/j2ee_component_diagram.png
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 9 years ago.
Improve this question
I need to make an on-line system/webapp/server that connects to an mySQL Server. this web app/server must accept incoming communications from an android app and then make changes to the database. Also there needs to be an "Web Admin Console" to do manual data manipulation.
I was considering using Java with Tomcat for the web application the system needs to run on:
open source frameworks
be well documented technology
secure data transmission
are there any other software/languages i could use? how do i set up the web console? there needs to be an SSH access as well...
How do I start with making this online system?
You can develop complete system in JEE6. You can choose RESTful WebServices for integrating Android Application and Web Application too. For developing web application you can go with JSF if you want rich look and feel. Else you can stick with normal JSP and frameworks like jQuery and Twitter Bootstrap etc.
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 would like to solve all my problems with domain
place where I can store all my git repositories
place where I can deploy my Java, (python, php) applications
place where I have my jabber, mail, silc on my own domain
I don't have enough technical knowledge to run my own server, I would like to use somebody else solution but as cheap as possible. Is there cloud solution with these capabilities? Is there a trustful, cheap server provider? Or do you use many solutions like - gmail, github, aws/gae, etc?
Finding everything you need in one place is fairly unlikely. I typically use Google Apps for email and docs (they also support jabber), then use other services like GitHub for Git hosting where needed. Deployment varies by project, but usually includes AppEngine, Heroku, SliceHost, or EC2.
I'd advise that you get familiar with a few services and try them out. If your experience is anything like mine, you will settle on services you like (and can afford).
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
Why would it be preferred over Tomcat?
Is your experience with big or little companies? Internal or external (customer/public facing) systems?
You could look at this page listing products that use Jetty.
One example you might (unknowingly) be familiar with is that the Eclipse IDE's help system uses Jetty.
Google App Engine for Java (GAE/J) uses Jetty as servlet container.
We use Jetty for a production environment. Very small and easy to install.
Jetty is in a lot of production environments. It is very easy to install, configure and deploy on. No fluffy management stuff that gets in the way.
I have seen Jetty used for production deployments for lightweight http servers for restful services. For simple servers that relay requests back to a service Jetty is often enough.
It is used quite often in embedded mode. If your server needs extra http component, you can just throw in Jetty, write few servlets, and you're done. Tomcat isn't/wasn't as good for embedding as Jetty is.