David Wiser

Greenhorn
+ Follow
since Jan 16, 2001
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 David Wiser

I would expect web services to use https for secure communication like other J2EE apps. The difference is that J2EE apps can be end-user apps, whereas web services are likely used as a back-end interface. This would mean a difference in the login method, but the principal is the same.
22 years ago
I don't believe that SOAP is tied to any specific protocol. Since it's XML, then it's text-based, which makes http and https convenient protocols. Also, since most Web Services are enabling existing interfaces (likely servlets) you'll already have the facilities to handle http.
22 years ago
My most useful patter so far in server-side Java applications has been Singleton. Thread-safe singelton classes have been key in developing efficient designs that make sense.
Also pay attention to the behavior of Thread.sleep(int) in your code. If you're running under Solaris, which uses 'native' threads, these threads are cooperative, not preemptive within the JRE. Under NT, you don't need to call sleep(), but under Solaris, you do in order for same-priority threads to get CPU time. If your threads aren't getting enough time, try putting a sleep(1) call in.
23 years ago