Cold Fusion Communication

I want to find out whether coldfusion can talk with SVN ,the reason is I should be able to download the component from SVN to my local system modify and then add it again to back to SVN or directly upload a new component from my local system to SVN. Basically my cold fusion application sholud be able to talk with SVN to perform the above functions.

This is some dude named Dan's Prior Art, His site is dead but google gave a cached page...  I can imagine all kinds of mods and uses for something like this...
Cool ColdFusion and Subversion integration
December 5th, 2007 Dan Skaggs Leave a comment Go to comments
I recently decided to outsource my souce code management to CVSDude. I had been running SVN on my VPS that I have at Slicehost and that had been running okay.  However, I’m only good enough at SVN administration to get the server up and running and create a few repositories and there were other things that I needed to do with SVN that I frankly didn’t have time to learn how to do.
One of the things that I’d heard talked about that made life much easier was using Subversion’s various hooks to automate some things around different SVN events.  I emailed tech support asking how we could configure the “post-commit” hook to update the files on my VPS each time I made a commit into the SVN module.  The tech told me that they do this by configuring an HTTP call to a page (or script etc) on your server.  That page then triggers an SVN update of the specific module.
After hearing this, I began thinking about how to use CFEXECUTE to trigger the SVN update and was actually surprised how simple it was.  My VPS runs on Fedora Core 6, so, like any *nix operating system, you need to make sure permissions on the files are set so that the user which runs ColdFusion can write to the directories.  Once that was accomplished, all it took was a few lines of code and we’re ready to start receiving HTTP callbacks from CVSDude’s servers.
CVSDude structures their SVN URLs in the format http://username-svn.cvsdude.com/modulename (or https://).  All my modules are named in reverse domain order for the web site that it is for (for example, this one is ws.skaggsfamily.dan).  I had already checked out all my modules into a specific directory.
The HTTP callback from CFSDude’s server has 4 URL parameters that they send over: root (full path to module), author (user), revision and date.  So all I really had to do was grab the URL.root value and extract the name of the module, pass that to the CFEXECUTE tag and, voila, automatic updating of the module immediately after the commit.
There were only 2 gotchas that I had to figure out:
Put the full path to the svn executable
Add in your username and password to the string in the arguments attribute of CFEXECUTE
The code that I used is below.  I’m sure there’s more that I could have done with it, but this is a good start I think.
<cfif structKeyExists(URL, “date”) AND URL.date NEQ “” AND
    structKeyExists(URL,”author”) AND URL.author NEQ “” AND
    structKeyExists(URL, “revision”) AND URL.revision NEQ “” AND
    structKeyExists(URL, “root”) AND URL.root NEQ “”>
    <cfset module = replaceNoCase(URL.root, “http://username-svn.cvsdude.com/”, “”)>
    <cfexecute name=”/usr/bin/svn”
      arguments=”up /var/sites/#module# –username yourUserName –password yourPassword”
      timeout=”300″
      variable=”result”>
    </cfexecute>
    <cflog log=”Application”
      type=”information”
      text=”#URL.author#:#URL.root#:#URL.revision# – #result#”>
<cfmail to=”[email protected]
    from=”[email protected]
    subject=”Server updated successfully”>
The server has been successfully updated with your lastest changes. 
Details of the update are below:
Date: #URL.date#
Module: #URL.root#
Revision: #URL.revision#
Results:
#result#
</cfmail>
</cfif>

Similar Messages

  • Need to dial a phone number from Cold Fusion

    My boss asked me if there was any way that a phone number
    could be dialed from Cold Fusion. We have a website where at some
    point we want to just click a button and dial that phone number. My
    guess is that the conversation will then be carried through the
    computer's microphone and speakers and using the computer's modem.
    Let me know if there is a way, or what would be the easiest
    way to accomplish this, even if it has to be using VOIP, since
    that's an option for this project.
    Thanks!

    Is this an internal site or an public-facing site? If you are
    talking about using this tool in your intranet and you have a
    modern phone system in place, there may be an API to interfacing
    with your phone system. We use a TAPI interface to create a phone
    dialer so our callcenter agents can dial a phone number on their
    phone just by clicking on a link. I'm pretty sure there are a bunch
    of freeware/shareware TAPI COM objects you can use floating around
    the interwebs (If your phone system supports TAPI).
    If you are talking about a public-facing website, then I'm
    afraid I can't offer much advice other than to check out the Java
    Communications lead that Ted gave you.

  • How to register Rest web services in Cold Fusion 9 administration console?

    I am building a Rest web service using Cold Fusion 9 and Cold Fusion Builder 3 and now I want to register it on Cold Fusion 9 admin console, but I didn't see any option there as in CF 10 and CF 11 Data Services ---> Rest Web service. So, please tell me how to register my Rest web service in CF 9 either through admin console or through code?

    Simple answer: you can't.  REST services were a new feature released with CF10.  Alternatively, you can use a community-supported framework to provide REST services, such as:
    Taffy (a dedicated REST framework)
    FW/1 (an MVC framework with REST capabilities)
    ColdBox (an MVC framework with REST capabilities)
    -Carl V.

  • Cold fusion 9 500 - Internal server error.

    all of a sudden none of our cfm web pages work on a windows 8 server running iis 7 .... the server shows no errors in the event viewer .... occasionally functionality comes back w/o doing anything ...... cold fusion did have all the hotfixes updated a few months ago but i cant get to the admin page to give what the version is
    thxs

    Well if you got over your misplaced indignation for a moment, let's see:
    ColdFusion is what people will google for, so in the spirit of helping others who might have the same question as you later on, spelling it right will help the community.
    Jason's observation that you give us absolutely nothing to go on so it's basically impossible to help you is a fairly poignant observation, right? You do want help? Right, so here's some suggestions:
    Articulate your issue clearly, with sufficient detail that we can help you. Read this:
    http://www.catb.org/esr/faqs/smartquestions.html
    Secondly... being rude to someone like Jason who really is one of the most helpful people on
    these forums is a pretty stupid idea. And just serves to make you look a bit of a [profanity edited out]. Esp. with the caps lock on.
    But anyway, let's call that a false start. Give us the details of your issue, and we'll try to help.
    Cheers.
    Adam
    Message was edited by: m.m.murphy

  • What's happening with cold fusion?!

    first, this very page is throwing js errors in both ie8 and firefox 24.0  , i can't reply to any posts
    then, with all this flurry of security breaches on gov websites running cold fusion, do we have a comprehensive white paper showing how to plug all the security holes that were uncovered?

    Thanks Carl,
    when clicking the reply link on the forum, in ie8 i get:
    User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1;
    Trident/4.0; (R1 1.6); .NET CLR 2.0.50727; .NET CLR 3.0.04506.30;
    .NET4.0C; .NET4.0E; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729;
    InfoPath.3)
    Timestamp: Mon, 18 Nov 2013 15:26:45 UTC
    Message: Not implemented
    Line: 1616
    Char: 13546
    Code: 0
    URI:
    http://forums.adobe.com/4.5.6/resources/scripts/gen/220b1b06a29f901e1d24252ac800883e.js
    and in fireFox:
    ReferenceError: $ is not defined
    https://www.adobe.com/account/sign-in.adobedotcom.html?returnURL=%2Fcfusion%2Fmembership%2 Findex%2Ecfm%3Floc%3Den%5Fus%26nl%3D1%26ref%3Dlogin
    Line 70
    ion amariutei | [email protected] | 212-578-1011
    From:
    Carl Von Stetten <[email protected]>
    To:
    ion <[email protected]>
    Date:
    11/18/2013 11:19 AM
    Subject:
    what's happening with cold fusion?!
    Re: what's happening with cold fusion?!
    created by Carl Von Stetten in Advanced Techniques - View the full
    discussion
    Site seems to be working fine for me.  As to plugging security holes,
    there are two things you need to do:
    1.      Keep your servers updated with the latest patch(es).  If you are
    on CF10, use the built-in automatic updater.  If on CF8 or CF9, take a
    look at David Epler's Unofficial Updater project.
    2.      Follow the appropriate ColdFusion lockdown guide for the version
    you are running.
    For CF9:
    http://www.adobe.com/content/dam/Adobe/en/products/coldfusion/pdfs/910
    25512-cf9-lockdownguide-wp-ue.pdf
    For CF10:
    http://www.adobe.com/content/dam/Adobe/en/products/coldfusion/pdfs/cf1
    0/cf10-lockdown-guide.pdf
    -Carl V.
    Please note that the Adobe Forums do not accept email attachments. If you
    want to embed a screen image in your message please visit the thread in
    the forum to embed the image at
    http://forums.adobe.com/message/5851524#5851524
    Replies to this message go to everyone subscribed to this thread, not
    directly to the person who posted the message. To post a reply, either
    reply to this email or visit the message page: [
    http://forums.adobe.com/message/5851524#5851524]
    To unsubscribe from this thread, please visit the message page at [
    http://forums.adobe.com/message/5851524#5851524]. In the Actions box on
    the right, click the Stop Email Notifications link.
    Start a new discussion in Advanced Techniques at Adobe Community
    For more information about maintaining your forum email notifications
    please go to http://forums.adobe.com/thread/416458?tstart=0.
    The information contained in this message may be CONFIDENTIAL and is for the intended addressee only.  Any unauthorized use, dissemination of the information, or copying of this message is prohibited.  If you are not the intended addressee, please notify the sender immediately and delete this message.

  • Cold Fusion Upgrade

    I am currently using cold fusion 4.5, i need to upgrade to
    coldfusion 8
    Please let me know the codes developed in cold fusion 4.5
    works in 8.
    Is any tags & functions are depreciated in cold fusion 8

    http://livedocs.adobe.com/coldfusion/8/htmldocs/Tags-pt0_19.html
    There is also a Code Analyzer in the ColdFusion Administrator
    that you could
    use. Just download the Developer version of ColdFusion,
    install it, and run
    the analyzer.
    Ken Ford
    Adobe Community Expert - Dreamweaver
    Fordwebs, LLC
    http://www.fordwebs.com
    "vijay rajagopal" <[email protected]> wrote
    in message
    news:foigmf$8b8$[email protected]..
    >I am currently using cold fusion 4.5, i need to upgrade
    to coldfusion 8
    >
    > Please let me know the codes developed in cold fusion
    4.5 works in 8.
    >
    > Is any tags & functions are depreciated in cold
    fusion 8
    >

  • Cold Fusion / developer edition

    hey guys
    sorry to ask you this but it has been hanging over my head
    for a long period of time.
    I have been unable to get my mind around the concept of "the
    developer edition of Cold Fusion". from what i have learnt , i can
    use it locally only. Does that mean that i wont be able to transfer
    my cold fusion files onto a webhosting that supports ColdFusion??
    Am i expected to present "my license to ColdFusion" to my web
    provider every time I upload a website onto a webhosting?
    Please someone explain to me what happens when i upload my
    coldfusion-based website onto a webhosting. Will it stop working or
    will my code get corrupted??
    Cheers
    Maros

    Hi Maros
    There are a few of things you will need to be aware of when
    you move to the
    server. First, be sure the mapping on the server is the same
    as it is
    locally, this especially concerns CFCs. In Dreamweaver if you
    drag a CFC
    function onto a page Dreamweaver will map the dot path to the
    CFC including
    the folder your site is in within the ColdFusion8\wwwroot
    folder, naturally
    this folder doesn't exist on your server since the entire
    site is directly
    in your root folder. Be sure to address this before going
    live.
    Also, make sure you move your database to the server and set
    up the DSN,
    using the exact same DSN name you used locally.
    Finally, make sure your host supports the same version of CF
    as you have
    locally as well as the database if you are using MySQL or SQL
    Server. If you
    are using Access, be sure your host server is a Windows
    sever.
    Doing this should make for a smooth transition.
    Lawrence Cramer *Adobe Community Ace*
    Cartweaver.com
    ASP, PHP, and ColdFusion Shopping Carts For Dreamweaver

  • Cold Fusion is Dead

    After 12+ years of using ColdFusion, I am sorry to say that
    our company is saying "goodbye".
    1. Poor (to no) support (really poor) - this forum has 39
    people on it right now - compare it to SQLServerCentral - horrible.
    2. Memory leaks - everywhere you read - our servers are
    crashing weekly (at a minimum) after upgrading to Version 8 - big
    mistake - lots of headaches.
    Bottom line - Adobe didn't want Cold Fusion. They had no
    choice, Macromedia had already purchased Allaire. Cold Fusion is a
    "red headed" step-child in the Adobe house - even Adobe wishes it
    would just go away.
    Our customers DEMAND more from us than Cold Fusion can
    deliver.

    ToBeNamedLater wrote:
    >
    > I do agree with the support comment, though. There
    really is none from Adobe.
    > Of course, there wasn't any from Macromedia either, so
    nothing's really
    > changed. The user community is really the only venue for
    support.
    >
    I don't know if Adobe's support problem is ColdFusion
    specific. I
    remember even before Adobe acquired ColdFusion experiencing
    horrible run
    arounds and misunderstandings trying to get technical support
    for Adobe
    products. But there is definitely a lack of ColdFusion
    understanding at
    the initial support level.
    That is why I try to spread this posting by Ben Forta as much
    as
    possible. At least until somebody tells me it no longer
    applies.
    http://www.forta.com/blog/index.cfm/2007/10/9/ColdFusions-Dedicated-Account-Managers
    I know the last time we needed Adobe support for our CF
    products, we
    went straight to these folks and it worked like a charm.

  • Your Comments: iPlanet 6 & Cold Fusion

    Need comments from anyone running Cold Fusion on iPlanet 6 ((even 4.1x
    users) (Solaris 8/Unix)..
    May need to do this, I need to know from actual users, not vendors,
    about the performance or if anybody has a URL to a news article, etc...
    Have been told that performance is terrible... I need to verify
    this...
    Thanks...
    Jerry

    The problem is that the official response from Adobe is that they have deprecated ColdFusion from Dreamweaver 2014. They want ColdFusion Developers to move to CF Builder, but they are not going to make it a part of Creative Cloud so it will be a separate purchase. Adobe has basically abandoned the ColdFusion community, the community that built the demand for Dreamweaver. What's more, Adobe is not listening to those of use in the ColdFusion community and reinstalling the workings of CF back into Dreamweaver. What seems to be the view from some in the know is that CF Developers should use CF Builder to code the site, DW to design, and another program to FTP the files. Whereas before all we needed for more than 10 years was Dreamweaver. I am currently looking for another editor that will replace DW as well as Photoshop so I no longer have to deal with Adobe. If anyone knows of something, let me know and I will gladly spread the word after testing. Even before all this I dealt with Adobe on many issues with the ColdFusion server not handling code correctly. Their excuse was that they incorporated 3rd party code and couldn't always guarantee it would work correctly. My problem is I didn't pay the 3rd part developers hundreds of dollars for a ColdFusion license, but Adobe and they should make sure the code worked. I am completely baffled by Adobe and their self destructive ways of doing business. Unless they change their ways soon, they will be losing a lot of business based on all the posts I have read on various Forums.

  • How not to use Cold Fusion and Java

    Overview
    This write up is intended to give java developers that are
    developing ColdFusion applications some beneficial information:
    things that are not documented.
    Scenario
    The company builds enterprise class web application software
    for fortune 500 companies. It had purchased a CF 7 based product,
    had and existing proprietary J2EE based product, and needed to
    integrate the two while meeting a host of new requirements. These
    requirements were based on delivering a better user experience,
    faster / cheaper integration, increased flexibility /
    configuration, useablily, decreasing maintenance costs, the ability
    to deploy in either install or ASP models. An initiative was
    started to create a new framework that integrated the best of each
    technologies. Tactically, this meant that we were to build a hybrid
    CF and java application: one that used building blocks (decoupled /
    cohesive components) that would allow applications to be rapidly
    assembled, configured and deployed. This made sense on several
    levels, the team was composed of Java and CF developers, the CF
    rapid application development was very productive, there is great
    functionality delivered in the CF platform and initial performance
    tests showed no cause for alarm
    The agreed upon design, based on requirements, and analysis
    by both the CF and Java staff has us using CF in the presentation
    layer, using a CF based MVC, use of CF based web services. The MVC
    was deployed using CFC inheritance for model objects and views made
    use of CF custom tags. The internals of the application, used a
    rules engine, some proprietary java, ORM, and other J2EE
    technology. The initial performance of the system was reasonable.
    We pushed on with product implementation.
    Then it was time to load test the application, and tune it.
    Under load the response times were orders of magnitude slower,
    sometimes the pages even timed out.
    Armed with our profiler, oracle execution plans and we
    charged ahead addressing issue after issue. Note that we took
    meticulous care in tweaking the active thread pool and ensuring
    that our CF setup was tuned for our application. None of the
    observations here are a condemnation of the language; rather they
    are aspects that, when considered together, not conducive for
    building integrated java and CF frameworks that use a structured /
    OO programming practices. Further detail can be provided on
    request.
    CFC inheritance should be avoided - resolution of variable
    scope is expensive even if properly declared.
    Since CF creates a class per method under the covers call
    stacks become very large, especially if used in a loop. This is
    nominally exacerbated by CF calls necessary to set up for the
    method call (String.toUpper()).
    Nesting of loops and if statements should be kept to a
    minimum - the conditional for each lookup of logical operator like
    LT, GT are synchronized. Under load this results in thread waits.
    Jrun has as single thread pool - both http and web service
    requests use the same pool. Under load this leads to thread
    deadlock. There are work arounds, but they are painful.
    Recursion should be avoided - we had a few recursive routines
    and these had to be rewritten.
    Custom Tags - should be used sparingly - each custom tag
    makes a synchronized call to the license server - (This may be
    fixed in CF 8)
    Summary
    In the end we got the performance to reasonable numbers, but
    we ended up moving some code to java (Custom Tags) and getting rid
    of 'good programming' practices (Inheritance, loops, etc), mandated
    proper variable scoping for those things left over. We prototyped a
    sans cold fusion implementation and had an order of magnitude
    improvement in performance and number of requests served per
    second.
    The lesson? Use Coldfusion in its sweet spot: make a query,
    iterate over the results and format for display. Extensive use of
    structure programming techniques or OO CFCs should be avoided: they
    will work but under load - but are better as a prototype. Building
    frameworks in CF? Think twice, no three times, and, if you must, be
    minimalist.
    Text

    interesting aslbert123,
    Not that I doubt you, but could you answer some questions
    about your implementation that was so slow:
    1.) Did you put your CFCs in the application or server scope?
    2.) Were you initializing your CFCs, via CreateObject or
    <cfinvoke>, on every request?
    3.) Are you sure that you were properly Var'ing every
    variable in your methods? (people typically forget about query
    names and loop iterator variables)
    4.) Could you give examples of how your inheritence was set
    up?
    5.) For CustomTags, did you call them the old <cf_tag>
    way or the newer, better-performing <cfimport> way?
    6.) How did you connect CF to Java exactly?
    Thanks,
    Aaron

  • How do you determine what version of PHP is on the cold fusion server

    I am trying to find out what version of PHP is on my cold
    fusion server, how do I do this? Does coldfusion come with
    PHP?

    In the C:\Windows folder, locate the file called php.ini and
    open it in Notepad.
    <?php phpinfo() ?>
    I answered it myself. Maybe it can help someone else.

  • Modifying cold fusion script not picked up by iis

    We are running coldfusion 7, using iis6 on windows 2003 server. I am not a cold fusion developer and this is the only coldfusion script we have created by a previous developer. I needed to make some simple modifications to the script, including a change in the title. After having restarted IIS the modified script is still not showing the new title. What do I need to do for iis to show the changes in the cfm file?

    It's in the CF Administrator, which is separate from the JRun Admin Console. You can often get to the CF Administrator with a URL like this:
    http://your_server/CFIDE/administrator/
    Dave Watts, CTO, Fig Leaf Software
    http://www.figleaf.com/
    http://training.figleaf.com/
    Fig Leaf Software is a Veteran-Owned Small Business (VOSB) on
    GSA Schedule, and provides the highest caliber vendor-authorized
    instruction at our training centers, online, or onsite.
    Read this before you post:
    http://forums.adobe.com/thread/607238

  • Cold Fusion in a generic thread pool and enabling JAVA don't mix

    I've got Cold Fusion MX installed on a server running Sun One 6.1. I ran into a problem trying to enable JAVA (for servlet support) which I had previous disabled because I didn't use it.
    Well, when I went to enable JAVA on the server last week, the service wouldn't restart and the error logs gave me no indication of the problem.
    Through a tedious trial-and-error process I've found that having Cold Fusion running under a generic thread pool while trying to have JAVA (the j2ee plugin) running under Sun One simply doesn't work (for whatever reason).
    Once I killed the pool, everything runs fine.
    Does anyone happen to know why this is? I keep CFMX under its own thread pool because there are certain elements to CFMX that aren't wholly stable and can result in CFMX crashing. If it crashes, the process keeps accepting requests, but never processes them. I'd like to keep the native thread pool free to keep accepting non-CFMX requests even when CFMX crashes.
    Thus the separate thread pool for CFMX.
    But now I can't run CFMX in a separate thread pool with JAVA enabled.
    Anyone have any insights into why this is?
    Thanks

    Two things. Firstly, it's better to use     private static final Object classLock = new Object();because that saves you worrying about whether any other code synchronises on it. Secondly, if you do decide to go for the delegation route then java.lang.reflect.Proxy may be a good way forward.

  • How to convert/download videos embedded with cold fusion?

    Does anyone know of a free video conversion software that will convert and download online videos embedded with cold fusion ("cfmid=?") format/extension?  I tried a few online sites and they do not support that format yet.   Please help.  Thank you so much!
    Judy

    Actually COLD FUSION was a hoax a few years ago. COLDFUSION is the app.
    If you need content from a web site, talk to the developer.
    fwiw - Since ColdFusion is an Adobe app, you should try asking your question on that forum. This one is here to primarily support Shake.
    Have fun.
    x

  • I'm unable to connect to database thru cold fusion

    I'm unable to connect to database thru cold fusion. it
    sometiems give me an error that your uname is undefined , soemtimes
    it gives ur index page not found so i created index page also but
    still im unable to connect to database n update my records..plz
    help me out..im a fresher in cold fusion

    I am having a similar problem having CFMX 7.02 verify my SQL
    Server 2005 Data Sources.
    I am using the sa account for CF to access the db's. But i
    get the following error:
    Connection verification failed for data source: myDatabase
    java.sql.SQLException: [Macromedia][SQLServer JDBC
    Driver]Error establishing socket. Connection refused: connect
    The root cause was that: java.sql.SQLException:
    [Macromedia][SQLServer JDBC Driver]Error establishing socket.
    Connection refused: connect
    Every role in SQL Server has the sa grantor Grant enabled. I
    can also login to SQL Server with the sa account w/o a hitch.
    I don't know what else to do. The server information is set
    to the ServerName port 1433, datasource name and database name are
    the same as the database name in sql server, and the username and
    password are set for the sa account.
    Thanks!

Maybe you are looking for

  • Requirement in app

    in app when you are making payment to ur vendor through write transfer ach payment you need to send mail to vendor stating that your payment has credited to ur bank account how can i do this?

  • Request parameter are not stored in database through Java Bean

    Hi, I want to store the request parameter in database through Java Bean.Allthough program are properly run but value are not store in DB. Here My code: Login.html:<html> <head> <title>A simple JSP application</title> <head> <body> <form method="get"

  • The windows are larger the screen - how do I adjust (sys pref display doesn't do it)

    The windows  are larger than the screen. I don't know why this happened.I can get to the top, bottom, or side by placing the mouse there.

  • USER Hook for Changer Manager function

    Dear All, I need to know that is there any user hook for Manager Self Service -- Change Manager function for employee. If yes then please give me the module name/id for the user hook. If no then how can I set custom validations on this page. Regards.

  • Do OSB 11.1.1.5 have a Socket Adapter

    Hi All, Im working on a project where i need to use a socket adapter with oracle osb 11.1.1.5 - my question is: 1. Do OSB 11.1.1.5 have a socket adapter? 2. How do I get a socket adapter for OSB 11.1.1.5