Mike Birken

Greenhorn
+ Follow
since Dec 28, 2001
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 Mike Birken

I want to learn about EJB's using JBuilder 7. I downloaded the JBuilder 7 Enterprise trial and the Borland Application Server 4.5 trial from Borland's site and installed them. I selected 'Configure Servers' from the 'Tools' menu and enabled BAS 4.5. However, when I select 'New' from the 'File' menu, the EJB Bean Designer and some of the other EJB icons are grayed out. How do I enable JBuilder 7 and BAS 4.5 to work together properly? Under 'Enterprise Setup' in the 'Tools' menu, I do not see a tab for the EJB containers. Thanks for your assistance,
Mike
Has anyone figured out a good way to test an application that has multiple threads that share resources? For example, I may write a method that contains a synchronized block to prevent a second thread from modifying a resource used by the calling thread. What is a good way to create a test case that will try to see if the resource is shared properly in the method? Also, I have heard of JFCUnit and other Swing unit testing programs. Are they any good?
- Mike
17 years ago
Hi--
I obtained a servlet from a book that allows me to upload files from a web browser to a web server; however, I want to write a piece of code that acts as the web browser now. I researched how the HTTP protocol handles file uploads, but my servlet won't accept my browser upload immitation. Anyone know how to do this?
- Mike
18 years ago
I tested out some of the samples from the JMS tutorial on Sun's site and I got some strange results. The first example in there creates a queue, a sender, and a receiver. The sender enqueses 10 messages (strings "1" through "10"). And the receiver dequeues and displays everything it gets. I was impressed with the fact that I can enqueue 10 messages and start the receiver later and still get my 10 messages back. Then I tried this: (1) run sender (i.e. enqueue "1" through "10"), (2) run sender again (i.e. enqueue "1" through "10"), (3) run receiver. This time it printed "1", "1", "2", "2", ... , "10", "10" instead of "1", "2", ... , "10", "1", "2", ... "10". Why isn't the order of the messages enqueued maintained?
- Mike
18 years ago
Do I need a web server to make an application into a web start application? The advantage of applets were that I could just place them with my html files on someone elses server and it would dish them out just like any other file. Is there any way I can use web start with the account that came with my DSL connection (very limited account that I don't have direct server access to) for example?
- Mike
18 years ago
Anyone care to comment on strictfp?
- Mike
18 years ago
To notify/wait on an object, a thread must obtain the monitor first (i.e. it must synchronize on the object). Before you modify the object, you probably need it synchronized anyway.
- Mike
Numberical literals without a decimal point are assumed to be ints. Numberical literals with a decimal point are assumed to be doubles. To force a numerical literal to long, end it with an L (e.g. 100L). to force a numerical literal to a float, end it with an F (e.g. 100.0F).
- Mike
18 years ago
What is the difference between a heavy weight Swing component and a light weight Swing component?
- Mike
18 years ago
One strange thing that I noticed with the policy files is that RMI seems to run a lot faster if you use a policy file that sets all permissions (no security). More restrictive policy files seem to require more time to establish a connection and more time to transmit messages. I am running these tests under WinXP with Java1.3.1 and I made sure no errors are thrown using the more restrictive policy file. Has anyone noticed this?
- Mike
I am looking for a functional testing tool that can automate the testing of Swing GUI's. I want to add as few as possible (ideally nothing) test hooks to a frame or dialog as I develop it. And, I want to be able to test those windows outside of the system via a script. The script may be automatically generated by recording mouse clicks and key presses. And, then edited as needed when the dialog is developed and modified over time. It should also be possible to run some scripts against the real gui (meaning the entire system is running). I am sure scripts can be developed to repeat mouse clicks and keyboard events, but I am not sure how I would verify that the gui is behaving correctly. I suspect test hooks in the production code may be necessary. Does any such tool already exists and if not, what would be the basis for verifying that the gui works so that I can start developing such a tester from scratch? Perhaps JUnit can even be used somehow for this purpose, but I doubt it. Any ideas? Thanks,
- Mike
The assignment asks for an exact match of the Strings. Do you think I can use equalsIgnorCase to avoid a search failure if the user enters the correct String in a different case?
- Mike
The String does not include any double quotes. The assignment might show double quotes around it to indicate that what you are looking at is a String (i.e. the contents of the String starts after the left quote and ends before the right quote). Interesting question,
- Mike
Why didn't they just ask for host ort instead of 'DNS name' ort? I intend to let the client enter this information in a window resembling a setup wizard and I would really prefer to request host and port. If I request DNS name, what kind of translation is required to turn it into host (assuming that it is not host to begin with)? Also, do we need an RMI codebase or can I just assume my stubs are located along with my other code? Thanks,
- Mike