Edward Man

Ranch Hand
+ Follow
since May 16, 2000
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
In last 30 days
0
Forums and Threads

Recent posts by Edward Man

Ozone???,
Are you talking about BEA's products. What do you want to know - Tuxedo, M3, WebLogic, ...?
24 years ago
Aaron,
Did you try
Runtime.getRuntime().exec("notepad.exe");
or
Runtime.getRuntime().exec("c:\\winnt\\notepad.exe");
I believe Java in both NT and Unix/Linux will try to search all paths specified in the PATH environment variable. It is better not to put in paths in the exec() function.
The reasons I am aware of that you are not doing what were promised are:
1. The one who hired you knew very little about the technology that you are promised to use.
2. In a big organisation, ever your boss's boss can't say a word when the company wants to implement changes that affect the work that you were promised.
3. You were (an hopefully are) the best they could find (with the kind of moderate salary you asked for). They really wanted you so they tried to exaggerate the kind of work that is available to you.
My opinion is to bail out now (don't quit the work yet, just actively find another job).
24 years ago
Java Network Security has nearly everything for you to pass the Security part of the SCEA exam.
The Design Patterns and Contracts uses Eiffel instead of Java for code demonstration. You need at least some knowledge of Eiffel to understand it. It does use UML for all the GOF diagram. It is good. The code includes a lot of Design By Contract (pre- and post-conditions). So I expect the SCEA exam asks questions on Design By Contract. It also includes two chapters of case studies using Design Patterns for building Software Configuration Management and User Interface. The case studies may give you some insight on how the SCEA exam wants you to apply Design Patterns in the real world.
JVM is an implementation. In Windows, it is java.exe (and some DLL's, of course).
Every time you open a DOS window, and execute java [a class file] you are running a new instance of a JVM. In one DOS window, you can run a server. In some other DOS windows, you can run other java programs that talk together. Each DOS window will start a new instance of the JVM, so you can have multiple JVMs on one machine.
24 years ago
It was July 31 1999. Nothing changes in year 2000 yet.
Ray,
I try to explain a bit of what I posted. I am sure you know at least some of them. Anyway, it may be useful for others as well.
In the 70s/80s, methodologists proposed Structured Analysis to tackle the analysis and design requirements for procedural systems developed at that time. Structured Analysis mainly use Data Flow Diagams (DFD) to document the process flow. Systems were considered as data flowing from one process to another. That's why they use DFD for analysis and design.
At the same time people use Entity Relationship Diagrams (ER Diagrams) to model tables and their relationships (primary key, foreign keys, etc). They then use normalisation to split/combine tables into Third Normal Forms (an optimal form for relational tables). A lot of designers are still using it. (Erwin is the best known tool that supports drawing/re-engineering ER Diagrams). Even you use flat files or index sequential files, ER Diagrams are still useful to capture the semantics of the system.
As both DFD and ER Diagrams have data in it, you should be able to find the same piece of data in both kind of diagrams. If you find Shipping Charge in the ER Diagram but not in any of the DFD diagrams, then something is missing in the DFD, or one of the process in DFD that calculates the Shipping Charge is omitted. You can tell whether the architect is up to the task or not.
An architect should always consider non-functional requirements as well. If it is so hard to use and so slooooow in running, who's going to use it?
SDLC is System Development Life Cycle that includes everything from gathering user requirements, analysis, design, testing, implementation, maintenance, training.
I hope you can pick some questions to ask in the short interview.
Edward
24 years ago
One of the popular free XML parsers is IBM's XML for Java (XML4J). It supports both DOM and SAX. You can use it with servlet. You can get it here. http://www.alphaworks.ibm.com/formula/xml
My suggestion is to send the XML document (with DTD perhaps?) to the servlet and let the servlet parse the XML document and retrieve the data.
If it is for a legacy procedural system (COBOL with VSAM/DB2?), I suggest the following questions:
1. What SDLC methodology does he/she use (most of them use Strutured Analysis in procedural system)?
2. Does he/she know how to model a RDBMS using Entity Relationship diagrams and other methodologies?
3. Give a part of the new user requirements and ask the person to draw the Context Diagram and part of the Dataflow Diagrams.
4. Also try to model the ER diagram that involves the DFD diagram he/she draws.
5. Ask the person to explain how the ER diagram can support the DFD diagram and vice versa. You should spot any discrepancies in the explanation.
6. Ask the person to outline the functional requirements based on the user requirements.
7. What other non-functional requirements are necessary for the new system - user-friendliness, performance, batch job requirements, OLTP requirements, interface to other systems. Ask the person to elaborate based on the new system.
If the person is a hands-on architect, he/she should be able to answer all the above questions.
The following questions may also be useful, depending on your company's requirements.
8. Does he/she know how to manage change and configuration management? What tools were used before?
9. What databases were used (if the legacy system uses a RDBMS)? It yours is IMS (or other hierarchical database), ask whether he/she knows how to model a hierachical database.
[This message has been edited by Edward Man (edited June 05, 2000).]
[This message has been edited by Edward Man (edited June 05, 2000).]
24 years ago
Sun's JDK is developed for cross-platforms. It does not provide Windows specific features to read Windows's registry. You have to use Microsoft's Visual J++. It comes with Windows-specific foundation classes.
Alternatively, you can use JNI. Write the registry access functions as a DLL and export those functions. Make a native method call in the Java program to access the Windows registry.
Han,
If your client is a Java applet, you can't download a file to the client machine. The java security manager prohibits that. The client has to be a application. It can be written in Java, C, or whatever.
If there is a firewall in between, you cannot create a socket connection, the firewall does not allow that, unless your firewall administrator gives you a specific port no. The usual way is to use firewall tunnelling technique that uses GET or POST methods.
If you want to notify the server program from the C program, you can use socket connection (provided there is no firewall in between). Or use a pipe if they reside on the same machine. Or let the server program read the directory where the output file of the C program will store. It can read the file if it is there. It means some polling is needed.
This has to be done at the kernel level. Ask your Unix systems administrator to do it. Solaris can be customised by changing parameters without recompiling the kernel most of the time. However, the machine may need to be rebooted.
Let me expand the clue a little bit.
Any method that calls S1.display() method is statically binded to it because it is a private method.
If the job is for an Architect for a web application, ask questions like:
1. How many Web Application Architecure Patterns are there? How does he/she decide which pattern is suitable for the kind of web applications?
2. Can he/she draw UML diagram for those Web Applications that have HTML/JSP/ASP pages/Java Beans?
3. Does he need special symbols for the UML diagrams for web applications? What are they?
4. How does he make decision to split objects/functionality into client and server?
5. Can he translate a use case diagram into analysis using UML and collaboration diagrams? Ask him to draw the diagrams using an existing use case diagram from your application.
If you can get someone who answers the above questions fully, offer him/her a job on spot.
24 years ago
Preeth,
The first thing you should do is to write a small complete program that contains the progrma fragment you have question.
Compile it and run it if it compiles clean. Compare the result with the options there, you know what is the correct answer. To help you start, here is the program that you can compile. It does have compilation error.
<pre>
class TestAnswer {
public static void main (String args [])
{
TestAnswer tst = new TestAnswer ();
tst.testAns ("no", 5);
}
public boolean testAns(String ans,int n)
{
boolean rslt;
if(ans.equalsIgnoreCase("YES") && n>5)
rslt=true;
return rslt;
}
}
</pre>