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.
Does there exists any JConsole alternative which i could bundle with my app ?
If you are looking for a command line alternative Jmxterm would be a good option.
It almost have all the features Jconsole supports but not the GUI.
Can get it downloaded from Download JMXTERM Here
Not a real answer but maybe helpful. I just stepped over one of your last questions and think, these JConsole/JMX questions are still related to your work on a plugin for the hudson CI. The idea is to have a button on the Hudson UI to start a JConsole or any other managing application.
Thinking about that - Hudson has a web interface. Assume, you use hudson from a remote machine and press your JMX console button, I bet, the console is started on the server and not on the client and therefore inaccessible. So using an existing managing application (java application) limits you plugin to single-workstation uses of hudson. or you go the hard way and integrate not only the launch button but as well a web interface (based on JMX) that allows managing your servers directly from the hudson console.
Provided you are happy with running Sun-only classes, you can launch JConsole via
java com.sun.jconsole.JConsole
and hence directly from your application. Just call JConsole's static main() method.
Nagios with nagios-jmx-plugin
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.
Googling this question returns lots of results with marketing jargon.
What I am looking for is a summary of what it does, more along these lines What is Maven?
This is the closest I could get.
"WebSphere" in the most abstract sense is a brand encompassing various products, so "a brand" is about as good an answer as you can get.
What one usually refers to when saying "WebSphere", though, is the WebSphere Application Server, which (as the name implies) is an application server - something that runs EJBs and other server-side Java technologies like servlets, JMS, etc. An example of another important player in this space is JBoss AS.
Finally, another possible definition of "WebSphere" is "its creator's biggest technology mistake" ;)
Unlike a regular web server which simply provides clients acces to html-documents, which their browser then displays as websites, an application server allows for programms/scripts to be invoked by requesting websites, which dynamically generate the websites.
In this case the scripts are written in Java. This allows for a lot of the apis provieded in Java to be utilised by your web-application (the website itself is simply the frontend of your webapplication)
So web sphere is an application server from IBM. Simple as that. This tells you what it can do.
Hope that helps.
WebSphere is an application server which supports a lot of advanced functions including load balancing, database connection managing, advanced logging options and many more.
On the other hand it introduces severe overhead, is difficult to administrate and one has to learn a lot to use it effectively. And more often than on other servers you find yourself in JAR hell. Been there.
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 have to build Java daemon process that once starts will always be working (and listening to an open socket) in Linux, Windows and Mac.
I saw a few solutions on the web, but didn't find anything consistent and widely used. What are developers using for such task?
Simplest way to do it is to create batch file(win)/shell script(linux) and invoke that in inittab (linux) or windows startup. That's makes life easier. In that batch/shell file, simply call java binary with parameters
java background/daemon/service cross platform best practices
Use javaw from an system execute command in a c program in windows to make the "nicest" deamon in windows. Then have the c program loaded into the registry under startup, or place it in the startup folder, but that is easely edited by your customers which may not be desireable.
Otherwise the command prompt window will keep bugging you/your client.
For linux & mac etc... it's easy, simply load the java command into init.d
Don't know if I'd prefer java as a deamon though.... It's a bit bulky compared to a c deamon.
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 am writing code that often has to work in restricted environment. I sometimes code at home, where it works nicely and the moment I put it to test at work, McAfee or some other firewall blocks it.
Sometimes it is not possible to disable such protection.
I need a test suite for my home development environment where I can simulate all these restrictions without having to install all of them myself (for instance it is my experience that it is very hard/impossible to clean all traces of mcafee once you have installed it). I also need to simulate proxy servers.
I am writing code in Java if it helps.
[EDIT: so some Java library for this would be great]
You could use VMware (or VirtualBox) with different test-setups.
Try node.js. Also have a look at a sample proxy implementation
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.
I am a new to IntelliJ Idea from Jetbrains and the installer asks me various questions at first launch. Though i managed Subversion/Version control system settings in first window other seem alien to me. Can i have a experienced hand at completing other steps. I am used to visual studio and .net and C#. But Java for first time, hence such a subjective question, mostly i want to develop Google data, android , java webapps[so database comes along], console application[does java have one??] couple of screenshots from installation
Screen2
Screen 3
Screen 4
I did manage find out what other's were but these bother me. I haven't completed the steps yet waiting for answers to complete and finish the installation
You always have the option to add anything you wish later on (look for the "wrench" button on the menu bar).
I don't use all the Java EE app server options, because I know I'm not likely to use WebSphere and some of the others.
I use Git and Subversion for source code management, so those are enough for me.
Given what you want to do with the IDE, I'd recommend getting at least the following:
GWT, GAE, Hibernate, SQL, and whatever App servers you plan on using for deployment. Also, you can always add those plugins later if and when needed. I've noticed that overloading the IDE with lots of plugins slows IDEA down quite a bit so be selective.
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 looking for a good, preferably free tool for automating tests of a java (EJB3) application without any kind of GUI.
Tool should be capable of at least:
Inserting / updating / deleting data on database
Querying and comparing data on database
Reading and writing to FTP server
Initializing test environment, launching EJB3 bean, cleaning up test environment after the test
Reporting
Some kind of scripting interface is enough, no GUI required
Naturally this could be done using Java & JUnit but it would be pretty tedious. I would appreciate any hints of such tools.
It sounds like you are looking for a combination of DBUnit and Cactus (the FTP stuff might require Commons-NET or Commons-VFS). Use ANT, with its scripting support, to get the reporting on the test results and the scripting.
That hits the checklist. If you want to test those EJB's out of the container, there is EJB3Unit.
Robot framework, Fitnesse and Concordion seem currently the most interesting candidates.