Win a copy of Microservices Testing (Live Project) this week in the Spring forum!

Andrew Brodie

+ Follow
since Oct 24, 2000
Cows and Likes
Total received
In last 30 days
Total given
Total received
Received in last 30 days
Total given
Given in last 30 days
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Andrew Brodie

I am interested in this book. However, I would like a book that takes a look at the J2EE technologies from a comprehensive build standpoint, and focuses less on the details of each. Something that would combine JSP, Servlets, XML, CSS, JMS, EJB etc... and walk you through a best practices and how to build with these component technologies.
Any suggestions!!!
20 years ago
Question: Are RUP and UML related?
The answer is not so simple as the question. RUP is a process (Rational Unified Process). UML is a language (completely independent of process). The RUP does suggest that artifacts are created using UML for your design (although I have seen nowhere where it says this is mandatory, artifacts however of one kind are mandatory). RUP is also a software package in a sense as it comes with templates etc for the design process. Since it is a Rational product it is also integrated with Rational Rose (their UML design tool). So the answer is if you are using RUP then you will most likely be using UML.
if anybody could provide a link or some sample code for these approaches!
I would like to see a real simple application of how this would work assuming the inner firewall allows the HTTP request.
>open a URL from your outer servlet and send a HTTP
>request to the inner ones, then gather up the reply and present
>it to the user.
Assuming no HTTP, how would I accomplish this?
>If basic HTTP is a no-no, the you will have to use some
>connection which is allowed. if you can open a direct socket
>connection through a particular port on the inner firewall, >then you can either run your inner servlet container listening
>to that port or redirect it to 80 in the firewall and still use
21 years ago
I posted this question direct do here is the question and answer:
Any further comments and discussion is appreciated.
AB> I want to design a site that uses JSP's on the front (in the web tier, inside internet firewall for Http), but I want the front(controller) to dispatch requests to other servlets/jsp/beans inside the application server (inside 2nd firewall) to provide added security to my business logic which will inevitably access our database.
Answer #1:
The solution to this all depends on how you have your second level firewall configured. Fairly obviously you can only talk through it using ports and protocols which it allows, from hosts it allows to do so. I don't know how you have it set up, or indeed how much flexibility you have to configure it.
The simplest solution is if the second firewall allows basic HTTP
traffic from the servers in the web tier. If so you can just use HTTP on port 80 - open a URL from your outer servlet and send a HTTP request to the inner ones, then gather up the reply and present it to the user.
If basic HTTP is a no-no, the you will have to use some connection which is allowed. if you can open a direct socket connection through a particular port on the inner firewall, then you can either run your inner servlet container listening to that port or redirect it to 80 in the firewall and still use HTTP. Otherwise use what you can, even if it means knoocking together a custom server which listens on some port and spawns threads which in turn talk to the inner servlet container from inside the inner firewall. A server like that should be less
than 50 lines or so of Java.

21 years ago
Question for Kevin?
I need to use java to receive XML data and write it to a DB2 database.
What I think I know:
-I will have to parse the XML into objects and use JDBC to write the data into the DB2 database.
What I know I don't know:
-Will my servlet and/or java application have to open the XML source file as a file object for i/o, or can the XML be passed into the servlet as content and then parsed into an object model for persistence to the database.
Any direction on this path or "Wake up call" (do it this way instead) would be appreciated. Also, if there are any links that anyone knows of that I can look at that will enlighten this task please let me know.
Thanks in advance
I am looking at the prospect of dealing with inbound XML data. By that I mean that we will receive invoices, contracts, customer info etc... from other businesses that we will load into our database.
I was wondering if any design patterns for OOAD/Java would apply to building the Java application and how we validate the XML content and write it to our persistent database. I have some ideas but I'd like some other POV. Also, I want to consider the possibility of accepting new XML structures (i.e. products) and how I can build an extensible/robust java program to handle the current XML structures and that will adapt readily to new structures as the system grows.
Thanks in advance for any input!
Hi all, I just finished the UML IBM 486 exam, did quite well. I took a $2000+ Rational course to prepare (Note: don't waste your money). What I found useful for those of you who are interested is:
UML Distilled (Fowler) - particularly on the developement process and dynamic modeling aspects. Some questions had the appearance of even being targeted at those who had read this book.
Applying UML and Patterns (Larman) - general understanding of the OOAD process and how to map it into a set of UML artifacts. Since the exam is really an exam on OOAD (modeled in UML) this is a must read, even if it is a little simplified. NOTE: The exam is very easy from a UML standpoint, it does not get into really specific detailed UML diagrams rather it sincerely tests your OOAD knowledge using the BASICS of UML to convey the message.
IBM Web site - has a link to where you can take a mock of the exam. The questions are different however this will give you as close to an exact feel for the content and presentation as I have ever seen. (80% on the mock and you'll pass!)
Good luck y'all!
Since EJB can not access system resouces like file directly.
i.e. File myFile = new File(); is not allowed by EJB spec. How would you use EJB to process interface (inbound & external) data from flat ascii files. (By the way I am open to don't use EJB's as an answer, however the alternative and why is what I would need so I can investigate and prototype the options).
Thanks in advance,
I would like some other peoples thoughts on a few topics and how to design/architech the following:
Parameters: IBM AS400;DB2 server and database. WebSphere web server.
Faced with: Receiving flat file data from multiple external sources, through a middleware FTP product (really a PULL mechanism, we are considering XML at a later phase.)
Consider: We have resident on our file system these flat data files (ASCII TEXT). What is the best approach in Java to code routines (Servlets/Applications/EJB's) to process this inbound data and insert it into the DB2 database. Please provide reasons for any approach so that I may further investigate and make recommendations.
I am new to Java but not to Enterprise applications and integration. I would like to be able to apply some of the best available Java methods to construct these interfaces (application interfaces)
Thanks to anyone who replies!
I am preparing to take this exam as part of a certification. I have taken it once, just to scope it out, and very nearly passed. To prepare I have read UML Distilled, "The Unified Modeling Language User Guide" by Booch, Rumbaugh and Jacobson, and taken a UML and OOAD course from Rational. As well, I have used IBM's web site to prepare with the mock exam, and here is where my problem is. I have not done overly well, although I feel I understand the concepts and material. The big problem is there is not a way to find out which questions you did right and wrong on IBM's web site. I screen shoted each question and my answer last time around and made a Word document out of the images. I can make this available to anyone who wants it via e-mail, and would very much like someone to look over the questions and see if they agree/disagree with my choices.
Let me know if you want to see and/or review the document.
Much appreciated.
I tried this exam once just to see what it was all about and I almost passed. I have attended Rational's OOAD course (not the best) and studied UML Distilled, and The Unified Modeling Language User Guide By: Boock, Jacobsen, Rumbaugh.
The exam is difficult, in that it has some very unclear questions and in my opinion, some very opinionated questions that have to do with Prj. Man. style and not OOAD.
When using OOAD artifacts to organize and assign team responsibilities on a project, it is BEST to:

a) evenly distribute use cases among team members and have them work as independently as possible in order to minimize code dependencies

b) designate one team for implementing interaction diagrams related to the "common code path" and another team for implementing interaction diagrams related to "code path variations" (for example ? conditional or error paths)

c) divide teams according to the layers in the software architecture and have them work as independently as possible in order to minimize dependencies between the layers}

d) divide teams according to package diagram dependencies and utilize use cases to schedule the work for the individual team members

and other weird questions like the following which is a matter of a whole lot more than they give in the question, so it makes the answer a bit ambiguous to me:
A non-object oriented legacy application which interacts with back end systems exists. It is now required to redesign this application into an object oriented system, that caters to high volume of requests. Which of the following need to be considered while modeling the system?

a) It is not necessary to define classes, such that they represent the data fields in the back end. The object model should capture the behavior of the legacy system.

b) The object model should consist of classes which match the back end data fields. This aids the persistence of classes.

c) Draw activity diagrams to understand the behavior of the existing legacy system.

d) The GUI client objects need to be behavioral driven and they directly communicate with the database.

Any help with these and/or other questions would be appreciated.
P.S. If you can pass the IBM pre-assessment with a 75% score they will send you a free coupon to take the test for real. You only need 69% or better on the exam to pass for real. see
Lastly, I think we need a forum on this web site that contains resources for all of the JCert initiative exams and topics.
Again, any help or links to solutions to the practice questions is greatly appreciated.

Hi there, just passed my SCJP first crack at it.
The new format is very different, so make sure you prepare for the new format (code -> what is the result, kind of questions).
Don't neglect I/O, threads, and components as eluded to in the Java 2 Certification guide (chapter 11,12,13). There are detailed thread and I/O questions, learn your I/O streams and readers before you waste time and money on the exam. Also, be sure you know the answer to when an object is eligible for garbage collection, it is 1 question and should be a gift if you take 5 minutes to learn it. Last tip, on layout managers make sure you understand the arguments to the add method (try setLayout("FlowLayout"); on a Frame then say try add(xbutton, BorderLayout.CENTER);, see this mixes the layouts, does it work? What would the button look like if it does work?
Good luck to all!

Originally posted by Stephanie Grasson:
Could you post your code (*.java and *.html files) so that it is easier to determine what is causing the error?

HERE IS HOW MY CLASSPATH IS SET (I know a little messed!)
set CLASSPATH=.;C:\Program Files\JavaSoft\JRE\1.3;c:\java\myclasses;C:\Program Files\Oracle\JDeveloper 3.0\myclasses;
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=windows-1252">
HTML Test Page
HandsOn.MyApplet1 will appear below in a Java enabled browser.<BR>
CODE = "HandsOn/MyApplet1.class"
NAME = "TestApplet"
WIDTH = 400
HEIGHT = 300
ALIGN = middle


package HandsOn;
import java.awt.*;
import java.awt.event.*;
import java.applet.*;
import javax.swing.*;
public class MyApplet1 extends JApplet {
boolean isStandalone = false;
//Get a parameter value

public String getParameter(String key, String def) {
return isStandalone ? System.getProperty(key, def) :
(getParameter(key) != null ? getParameter(key) : def);
//Construct the applet

public MyApplet1() {
//Initialize the applet

public void init() {
try {
catch (Exception e) {
//Component initialization

private void jbInit() throws Exception {
//Get Applet information

public String getAppletInfo() {
return "Applet Information";
//Get parameter info

public String[][] getParameterInfo() {
return null;
Any help is very much appreciated. When I get this working I will share the solution. I know a lot of people with the same problem.

21 years ago
I am using IE5.0 and just getting started with applets. I am also using Oracle JDeveloper 3.0 to develop applets and other Java programs.
I understand I am not alone when I say that I can not get a simple applet to load in IE. I have played around with my classpath variable and the codebase and code parameters inside the applet tags. Nothing I have done will let me run applets and the same error occurs everytime, "xxx class not found".
If anybody has any insight into getting applets to run under IE5.0 please let me know.
21 years ago
If I have int a=-12, int b=2 and do int result = a>>>b, then result is 1073741821 can someone explain?
21 years ago