Rovas Kram

Ranch Hand
+ Follow
since Aug 08, 2003
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 Rovas Kram

Lu,

You're right page flow state checking doesn't seem to meet your needs. You must like Ritu's design - it seems good to me.
19 years ago

...if he was on two different pages at the same time you'd know he opened a window...



If you're using MVC, the controller could throw an exception if an invalid page flow was detected(i.e. the request says "I'm on page A" when the controller state says it's should be page C). This could disable one browser or the other.

Yes, maybe there's an easier way...
19 years ago
I making an educated guess here because I've used the JavaMail API and I don't think there's a concept of groups. When you send mail to a group using Lotus Notes, the group is converted to individual addresses by the Lotus Notes client before sending to the outgoing mail server. When you use JavaMail, there's no code to translate the group into individual addresses.

...let the server look after the message recognition and threading issues



I agree the web server would look after threading issues(you wouldn't have to start a new thread after each socket.accept()). But message recognition? If your message is contained in the xml attachment sent to a web server then it must be extracted by custom code. There are off the self xml parsers but you don't have to run a web server to use them.
I would think that most of the work on the server would be to parse the xml attachment. That being true, I don't see much effort in just writing a server from scratch that reads and writes using sockets. Unless maybe you want an appserver that supports load balancing, fail over, and/or serves up other web resources.

98% of the world population cannot answer the question. Are you one of them?



Does anybody know what the time limit is? There must be a time limit if only 2% of the people get it right. I got the right answer but I don't think I would have if this puzzle was given as a pop quiz in college.
19 years ago
You can add the following to your html/jsp. This will tell the browser to re-send the request rather than redisplay the results. You will have to decide what do on the server side in that case.


19 years ago
JSP
I believe that when you press the forward button, your browser is just redisplaying the results - this is normally the case unless you're using https. If the above is true, then your web server is not involved and neither are request attributes.
19 years ago
JSP
Is your question in the context of multiprocessor machines? When I first read this post, I thought the answer would be to assign an ip address to each server in the cluster but that seems to be too simple - I mean if you ever configured a server in Weblogic console, you know that you have to assign the listening address(ip). In that context, I'd think for performance reasons you'd add servers with unique ip addresses to your cluster.
19 years ago
Eric,

I read your explanation and it's basically the same as mine for finding the 3 fastest horses. For the fastest 4 horses, you work from the results of the same race 7 - maybe you've got it right.
19 years ago
Paul,

Your message is complaining that your doing stuff outside a transaction. Is it possible for you to change your code so that it runs within a transaction? I don't know how to do that with Websphere.

On a side note, I understand that transactions are used to enable a rollback of multiple tasks but I don't understand why it should matter whether those task are run in separate threads or sequentially. Can anyone out there answer that?
19 years ago
Hi Eric,

Assuming your race 7 is as I explained it for determining the 3 fastest horses, your logic is flawed because race 7 excludes horses one of which maybe the forth fastest horse. Your erroneous logic is why I prefer the process of elimination - seek to eliminate and the results will take care of themselves.
[ September 22, 2004: Message edited by: Rovas Kram ]
19 years ago
Hi Max,

I'm assuming that you're addressing me. My solution for determining the fastest 4 horses is similar to my solution for 3 horses. Except after 6 races, I can only reduce the number of horses down to 10. Again the winner of race 6 is the fastest horse so that leaves 9 horses. I run these remaining horses in races 7 & 8(round 2) and then winners of those races(2 horses) in race 9.

After the 9th race elimination:
1st - all horses after 3rd place in round 2
2nd - all horses after 2nd place in round 2

That leaves 5 horses. The 1st place horse is the 2nd fastest horse so I run the 4 remaining horses in race 10 to determine 3rd and 4th fastest horses.
19 years ago


Originally posted by Paul Ramsden

...getting warnings which basically say that threads in servlets are not J2EE conform and that support for threads may be withdrawn completely in the future.



I'm confused about what is meant by "support for threads". How can they possibly prevent you from running threads in a servlet? I believe it is common for servlets to call other objects that start mutiple threads themselves. This is good object oriented programming but I don't see how it's fundamentally different than the servlet starting multiple threads itself.
19 years ago