Ruben Guillen

Greenhorn
+ Follow
since Sep 02, 2009
Merit badge: grant badges
For More
Geneva - Switzerland
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 Ruben Guillen

Welcome Mr. Janson

Thank you very much for writing this book. The subject seems very interesting. At work we developed and maintain a Java application that run on web technology. We use another application server for deployment, however it could be informative to learn about websphere and its potentials.

Regards.
10 years ago
Dear All

Passed the Oracle Certified Master, Java SE6 Developer certification,

I would like to thank everybody for the help during the preparation of this certification.

Regards.
13 years ago
Dear All

Thank you very much for the valuable information. I will allocate time to add data entry validation and some parameter validation to my project.

Regards.
Dear All

I am almost done with the development. I just have a question concerning the detail of the program. Do I have to make the application dumb-proof or just concentrate on the important functionality.

For example I allow the user to modify the customer field from the JTable directly, and I have not include any validation for the length of the entry, then the system just get the quantity of characters it needs and save correctly.

Any information is very welcome.

Regards.
Dear All

Thank you very much for all your comments. Now it is clear for me, I will follow your recommendations.

Regards.
Dear All

I would like to get guidance on when the locking event is triggered.

I have designed a UI where the user will have a table with the rooms available and beside each row there will be a update command button. when the user press the update button then the system will try to lock the record, then a separate windows will be displayed with the form-like displays of the selected record and allow the user to enter information of the customer, then there will be a confirmation of the change, but this is just to confirm the change and liberate the lock. What could happen is that the user opens the form-like window and stays there for hours without confirming or cancel and keep the lock of the record.
I was wondering if this implementation was used by others people also, or if you just tried to lock the record when the user has entered the customer information and try to confirm the saving, then user press save button and only then you try to lock and if the lock is available then lock, save and then unlock.

Another option I was taking in account is to allow the user to select several rooms for one update for one customer. Something like a check-box that will allow the user to select several rooms and then a separate update button that will display a separate window and also will lock selected rooms and in this separate window the user will enter only one time the code of the customer and update all selected records.

Any comment is welcome.

Regards
Dear K. Tsang

Thank you very much for the information. I will spend some time this week-end to create code based on this architecture.

Regards.
Dear K. Tsang

What I have in mind is to consider the service layer more like a mecanism to comunicate to Database Layer. when being in Stand-alone mode or client mode the service layer will be instantiate always with the UI, in this way the only condition will be just to use the correct implementation in order to comunicate with the database layer. Now processing will be at the database layer. Probably myself I just using incorrectly the terminology service layer, and most would be something like Service Locator J2EE Pattern and in fact the service layer will at the server.

Taking in account the said above then the instantaition of modules will be as follow:

Mode default (Stand-alone)
init Client
init Service Locator with searching of services through stand alone configuration.
init Service layer
init Database Layer

Mode Client
init Client
init Service Locator with searching of services through Network
init Network for client

Mode Server
init Service layer
init Database layer
init Network for server

Now it is more clear I think.
Dear All

I would like to have your feedback on the architecture of my project.

I decided to have the following layer division, see attached file.

Also the instantiation of the modules will be as indicated below:

Mode default (Stand-alone)
init Client
init Server
init Service with Stand-alone implementation

Mode Client
init Client
init Service with Network implementation
init Network for client

Mode Server
init Server
init Network for server

Comments are welcome.

Regards.

Dear All

Thank you very much for the valuable information. During the past week-end I reviewed all my possibilities and finally I decided to attack the project with a 80% coding approach and 20% design.

I took the decision to cover the project using the following best practices from RUP.
- Develop Software iteratively
- Visually model software
- Continuously verify software quality.

How exactly I am going to apply them in the context of my project, I can not tell yet exactly. but so far I started coding something on the Data.java class and drew some ER diagrams (even if I only have one table) and one class diagram for the DBMain.java and Data.java and related Exceptions. as a starting point.

During this week I am plannig to create a screen design and then start coding something at the UI level and later write some test classes.
Regards.

Dear Nick

Please give a look to class Random, it is related to half the solution of your problem. method nextInt(int n) will allow to simulate the throw of coins.

Then give a look to for statement. It completes the other half part of the solution.

Regards.
14 years ago
Dear All

Last Sep 14. 2009 I passed SCJP 6.0 with a 91% score. Initially I though that it is going to be hard to prepare myself, but with discipline and a lot of commitment I managed to do it. Thanks to K&B book also, the Learning Key software help me a lot to prepare my action plan and methodology to attack the exam.

Regards.
14 years ago
Dear Tim

Please give a look to the Collection Framework for information about existing Collection Classes.

If you must use any implementation of List interface, probably the best approach would be to use ArrayList class instead of LinkedList.

Otherwise you could think of use a HashSet which will allow better performance than a List. Only consideration is the implentation of a good hashCode() method.

Regards.
14 years ago
Dear Harinath

I would recommend that you address this question on the Servlet forums.

In order to advance with you problem. Keep in mind the following:

1) In order to execute you servlet you will require to deploy on a Servlet Container. You already has Tomcat, which is a Servlet Container.

2) You will need to create a web descriptor to register you servlet (web.xml)

3) deploy you servlet application on Tomcat and provide the correct URL to access you servlet.

Read the following link to get an idea of what you trying to do here

Regards.



14 years ago
Dear Harinath

Just as background, Java needs to have all necessary classes during compilation time, the CLASSPATH is important in helping the compiler finds all necessary classes. Haven said this, the there are two things to take care of:

1) Get the right library with the classes you need (You already ask this question). As indicated in Java website you can get the reference implementation downloading the Java EE 5 SDK. Another option is to get a Servlet Container as Tomcat

2) Set your library on the classpath in order your compiler to find it.
something like CLASSPATH=%CLASSPATH%;c:\lib\servlet.jar

Regards.

14 years ago