Re: Release a CF Java Object
I think you could do something like: Which should assign java null, allowing the object to be collected by GC. > Please be kind -- I am JAVA illerate. > > I am creating workbooks using POI HSSF. Here is a code snippet from a > page: > > HSSFWorkbook")> > > create and fill workbook sheets with data.. > > context = getPageContext(); > context.setFlushOutput(false); > response = context.getResponse().getResponse(); > out = response.getOutputStream(); > response.setContentType("application/vnd.ms-excel"); > myWorkBook .write(out); > out.flush(); > response.reset(); > out.close(); > > > I found the cfscript code out on the web but don't quite fully > understand it all. > > What I'm concerned about is releasing objects properly so they can be > immediately collected by the JVM garbage collector. I know that > closing the "out" object will release it but should I also close the > response and context objects? And how do I release the myWorkBook > object? I don't want it hanging around if the user decides to go to > lunch. > > Any insight would be greatly appreciated! > > Warren Koch ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;207172674;29440083;f Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:316720 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Re: Official ColdFusion IDE announced
>Ben just announced it. Sign up for access to the beta (or whatever) at >http://labs.adobe.com/wiki/index.php/Bolt I think it's a shame that the makers of ColdFusion make use of php as their Wiki. ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;207172674;29440083;f Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:315554 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Squid and CF
I have recently updated some servers from older Ubuntu 6.06.1 LTS servers using CF7 and Squid 2.5.stable12 to CentOS 5.1 with CF7 and Squid 2.6.stable6 (CentOS is basically RedHat RHEL). My problem appears to be: our homepage has a small iframe, user can click a Login link, and it pops a login box. Once a valid username/password combo is entered, it basically reloads the homepage, and the link to Login changes to Logout, signifying that the login was successful. (That's how it's supposed to work.) With the new configuration, that particular piece of the puzzle is no longer working. I have tested the server's functionality, and all other processes seem to work just fine. So, the one big thing I see as different is the new Squid (which had some some fairly significant config file changes from the 2.5). If anyone else has run into anything similar, I'd love to hear from you. Rand Thacker ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;203748912;27390454;j Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:309170 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Tracking down server issues MX 7
My company has a homegrown eCommerce solution, shopping cart. We run several linux CF MX7 servers behind a Cisco CSS load balancing appliance. A little setup before the question: normally, we receive on average, between 25-50 orders per hour. Every once in a while, we get these breaks in our order patterns (yes,it's vague, but I'm talking like 3 orders in one hour where we'd normally get 20). Management is all over our IT team to find out why these breaks happen. I am able to look at the Cisco appliance and see average number of users on each cart, I can look at the load on the linux web/CF servers using top (just to see if they're loaded down). The carts seem a little slow, but THAT much slower than normal. **My real question, after all this setup: what kind of tools, services, software could one use to look deeper into the CF server processes. FusionReactor? More? We need to be able to definitively log information as baselines, and prove to management that it's not our servers or necessarily our code. If it is the servers or code, then great, we'll fix it if we know where to look. I'd love to hear suggestions or even references of people that have experience in tracking this stuff down. I need help. Thanks in advance. I can give more details, but I have a feeling we need a deeper look into the CF MX 7 servers to see if memory/locks servers restarting, etc. ~| Download the latest ColdFusion 8 utilities including Report Builder, plug-ins for Eclipse and Dreamweaver updates. http;//www.adobe.com/cfusion/entitlement/index.cfm?e=labs%5adobecf8%5Fbeta Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:292913 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Don't quote me on this
I have a form that allows the user to edit data in the database. Let's now say that data looks like this: 14'6" cable Now, how does one handle the FORM element INPUT TYPE="text" with a prefilled value in here? value="#data#" will only show: 14'6 in the text box. value='#data#' will only show: 14 in the text box. Am I supposed to double-up the quote marks or something? Seems like people should be running into this all the time. Maybe I just am not googling for it properly. Any help is appreciated. Thanks - Rand Thacker ~| Enterprise web applications, build robust, secure scalable apps today - Try it now ColdFusion Today ColdFusion 8 beta - Build next generation apps Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:291217 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4