jPOS-EE also has a status monitoring module, you can have a look at
http://jpos.org/blog/2007/10/11/jpos-ee-setup-howto/
--Alejandro
> OR there is some extra work that has to be done?
I would carefully follow the instructions at the link Alejandro gave
(http://jpos.org/blog/2007/10/11/jpos-ee-setup-howto/) first.
As you are running windows the steps are a bit different and you must
satisfy the recommended prerequisites, which include, but are not
limited to :-
- Getting an svn client (so you can sign out the code (I use tortoisesvn
from http://tortoisesvn.tigris.org/),
- Getting ant installed and available on your path (ant.apache.org),
- Installing and running a MySql database server
- Downloading and setting up cygwin (www.cygwin.com) to allow you to use
the scripts that are downloaded, instead of putting together your own
for windows.
Each of these items has a how-to of their own, so take your time carry
out each step in the jpos-ee how-to correctly and completely before
moving onto the next. I think you will find it challenging, but worthwhile.
>
> Do I need to download some JMX API or its part of the JDK
> distribution.
It is separate but it will be downloaded as part of the svn checkout -
or subsequent "ant" invocation. Certainly when I followed the how-to,
it was just there I didn't download anything directly myself.
I followed this (http://jpos.org/blog/2007/10/11/jpos-ee-setup-howto/)
how-to quite recently, and I would say that on windows it is much harder
(than on unix). Mainly because of the absence of facilities and the
need to setup 'basic' tools like svn. I did not use cygwin myself, but
I know this mailing list does have guidance should you need it.
Take particular care with :-
- space character in the names of directories in which jars are kept,
- running the commands in the correct directory :-
invoking bsh needs to be done from inside the build folder,
invoking ant takes place within the folder you checked
everything out to.
Once you have jpos-ee setup and running, then Andy's on-boarding guide
will make more sense to you as it will align with your vanilla setup.
> Also where can I get the download for JPOSEE, currently when I try
> http://code.google.com/p/jposee/downloads/list , the list is empty.
See above and below...
>
> Meanwhile http://jposee.googlecode.com/svn/trunk/jposee returns "page
> cannot be found" error.
You need to know that you should use a subversion client to checkout the
code and fixtures (following the instructions on the link given).
--
Mark
You can also use the jPOS ISOMeter and create a swing based monitoring
tool (provided your jPOS application can access a display and it's not a
daemon/service).
Or you can use something like Nagios and create some small services in
jPOS to be more Nagios friendly.
> Actually it seems I had skipped a number of steps.
>
> So Ideally I need to go through the following stages first;
> - Getting an svn client
Yep, so you can checkout the code.
> - Getting ant installed and available on your path (ant.apache.org),
> ( This I already have)
Ok, good.
> - Installing and running a MySql database server ( I have an instance
> already)
Excellent
> - Downloading and setting up cygwin (www.cygwin.com)
So you may make use of the unix scripts that are provided, the
alternative is to prepare your own, although a fairly recent discussion
on this mailing list did include a windows bat file from Dave I think.
These are the primary prerequisites that are needed just because you are
a windows user 8(. Although you have some boxes checked already.
>
> Let me do that and then get back to the jpos-ee-setup-howto.
Have fun.
--
Mark
> Let me ask you, is svn a command when used in this context.
>
> svn checkout http://jposee.googlecode.com/svn/trunk/ jposee
This would be the command that you would type at a command prompt to
invoke a command line svn client.
Did you download the tigris tortoisesvn client I pointed you towards?
If you did and allowed the right mouse button integration, then you can
access the tortoisesvn interface by right clicking your mouse on a
folder in an explorer window and then click :-
TortoiseSVN >
and then
Repo-browser
Enter the url http://jposee.googlecode.com/svn/ in the dialogue provided
and the repository will be displayed and you can check out the trunk to
the base folder of your choice.
>
> how about the keyword checkout, is it an option passed to svn?
It is and would result in the code being checked out from the repository
into the directory in which you are sitting at the command prompt. If
you are using the tortoiseSVN gui, then the command happens behind the
scenes.
--
Mark
>
> As for the Nagios option, I understand Nagios is made to run on Linux
> os, have you tried it on Windows? How will I be able to do the
> monitoring for my windows based JPOS Host application?
You would have to write the code to run inside of your jPOS solution
that Nagios could query for your status(es). This is mentioned :-
"and create some small services in jPOS..."
>
> I didn't get a clear understanding of the JPOS Isometer approach to
> monitoring, do you mind giving me some direction on how to achieve
> it?
If your jPOS solution is running on a machine with a screen (a keyboard
and mouse might be useful too) that a gui display can be rendered onto,
then an ISOMeter will display the status of a channel say within a swing
rendered display. This would allow visual monitoring and some interaction.
"use the jPOS ISOMeter and create a swing based monitoring tool"
--
Mark
> Did you say i need to have cygwin? you know its a heavy env and am
> finding it had to fully downlaod & install.
I think you might need it, but it is easy to install, but a large
download, I agree.
Without it, you will need to write or locate a windows equivalents of
the bash scripts provided. As I said before I think Dave shared a
windows version of at least one of them on this list.
--
Mark
http://jpos.svn.sourceforge.net/viewvc/jpos/branches/v1_5_3/jpos/bin/
Dave Bergert
http://www.paymentsystemblog.com
> -----Original Message-----
> From: David Bergert [mailto:dberg...@gmail.com]
> Sent: Friday, October 10, 2008 7:01 PM
> To: 'jpos-...@googlegroups.com'
> Subject: RE: JPOS Real-Time Monitoring Tool
>
> Look at these .bat file to start -- you will need to modify them a
> little I believe,
>
> http://jpos.svn.sourceforge.net/viewvc/jpos/branches/v1_5_3/jpos/bin/
>
>
> > -----Original Message-----
> > From: jpos-...@googlegroups.com [mailto:jpos-
> us...@googlegroups.com]
> > On Behalf Of Mark Salter
> > Sent: Friday, October 10, 2008 5:27 PM
> > To: jpos-...@googlegroups.com
> > Subject: Re: JPOS Real-Time Monitoring Tool
> >
> >
http://jposee.googlecode.com/svn/trunk/
However, the google code @
http://code.google.com/p/jposee/source/checkout states the svn command
line as:-
"
# Non-members may check out a read-only working copy anonymously over HTTP.
svn checkout http://jposee.googlecode.com/svn/trunk/ jposee-read-only
"
As you can see, there is a space before jposee (which might be confusing
you as you missed it), but can someone say if the 'jposee-read-only'
part is correct.
--
Mark
>> Use a little Java or BeanShell script to create your DB and initial user
> You can use bin/bsh to invoke a Beanshell. If you are on Windows you
> may want to use cygwin or create yourself a BSH.BAT based on our unix
> based bin/bsh script and run:
>
> Also how do i use the following piece of code to complete the setup?
>
> import java.util.*;
> import org.jpos.ee.*;
> import org.hibernate.*;
>
> DB db = new DB();
> db.createSchema (null, true);
>
> db.open();
> .....................................................
> ....................................................
Use bsh.bat to invoke beanshell (bsh) and then paste the code into the
bsh 'command prompt'. This java code will run (in java) under beanshell
and create and populate the required tables for the example.
>
> Building JPOSEE with "ant run" and creating the DB with initial user,
> which step should come first?
I don't think the order matters between these two. When you run the bsh
above the tables will be created in the db using the initial user.
--
Mark
If you don't add a directory name, then files are checked out in a directory called 'trunk'. The -read-only suffix is just a suggested eye catcher so you get to know that you can't commit stuff there because you're hitting the read-only repository.
I see; it is the local folder name into which the source is checked out
to ; got it. I thought it was a component on the server 8(.
>
> If you don't add a directory name, then files are checked out in a
> directory called 'trunk'. The -read-only suffix is just a suggested
> eye catcher so you get to know that you can't commit stuff there
> because you're hitting the read-only repository.
Thanks Alejandro.
--
Mark
> Please hlep me on this, I really haven't clearly understood this stmt
> (invoking the beanshell from bsh.bat).
Where to start?
Beanshell is a way of running java code, interpreted at runtime rather
than compiled into a class file.
> So how do i then invoke the bsh.bat?
You need to type :-
bin\bsh.bat
at a command prompt whilst in your checkout folder (that includes the
folders bin and build). As it stands it needs to run 'in' that folder
so that the folders it references are present, but there still might be
problems.
> When i double click on it, it just blacks out.
?
>
> If i try to go via the windows command prompt, i again get issues as
> shown below
>
> C:\Projects\jposee\bin>bsh.bat test.bsh
> 'C:\Program' is not recognized as an internal or external command,
> operable program or batch file.
A space character is treated as a separator of parameters. Because your
folder names include spaces, you should enclose them (or a block of
them) in quotes (") to stop that happening.
>
> C:\Projects\jposee\bin>bsh test.bsh
> 'C:\Program' is not recognized as an internal or external command,
> operable program or batch file.
Your bsh.bat does *not* take a file as a parameter, you might be able to
use redirection, to enter the file, but I copied and pasted the whole
text into the beanshell (bsh) once it was ready for input.
The DB setup code is just java, perhaps you will find it easier to place
the code in a java program and run it from there?
--
Mark
> see below
>
> C:\Projects\jposee>bin\bsh.bat
> 'C:\Program' is not recognized as an internal or external command,
> operable program or batch file.
Same error, so you have not fixed it?
>
> Below are the details of bin\bsh.bat
> @echo off
> REM $Id$
> set JAVA_HOME=C:\Program Files\Java\jdk1.6.0_02
> set JAVA=%JAVA_HOME%\bin\java
> set cp=build\classes;build\examples;build\jpos-ee.jar;%CLASSPATH%
> for %%i in (lib\*.jar) do call bin\cp.bat %%i
> for %%i in (ext\*.jar) do call bin\cp.bat %%i
> set CP=%CP%;%JAVA_HOME%\lib\tools.jar
>
> %JAVA% -classpath %CP% bsh.Interpreter %1 %2 %3 %4 %5
>
> set cp=
>
> And cp.bat has the following
> set CP=%CP%;%1
Comment out or delete the "@echo off". Then when you run it, you will
see all of the output, the last entry before the error message will show
the problem.
I can see the your JAVA_HOME variable includes spaces, this is likely
the problem?
--
Mark
What spec machine do you have?
--
Mark