Sean McGaughey

Greenhorn
+ Follow
since Jul 20, 2003
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Sean McGaughey

Hi guys,

Basically I am trying to get my head around the differences and advantages of a cluster over a cell. I am currently working through the WAS v5 redbook but this is slow progress and a down to earth explanation could help me out heaps.

To use a simple deployment scenario as an example, if you have 2 IHS boxes splitting requests across a cell of 2 WAS instances (each one on a different physical box), what is the advantage of a cluster over this setup?

Deployment Manager (on another server)

IHS01------------WAS01
-- --
-- --
--
-- --
-- --
IHS02------------WAS02

I apologise for the diagram but was trying to illustrate the 2 IHS servers splitting requests across the 2 WAS boxes.

From what I understand, they are in a cell and managed by the Deployment manager. So if I install a new application, the deployment manager will install it across each node in the cell. So is it right that each node in a cell is a copy of each other?

Also, in the above setup, if WAS01 goes down, then both IHS boxes will not route requests to it and all client interaction will be to WAS02. So if you replicated this environment except had WAS01 and WAS02 in a cluster, what is the difference/advantage? I am aware that each member of a cluster must be identical (clones) but isn't each node in a cell identical as well due to the fact that applications are installed across each node in thhe cell?

Thanks in advance for your help.

Cheers,
Sean.

[ February 01, 2005: Message edited by: Sean McGaughey ]
[ February 01, 2005: Message edited by: Sean McGaughey ]
19 years ago
Hi all,
I have just started an XML tutorial and I am trying to compile an example on using the DOMParser class. However I get a "package org.apache.xerces.parsers does not exist" when I try to import the package:
import org.apache.xerces.parsers.DOMParser;
and a "cannot resolve symbol" error when I try to create a new DOMParser:
DOMParser parser = new DOMParser();
After trying ggogle for a few hours the best I could find was to add "xercesImpl.jar" and "xmlParserAPIs.jar" to my classpath setting which I have done a number of times and restarted the machine each time - no luck. I definitely have the DOMParser.java and accompanying files under the following directory structure:
C:JBuilder9/extras/xerces/src/org/apache/parsers
What do I need to do to make this work? Do I need to change my import statement or move the xerces folder from "extras" into the main jdk1.4/src/org/apache folder? I am truly stuck on this and would greatly appreciate any help.
Thanks in advance,
Sean.
Hi all,
I have just started an XML tutorial and I am trying to compile an example on using the DOMParser class. However I get a "package org.apache.xerces.parsers does not exist" when I try to import the package:
import org.apache.xerces.parsers.DOMParser;
and a "cannot resolve symbol" error when I try to create a new DOMParser:
DOMParser parser = new DOMParser();
After trying ggogle for a few hours the best I could find was to add "xercesImpl.jar" and "xmlParserAPIs.jar" to my classpath setting which I have done a number of times and restarted the machine each time - no luck. I definitely have the DOMParser.java and accompanying files under the following directory structure:
C:JBuilder9/extras/xerces/src/org/apache/parsers
What do I need to do to make this work? Do I need to change my import statement or move the xerces folder from "extras" into the main jdk1.4/src/org/apache folder? I am truly stuck on this and would greatly appreciate any help.
Thanks in advance,
Sean.
Hi all,
I have just started an XML tutorial and I am trying to compile an example on using the DOMParser class. However I get a "package org.apache.xerces.parsers does not exist" when I try to import the package:
import org.apache.xerces.parsers.DOMParser;
and a "cannot resolve symbol" error when I try to create a new DOMParser:
DOMParser parser = new DOMParser();
After trying ggogle for a few hours the best I could find was to add "xercesImpl.jar" and "xmlParserAPIs.jar" to my classpath setting which I have done a number of times and restarted the machine each time - no luck. I definitely have the DOMParser.java and accompanying files under the following directory structure:
C:JBuilder9/extras/xerces/src/org/apache/parsers
What do I need to do to make this work? Do I need to change my import statement or move the xerces folder from "extras" into the main jdk1.4/src/org/apache folder? I am truly stuck on this and would greatly appreciate any help.
Thanks in advance,
Sean.
20 years ago
David,
thanks for the explanation - I am new to J2ME and have no experience with WML so I didn't realise it was that easy to write a wml page. Thanks for the code as well, it works fine on the wap browser on my phone and I can now link to a few MIDlets from the same page. Lasse, as I said I am new to J2ME and was following a JBuilder tutorial on OTA provisioning. It uses a html page to link to the jad files, but made no mention of anything else that would be needed for the phone to access the simple page, like a wap gateway. Chalk it up as another rookie mistake
Cheers again,
Sean.
20 years ago
Moreno,
I am also new to J2ME and have had a fair bit of trouble with downloading my MIDlet OTA. I was not able to figure out why I couldn't create a link to the jad file on a html page and use the WAP browser to download it by selecting the link on the html page. My phone kept giving a "Format not supported" message when I tried to view the html page. I'm sure this is something fairly basic to overcome, but the deadline for my project is soon and it didn't matter how I got the MIDlet onto the phone, as long as I was able to demonstrate OTA provisioning. I am not sure about this at all but I think that you need a wap gateway in order to translate the html page so that it can be viewed by the WAP browser on your phone. Hopefully someone on this board will let me know if this is wrong. This is the only reason I can see for the phone not being able to view the html page I made, but can view html pages which have been translated by a search engine like Google. Sorry I couldn't be more help with your problem, hope you get it sorted soon. Good luck,
Sean.
20 years ago
I had the same problem with downloading my MIDlet OTA. Instead of creating a html page containing a link to the jad file, and entering the address of the html page into your wap browser, try entering just the url for the jad file into the wap browser on the mobile device. Mine was something like "123.123.123.123/examples/jsp/name.jad", as I just put the MIDlet into the jsp examples directory in Tomcat. I know this is not an ideal solution, but it worked for me and I was able to download my MIDlet suite OTA. Hope this helps,
Sean.
20 years ago
Thanks Michael for the help with how to reference images from the jar file -stupid mistake on my part.
Cheers again,
Sean.
20 years ago
Hello everyone,
I am having lots of difficulty in displaying an image as part of an alert. I have used JBuilder to develop my MIDlet and cannot find any documentation on how to include images in a project. I can get the image to display with the alert when the app is running in the WTK emulator, but when I package it into a jad and jar and load the jar into other emulators/phones the alert is displayed but the image is not. So I presume that my reference in the code to "createImage("/Splash.png")" is where I am going wrong. I have tried to follow the instructions for adding images when using the J2WTK and use a "res" folder but again have had no luck with this. So if anyone could walk me through how to add an image into a JBuilder project and reference it in the code I would be very grateful. Thanks again in advance for your help,
Sean.
20 years ago
Thanks for the reply Daryl - didn't realise it was something so obvious - I had a catch for IOExceptions but didn't have an action to handle them- presume this was why it was just hanging. Cheers again.
Sean.
20 years ago
Hello everyone,
was only introduced to this forum a few months ago when I started a uni project using J2ME, and would just like to say that it is an excellent source of help for someone just beginning to learn to program. Hope I'm not re-treading old ground here, but I can't seem to find a decent example so here goes. All I'm trying to do is set a timeout for when my MIDlet tries to communicate with a servlet. The data I am sending/receiving is quite small, less than 2kb max, and I would like to create something which after 30 seconds (ballpark figure) of trying unsuccessfully to connect to the servlet asks the user to try again later etc. My application works fine both on the emulator and running on my phone, but I would prefer to give a user some feedback if for some reason the server is unavailable, rather than just have the application hang if it cannot connect.
Thanks to everyone in advance for your help,
Sean.
20 years ago