Sharing ColdFusion Components (CFC)
I have several ColdFusion Components in a Flex Library Project which I would like to share with several Flex / FB projects. is there a practical way of being able to to this?
Right now I includ the CFCs directory in the 'Flex Build Path/Additional source folders outside the main source folder' of each project, this is OK except that Flex puts the CFC's in the root directory of the debug folder which becomes a mess. Does anyone know of a better way of doing it, so that I can share my CFC components in a well organized way and maybe put them in a folder like 'cfc_components'.
Any ideas, suggestions, or tips would be greatly apreciated!!!
Thanks for the input and insight, it's very much apreciated!!!
You're quite right that you don't really share CFC's, I misused the word. I was hoping that I could've kept the CFC's in a library project and Flex (Ecclipse) would've been able to create links as it seems to do if you include their directory in the source path, but keep them in the same folder they're in and put them under the src folder instead of the root directory which is what it seems to do. I was hoping I had missed something and be able to do what I wanted to do.
The reason I was hoping to keep the CFC's in a library project is that eventually I want to shared them with others.
What I've been doing is put the CFCs in a main project application and the other applications, which are sub-modules, compile to the main applicaton's debug folder. clunky... messy... perhaps but it's been doing the work. Like I said I would like to find a way to shcare my CFC's without also sharing my main app's files.
Again thanks for the input.
Similar Messages
-
CF8: Cluster session-based ColdFusion Components
Using CF8:
Is it possible to store ColdFusion components in the session
scope when using clustering and session failover?
Is it possible to replicate their state across a ColdFusion MX
cluster?
I remember that with cf6 and cf7 it wasn't possible (
http://www.adobe.com/devnet/coldfusion/j2ee/articles/endtoend.html).
I think that the CFC serialization is the answer: but I'm not sure.
thanks in advance
federicoquote:
Originally posted by:
Grizzly9279
My understanding is that CF8 supports CFC serialization now,
which implies that CFCs stored in session should successfully
replicate across cluster nodes.
yes! Finally it's possible!
http://livedocs.adobe.com/coldfusion/8/htmldocs/help.html?content=clustering_6.html
federico -
You shouldn't use Coldfusion Components because...
Are there any good answers to this question? My boss refuses
to let me use Coldfusion Components because, according to our
sys-admin:
"using the components allows you to extend internal
ColdFusion functions. This has been identified as a security
issue."
And because of this, he believes that he would have to either
not allow them or:
"Define a security Sandbox for each developer. The Sandbox
defines which components can be used and which cannot."
I have tried to read up on this issue over the past few days
but am just not finding the information that I need to address his
problems.
Any suggestions?>>My boss refuses to let me use
Coldfusion Components because, according to our sys-admin:
"using the components allows you to extend internal
ColdFusion functions.
This
has been identified as a security issue."
Your boss has no clue , your sys admin even less.
There is NOTHING you can do in CFC that you can't do in a
cfml page. CFC's
are more a logical division for the developer and offer no
more or less
security risk. By your boss/sys-admins logic, you shouldn't
even be using
CFML pages. If you can do damage to security with a CFC, then
you can also
do it with a standard page.
Ask your boss what particular function or action can be
performed in a CFC
that can't be performed in standard page. There are none. A
cfml page and
CFC are really the same thing (even compile down to the same
thing)
The only thing I can think of is that are being misled by the
word
'component' and are thinking more along the lines of MS
components that were
used with traditional ASP. Some of these components caused
security
concerns. But CFC's are not the same kind of component - this
is just an
unfortunate naming coincidence. They should just of called
them CF Objects
or CF Classes. Then your boss/sys-admin would never have
blinked an eye or
been concerned about using them.
Educate them.
"quaidbrown2" <[email protected]> wrote in
message
news:[email protected]...
> Are there any good answers to this question? My boss
refuses to let me use
> Coldfusion Components because, according to our
sys-admin:
> "using the components allows you to extend internal
ColdFusion functions.
> This
> has been identified as a security issue."
>
> And because of this, he believes that he would have to
either not allow
> them
> or:
> "Define a security Sandbox for each developer. The
Sandbox defines which
> components can be used and which cannot."
>
> I have tried to read up on this issue over the past few
days but am just
> not
> finding the information that I need to address his
problems.
>
> Any suggestions?
> -
ACS 4.1 Shared Services Components problem
I'm not able to edit the Shared Profiles Components for CiscoWorks in ACS. Error:
Failed to edit Ciscoworks Campus Manager.
Reason: You have insufficient privilege to Add/Edit Ciscoworks Campus Manager.
I logged in with admin account in ACS with all permissions. When opening the properties of my admin account, all the CiscoWorks rights are deselected. I can select all the rights, apply the changes, but the rights are not applied !Seems like it is a windows AD-problem. every 30 min the server gets an gpoupdate (depending on who is logged in to the server) and if i have unchecked the box "use proxyserver" (IE - Options - connections - Lan settings) this update changes everything back to default, ie checks that box back. So next step: talk to some windows-people.
thanks anyway!
/lina -
Resetting/Deleting Shared Profile Components
we have ACS4.1 and LMS2.6
LMS registered all apllications on ACS and was configured in ACS mode.
There was a test installation of Cisco Unified Operations Manager and it also registered all aplications on the same ACS server.
After this we have RME authorizations problem. User having all permissions in Shared Profile Components for RME can not access RME jobs.
So the quiestion is - Can I somehow delete or reset Shared Profile Components? I want to register LMS applications again, but can not see how I can delete Shared Profile Components. I can only delete any roles in it.This chapter addresses the CiscoSecure ACS for WindowsServer features found in the Shared Profile Components section of the HTML interface
http://www.cisco.com/en/US/products/sw/secursw/ps2086/products_user_guide_chapter09186a0080205a4a.html#wp737145 -
In JDeveloper, I created a project that contains a business component package called "common". This package will contain reusable BC4J components that I want to be used by other projects. What's the best way to do this? Would I just deploy this "common" business component package to a JAR file? Would I deploy it to a JAR file and then bring it into other projects? If so, how can I have an application module in another project recognize these reusable BC4J components so that I can use them? Any best development practices are welcomed.
--QuocSharing components is a good design pattern to follow. And from your description, you are already on the right track. Put your shared components in a single project, then deploy the class files to a jar file. In your other projects, add a library containing the jar file(s) that you just created containing your shared business components. Then in the context menu for either the jpr or jpx file, there is a menu item called "Import Business Components..." In the file dialog that comes up, navigate to your jar file and select the package xml file and click ok. This should bring the shared components into your new project, which you can now use freely.
Hope this helps.
Ray -
Coldfusion Components Visible in Web Browsers
I'm having a coldfusion component problem and unfortunately I
have not been able to find any information on it. Any help anyone
could give me, including some different keywords I could try
searching for answers with, would be greatly appreciated. My
website is on a shared hosting system and if I type the url of my
cfc's into the browser all of the text that is not inside
coldfusion tags (all of my sql statements in this case) gets
displayed in the browser. Are people usually supposed to be
redirected to the coldfusion administrator login rather than seeing
the page? Does anyone know if this might be a coding problem or
something that some hosting providers disable? I've had a hard time
trying to find information about this and I'm not too familiar how
the Coldfusion Administrator handles the display of cfc
files.Soccermagu,
"Apache server doesn't know where to redirect .cfc file"
makes little sense to me. All your provider has to do is configure
Apache and Coldfusion properly. Ask your provider to go through the
following steps.
Configuring
Apache for Coldfusion MX on Windows
Configuring
Apache for Coldfusion MX on Unix
Have you ruled out the combination MX 6.1 and Apache 2.2?
Coldfusion MX 6.1 does not support Apache 2.2. Still, there are
ways. Here's
one
way to make MX 6.1 and Apache 2.2 work together. -
Custom Components (CFC's)
So I'm working on an app that requires 2 CFC's in order for it to function correctly. The first one is sosXML (http://sosxml.riaforge.org/) and the other is cfcUnit. So I downloaded both zipped files and dropped them in the root path of the website's directory. However I noticed that when I happened to open Dreamweaver, in the Component tab these CFC seemed to have a problem with them. It shows a red circle with a line thru it and says "There's a problem with this CFC".
So I just wanted to make sure I'm going about the right way of installing the CFC to my website.Well, did you un-zip them?
-
Creating ColdFusion components
This question was posted in response to the following article: http://help.adobe.com/en_US/ColdFusion/10.0/Developing/WSc3ff6d0ea77859461172e0811cbec0ac4 a-7fe9.html
The CFScript function statement does provide options to control access to the method, provide metadata, specify a return type, or control generated output.
-
Sharing business components across projects
i have created a project in jdeveloper that contains all my required entity and view objects. this project has been placed on a central machine. during the development phase, all the team members need to use the same project and make changes to the entity/ view objects. but the changes made by one are overwritten when the same project is saved by the other member. is there any way to get around this problem.
also, i created an entity and view object on one machine and copied the xml and java files to another machine. here i tried to include them in a new project but got errors and was unable to do so. what are the steps to be followed to include existing entity/view objects in a new project.If you are looking at extending your existing business components check out customizing applications in the help system
Open help system
Select Developing Business COmponents
Select Customizing your applications
raghu -
This question was posted in response to the following article: http://help.adobe.com/en_US/dreamweaver/cs/using/WScbb6b82af5544594822510a94ae8d65-7874a.h tml
Keep in mind that it's till there... for now. According to their site, CF support in DW is deprecated, and who knows if it will continue to exist?
And it's still there, I suspect, only because totally ripping it out would have been too much extra work. And who knows if, say, any new tags added in CF10 will be added to the code coloring and hinting?
Personally, I consider it sad for Adobe to fail to support their own technologies, and it's somewhat telling that it seems to be the direct opposite of the way they went when they wanted to push Flash, and made sure EVERY product supported it in some form or another. Flash, apparently, was important. CF? Not so much.
I also find it somewhat odd that they seem bent on making DW some sort of "pure" HTML product (though they kept PHP support). DW, Animate, Edge Code, Reflow, Inspect... how many HMTL-only products do they need?
I have a CC subsciption primarily for DW and PS. Keep this up, and it's just PS. And since I don't do print work, or need CYMK support, it's entirely possible I can find other tools (PIxelmator) to do the job. -
Issue modeling data from Coldfusion cfc
Problem: Configure return type in Flash Builder (using with Coldfusion) Mysql 5 driver (testing using localhost with CF also acting as the web server)
I have tried going thru the steps presented in the video presentations for hooking Flash Builder to Coldfusion query data. I provide a name for a Custom data type, provide variables (that are optionally required by the CFC), and then proceed. The operation comes back with the following message.
The operation returned a response of the type "Object"
You may either update server code to fix the return data or CLICK OK to set "Objecdt" as the returntype of this operation
In all of the videos I have watched, Flash Builder auto-magically introspected the table that was being called and knew the data types of each piece of the data returned by the query. In my case, I get the above message and cannot proceed.
CFM Testing
I have tested the query by calling the CFC method via a coldfusion page and dumping the result. Everything is works with that.
Action:
I would like to get past the problem and learn what if anything I am doing wrong with this. Your input is appreciated. I have been learning CF and am getting pretty comfortable with that product. I would like to move forward with Flash Builder. I have some basic knowledge of Flex 3.
Thanks for your help
Background:
CFC signature
<cffunction name="getJewels" access="remote" returntype="any">
<cfargument name="jType" type="string" required="no" />
<cfargument name="jActive" type="boolean" required="no" />
<cfargument name="jOrder" type="boolean" required="no" />
Server Settings > Settings Summary
Report generated on Jul 08, 2009 11:07 AM
This report shows the status of all ColdFusion configuration settings. To display the area of the ColdFusion Administrator where you can edit the group settings, click any of the groups in the report.
Version Information
Server Details
Server Product
ColdFusion
Version
8,0,0,176276
Edition
Developer
Serial Number
Operating System
Windows XP
OS Version
5.1
Adobe Driver Version
3.6 (Build 0017)
JVM Details
Java Version
1.6.0_01
Java Vendor
Sun Microsystems Inc.
Java Vendor URL
http://java.sun.com/
Java Home
C:\ColdFusion8\runtime\jre
Java File Encoding
Cp1252
Java Default Locale
en_US
File Separator
Path Separator
Line Separator
Chr(13)
User Name
SYSTEM
User Home
C:\
User Dir
C:\ColdFusion8\runtime\bin
Java VM Specification Version
1.0
Java VM Specification Vendor
Sun Microsystems Inc.
Java VM Specification Name
Java Virtual Machine Specification
Java VM Version
1.6.0_01-b06
Java VM Vendor
Sun Microsystems Inc.
Java VM Name
Java HotSpot(TM) Server VM
Java Specification Version
1.6
Java Specification Vendor
Sun Microsystems Inc.
Java Specification Name
Java Platform API Specification
Java Class Version
50.0
This is the dataset I am trying to get at.
dstones
CF data source name
dstones
Description
Dancing stones databases
Driver
MySQL5
JDBC URL
jdbc:mysql://localhost:3306/hmsollie?
Username
root
Login timeout
30 seconds
Long text buffer size
64000
Timeout
1200 seconds
Maintain connections
Yes
Interval
420 seconds
Restricted SQL operations
Disable connections
No
Data & Services > Flex Integration
Enable Flash Remoting support
Lets a Flash client connect to this ColdFusion server and invoke ColdFusion Components (CFCs). NOTE: Disabling this feature also disables ColdFusion server monitoring and multiserver monitoring.
Enable Remote Adobe LiveCycle Data Management access
Lets LiveCycle Data Services ES connect to this ColdFusion server through RMI and use CFCs to read and update data that supports a Flex application. If you are not using this feature, disable it. This does not affect LiveCycle Data Services ES integrated in to the ColdFusion installation.
Server Identity:
If you are running more than one instance of ColdFusion on this machine, you must configure each instance with a unique ID.
Enable RMI over SSL for Data Management
Lets you use Secure Socket Layer (SSL) encryption for the RMI communication between Flex and ColdFusion. This is not required unless you are transmitting authentication information or confidential data between Flex and ColdFusion over an unsecured network. You must provide a keystore file and keystore password. For instructions on how to create a keystore file, see the online Help.
Full path to keystore:
Keystore password:
Select IP addresses where LiveCycle Data Services are running
To secure the LiveCycle Data Services ES integration point, the hosts that are allowed to perform Data Management operations are restricted. If you are running LiveCycle Data Services ES on a different computer, specify its IP address here. By default, only the local computer can perform Data Management operations in ColdFusion.
IP Address
View or Remove selected IP addresses where LiveCycle Data Services ES are runningSunil,
I have found the problem. When initialy given the arguments list to fill in "Configure Return Type", I filled in a string argument as "E". This gives a return of object. To accurately use the Configure Return Type, I needed to just fill in a string as E.
See the Screen Prints on the error
I have tested the following functionality and it appears to work ok
1. I have tested with no parms to the CFC query method
2. I have tested using Dynamic SQL based on variables set before the query in a CFC method
3. I have tested passing one string argument in from Flash Builder to a CFC method
4. I have tested passing a string and boolean argument From Flash Builder to a CFC method
For 3 and 4, I had make some slight changes o set the arguments that were being sent to CFC in Flash Builder before the call
It all worked.
**** New Issue ***
I have another runtime issue involving states that I uncovered in my testing where buttons are the screen were being covered up when I used some of the DataGrid Controls. If I can repeat it, I will post it and then let you guys let me know how to work around this.
I am a Flex/AS Novice, so I may be mis-understanding something on this new issue.
Thanks. -
Access to database using ColdFusion & Flex
Hi, I install a ColdFusion MX 7 Updater 2 in my ColdFusion
Server but don't
work it.... my server has a Windows Server 2003 Enterprise
and we are
developing an aplication in Flex 2 and we are using
ColdFusion for connect
to data base but Flex 2 need a ColdFusion MX 7 Updater 2 to
install Flex
Data Services Adapter - enabling the use of Flex Data
Management Services
with ColdFusion components (CFCs). In Adobe web site
http://www.adobe.com/support/documentation/en/coldfusion/mx702/cf702_install.html)
are an instrucctions about install this updater, I follow
this instructions
and install this updater correctly, check the existence of
this files:
cf_root\lib/cfusion.jar
cf_root\lib/im.jar
cf_root\lib/wsdl4j-1.5.1.jar
cf_webroot/CFIDE/adminapi/Application.cfm
cf_webroot/CFIDE/administrator/Application.cfm
This instalation create a Flex folder in WEB-INF folder, this
WEB-INF folder
is in CFusionMX7 directory in Inetpub. And everything is OK
but in Flex
Builder 2, when I attempt to create a new project and appear
a wizard window
and I select a project with Cold Fusion Remoting Sevice, in
second step I
got to select a Root folder and send me an error window tell
me that I got
an Invalid server root. Server root must contain a
WEB-INF/flex folder and I
check and this folder it exist....So can anybody help me????
MSN [email protected]Did you shut down the database before moving files?I didn't move any files, I just copied some files to the other node.
Can you connect in sqlplus?Yes that was possible. I also had a connection to the database using TOAD.
After looking for the problem together with a colleague I've found out that I had to add some more listening addresses. The problem was that my nodes node1 and node2 have the IPs 10.10.10.2 and 10.10.10.3 but the virtual server of the cluster which forms the database oracledb for the clients runs on 10.10.10.103. So there was the name for e.g. node1 in the configuration files but also the IP-address 10.10.10.103 which the system couldn't resolve. After adding all possibilities using the Net Manager and after restarting the services it worked fine. At least until now. I haven't tried everything yet... I will go on tomorrow... thx so far. -
PHP exception code in FaultEvent?
Hi-
The PHP exception code doesn't seem to get mapped into a
FaultEvent...only the exception *message* seems to be available in
a FaultEvent. I was hoping to use an exception code in a FaultEvent
to drive logic in Flex (i.e if code == 100, then x, if code == 200,
then y, etc).
Am I correct in assuming that the PHP exception code does not
get mapped into a FaultEvent? If so, how are other people using
FaultEvents to drive logic decisions in Flex?
One idea I had was to use a serialized object as the PHP
exception message, and unserialize the resulting
FaultEvent->faultDetail message in Flex. This method works OK,
but I was hoping for a more elegant solution.
Thanks!
GregAdobe Newsbot hopes that the following resources helps you.
NewsBot is experimental and any feedback (reply to this post) on
its utility will be appreciated:
Flex 3 - About data access:
Flex data access components are based on a service-oriented
architecture .... objects, such as ColdFusion components (CFCs),
Java objects, PHP objects,
Link:
http://livedocs.adobe.com/flex/3/html/data_intro_2.html
AMF3 PHP Server Objects to Flex Client Object Relational
Mapping:
Apr 16, 2008 ... fig1.png Flex Based Rich Internet
Applications (RIAs) by definition typically require server access
to provide the information resources and
Link:
http://www.insideria.com/2008/04/amf3-php-server-objects-to-fle.html
Flex 3 - Using HTTPService components:
You can use a Flex HTTPService component in conjunction with
PHP and a SQL ... The resultFormat property of the HTTPService
component is set to object
Link:
http://livedocs.adobe.com/flex/3/html/data_access_2.html
Adobe - Developer Center : Using Flex 2 RemoteObject and
SabreAMF:
After SabreAMF maps the PHP objects in the return array to
com.renaun.samples.vo.UserVO , the application on the Flex side
deserializes this return array
Link:
http://www.adobe.com/devnet/flex/articles/remoteobject_sabreamf_05.html
Flex 3 - About working with data in Flex Builder:
Flex Builder provides a set of data wizards that
automatically generate database applications that use PHP, J2EE, or
ASP.NET.
Link:
http://livedocs.adobe.com/flex/3/html/data_2.html
Disclaimer: This response is generated automatically by the
Adobe NewsBot based on Adobe
Community
Engine. -
I'm looking for a Shared Coldfusion hosting in the UK, we've
been having (lack of) support issues with Hostway and we're looking
for an alternative. Coldfusion MX 7 or 8.
Do anyone have an recommendations? We prefer to have some
testimonials before I move all our sites :)
Would prefer a UK host, so we can catch them on the phone, be
awake at the same time etc.I changed all but 2 of my sites (around 15 sites in total) to
flinthosts.
Have not had any major issues yet, a few minor ones but they
are usually sorted quickly.
I moved from an unreliable hosting company in America as
there was too much downtime.
Paul
Maybe you are looking for
-
Printing multiple spool requests at a time
Hi All, I am using function module RSPO_OUTPUT_SPOOL_REQUEST to print the contents of the spool request. I want to print multiple spool requests at a time. We can input only one spool request number to the above function module at a time. Is there an
-
I've searched endlessly! Creative does not have any in stock so I used the ''notify me when available'' option. And sadly, after writing to Creative's customer support, I was told that they don't even know when the will get more of these in stock. Eb
-
JNDI Lookup for EJB3 (Bean to Bean)
Hi Forum, i've search the whole internet and two books but I could not find an answer that pleased me. I want to get a reference to an EJB3 by JNDI Lookup. With container managed dependency injection everything works fine but I have to do a little mo
-
How to batch convert pdf to jpgs, crop to trim and save?
I'm trying to figure out how to take a couple of hundred PDFs, Crop them to trim, then convert them all to JPGs using any of the adobe programs. In bridge I was able to Batch convert all the PDFs to JPGs but it wouldn't crop them to the trim also...
-
Forget passcode and phone lock
forget passcode and phone is lock. how to back up all my info, and format my phone and restore back all my info? (contacts, apps, document, info inside apps, calender....)