But I wanted to test the "thread" safe of this java code within coldFusion, since I am not sure how CF has there Code written. So to do this, i had a page store the Exception in memory and use it from two pages. But I wanted the 1st page to start first and end last, and the 2nd page to start last and end first. HMMM how can i do that. Well, I added a SLEEP routine to the pages. Of course, I didn't know how to do this, so I found this bit of code from Duncan Loxton's Blog.
<cfset thread = CreateObject("java", "java.lang.Thread")>
<cfset thread.sleep(5000)>
<cfset thread.sleep(5000)>
0 comments:
Post a Comment