Example of Cold Fusion 9 using a COM object?
We're not able to get COM of .NET objects working with Cold Fusion 9 and a third-party application. The vendor for the 3rd-party app has done some testing with their COM objects, as well as unrelated COM objects and they can't get any of them to work. This also matches our experience. Their hypothesis is that Cold Fusion 9 won't work with any COM objects. This seems surprising to me and I suspect that we are all implementing them incorrectly.
Can somebody provide an example implementation of CF9 with a COM (or .NET) object that we can test (preferably an implementation that is already tested to work). That will help us troubleshoot the source of the problem.
Our systems is Window 2008 server 64-bit. I don't know if the vendor is on the same O/S.
A brief search suggests ActivePDF offers a .net wrapper. You might try using that instead.
http://www.activepdf.com/corporate/news/pressreleases/NetRelease.cfm
NetRelease.cfm
Hey.. the ActivePDF site runs CF. Nice ;-)
Message was edited by: -==cfSearching==-
Similar Messages
-
How can I use a COM object that does not have a type library?
Hello,
I've created a com server in python for which I do not have a type library. I am able to call functions for this application in Python, TCL, I'm sure VB, etc. without the type library.
Must I have a type library registered to use this COM object with Labview? I was hoping I could simply supply the name to the refnum (or the GUID) then call functions by passings strings to the invoke node. This does not seem to be possible - am I missing something?
In the event that I cannot use a com server without a type library. Any recommendataions on how to create one? I'm wondering if I can use the same GUID and create a shell in LabWindows which generates the IDL/TBD file I need for Labview to see my
com server.
Any help is greatly appreciated.
73,
TimothyTimothy Toroni wrote:
> Thanks for the info, however their example is labview server and
> python client. I'm going the other way. It's good to know about
> LabPython though...
>
> As of now, it seems to be there is no way to use a COM object without
> a type library from inside LabView.
Yes that is true. LabVIEW needs that to configure the Property and
Methode Nodes correctly. Otherwise it would need to have a special
Property and Method Node with a configuration dialog similar to the Call
Library Node, but a LOT more complicated. Not sure many people could
make use of that, and it would be a very tiring experience trying to get
things setup in that way, by going through the edit, test, and crash
cycle over and over again.
Rolf Kalberm
atter
Rolf Kalbermatter
CIT Engineering Netherlands
a division of Test & Measurement Solutions -
Calling test sequence from CVI DLL that use ATL COM object does not work
I am trying to call some DLL function writen in CVI from teststand. The CVI DLL is using ATL COM object(Written by me).
The ATL COM object making instance of several ATL COM object inside it (including two controls that contains dialog). If I use a client writen in VC++ 6 and use the ATL COM (writen by me) works perfectly. But if I try to use it from CVI DLL it does not work any more.
What is wrong? The client is passing an IUnknow interface to my component. Can anybody explain me what is wrong?It is not clear from your question as to what is specifically failing. If possible, one option would be to remove TestStand from the picture and see if the problem still occurs using a CVI EXE that invokes the CVI DLL.
Scott Richardson - NI
Scott Richardson
National Instruments -
Hi ,
Is it possible to use the COM object in Labwindows/CVI? If yes, please share the procedure?
Thanks,
Sumathi[Jongware],
Thank you for the prompt reply! Your information has been helpful.
I'm not quite sure why what I'm wanting to do is against the EULA, unless it's because I'm doing it at a server level.
Yes, COM is a Microsoft concept. I do understand that InDesign uses the DOM, but I have seen code snippets where people have utilized the .tlb file from within .NET (C#, too).
1. That sucks, but it is something I suppose I could live with.
2. No comment.
3. If my only objective is to create a thumbnail (whether it be INDD --> PDF --> JPG or INDD --> JPG), and if placing will achieve this, then that's ok.
4. If InDesign server allows me to run a script that will do what I want, that'll work.
5. No comment.
6. I assume there's no way to try-before-you-buy InDesign Server? I sure wish I could tinker with it before determining if it's the right solution.
I know what I want is WAY overkill, but since we're a shop that uses Adobe products to print large graphics, our customers use Adobe, too. I'm absolutely FLABBERGASTED that Adobe doesn't offer a way to easily convert their products. And since what I want to do requires the use of Adobe in some way or fashion, I don't see any other alternative than to use a cannon to kill a fly.
I spoke with "Travis" via chat after reading your post. He states that Adobe does not offer a product that does what I want, nor does it offer a custom made graphic conversion program.
What an absolute bummer. I never thought converting an Adobe file to a thumbnail would be so difficult, especially after I noticed how Adobe Bridge flawlessly creates a visible thumbnail for all Adobe types, right in it's own window.
Again, thanks for the information. If you think of anything else, please let me know.
Kyle -
So I am happily using after a serious effort Word Macros from
Cold Fusion
pages via the COM object and am looking to pass
variables to the procedures now to be able to leverage them even
more than I am able to.
Currently I am executing in this manner:
<cftry>
<cfscript>
WriteOutput("0<br>");
objDoc = Application.objWord.Documents;
WriteOutput("1<br>");
newDoc =
objDoc.open("C:\00_CATS\MstrTaskerLibrary\000000006.doc");
WriteOutput("2<br>");
Application.objWord.Run("TestFct");
WriteOutput("3<br>");
newDoc.Close();
</cfscript>
<cfcatch>
<cfscript>
objWord.Quit();
</cfscript>
<cfrethrow>
</cfcatch>
</cftry>
What I would like to be able to do is
Application.objWord.Run("TestFct(#Type#");
or
Application.objWord.Run("TestFct('Used'");
Any ideas?
And while we are on the subject :) of Word Infusing, any
ideas of how to change the value of Custom or BuiltIn Properties...
Form Fields I haver covered, but cannot seem to get any
syntax to work on the others... and did I forget to mention that I
want to create Custom Properties in a Word document , bwah hah hah
haha...
ThanksHi Adam, thanks for the response! Just to let you know, I am testing your suggestion at this moment. I added the
comment on my search.cfm page. I checked my admin page and here is a rundown of what is checked and what is not checked.
Maximum number of cached templates = 1024
Trusted Cache = Not checked
Cache Template In Request = Checked
Component Cache = Checked
Save Class Files = checked
Cache web server paths = Not Checked
maximum number of cached queries = 150
Also, I am getting this error when viewing the template in my remote server and I think I get it viewing locally as well. Thanks again for the help! Will let you know about the comment test.
Tony -
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 8http://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
> -
Updater 2 and Dreamweaver's Cold Fusion development server
Hello,
I am in the process of developing a Cold Fusion Web
application for my university dean's office using...
<cfobject type="COM" action="create" name="Chart"
Class="Corda.Embedder">
...and I am receiving this error message...
An exception occurred when instantiating a Com object.
...the Corda documentation states the following, and I agree
with them that this is what I am experiencing and need to do...
COM Corda Embedder (Windows)
If you are using ColdFusion MX on Windows, be sure you have
updated your server to the latest version using the ColdFusion MX
Updater Release 1. This is available at
http://www.macromedia.com/support/coldfusion/releasenotes/mx/releasenotes_mx_updater.html.
You will need to apply this update to fix a bug in ColdFusion MX
that prevents it from accessing Window’s Component Object
Model (COM).
Other than that, you don’t need to do anything. The COM
version of the Corda Embedder is installed automatically for you.
...I am running Windows XP Professional 2002 SP2, and the
Cold Fusion Developer Server THAT COMES WITH Dreamweaver 8.0. The
Cold Fusion server is an established server running several CF
applications. The Corda product is also known to be running fine,
as I am able to view my current projects in a browser.
Server Details
Server Product ColdFusion MX
Version 7,0,0,91690
Edition Developer
Serial Number Developer
Operating System Windows XP
OS Version 5.1
1) Am I missing something with instantiating the COM object?
2) How can I tell if I need the Cold Fusion updater?
3) Which updater version do I download (1 or 2) and for which
server (MX, MX7, Special Dreamweaver version)?
4) Where do I install the updater - since I am running the
Cold Fusion Developer Server that comes with Dreamweaver, it is not
located in the default C:\CFusionMX7 directory?
Thank You Very Much For Your Time,
Nathan
Technology Support Analyst, Sr.2) How can I tell if I need the Cold Fusion updater?
Version 7,0,0,91690
You are on Version 7MX, no updater. After the update you will
have a
version something like this.
Version 7,0,1,xxxx OR Version 7,0,2,xxxx
3) Which updater version do I download (1 or 2) and for which
server
(MX, MX7, Special Dreamweaver version)?
You need to download and install at least updater 1 for MX 7
per the COM
instructions, updater 2 (which by default includes updater 1
IIRC) could
be even better, but has a small chance of doing something you
don't want
it to. One would have to read all the tech notes and make a
decision.
There is no "Special Dreamweaver" version, it is just the
standard Free
Development version anybody can download and install. "Serial
Number
Developer" And to turn this into a professional version all
one has to
do is purchase a license number an enter it into the
administration
panel. This converts a developer CF server to a Production CF
server
with no other downloading or installing necessary.
4) Where do I install the updater - since I am running the
Cold Fusion
Developer Server that comes with Dreamweaver, it is not
located in the
default C:\CFusionMX7 directory?
Most likely the installer will figure that out. If it does
not, just
provide the directory/file path to where your CF is installed
when asked.
HTH -
Using JNI to connect to a COM object
Hi,
I need to write an application in Java which uses a COM object. Has anyone tried to connect to/ use the functionality of a COM object by using the JNI (Java Native Interface)?
I would highly appreciate any tips on how to go about it.
Thnks,
anila1.create a java file which is having one native function which calls the COM function.
2.In static block put
static{
System.loadlibrary("WrapperDll");
3.Compile the java file(example sample.java)
4.Create the header file using the command
javah -jni sample
4.Create a wrapper dll in VC++.
5.After creating wrapper dll in VC++ , keep the dll in the class path.
6. Run the program
See this link http://java.sun.com/docs/books/tutorial/native1.1/index.html
Bye,
nrs -
Capturing an event raised by a COM object
Hello,
Using ABAP, it's no trouble using a COM object's properties and methods, but how do you capture a raised event?
For example:
INCLUDE OLE2INCL.
DATA wf_test TYPE OLE2_OBJECT.
CREATE OBJECT wf_test 'Test.Test'.
SET PROPERTY OF wf_test 'TestID' = '123'.
CALL METHOD OF wf_test 'TestMe'.
Now as a result of calling the 'TestMe' method, the COM object will raise a 'Tested' event. How do I capture that in ABAP? I assume this will require somehow registering the event and maybe generating a proxy class but I don't know the details.
I would really appreciate the help. An example or link would be great.
Best Regards,
Ahmad ShonoHi,
You can look for the event triggered in table SWFREVTLOG for a specific time stamp or user or in fact any BOR object.
Ravi -
COM Object gets Message stating it cannot access the server.
I support an Application that would call Outlook to send an e-mail, it uses a COM object to do so, I have a client that has Exchange 2013 and Outlook 2010, trying to send an SMS to a Cell phone, in the form of [PHONE_NUMBER]@vtext.com (Verizon SMS), gets
a message stating that the server cannot be reached (Retry/Work Offline / Cancel), If I select Retry, nothing happens, if I select Work Offline, it will take it to OUTBOX but will not send it, unless outlook is closed and then re-opened. However, if I add
a CC email address, the CC'd email will be sent right away once the message is put on the outbox, but the original phone_number email will stay in the outbox.
Haven't seen that specific behavior before.
Any light would be greatly appreciated.Sending an Email/SMS is a small feature that was added to the application to make it easier for our clients to communicate the Service Calls to the technicians, send Reports, and/or send Invoices/Quotes to their clients.
That being said, the Application was working fine with Previous Outlook Versions up to 2010 (though not quite sure what changes were done by the Patches, it has stopped on some of the 2010 versions (specially on 64-bit environment) Our developers purposely
selected to call the COM object for the user/client to have full control of the communication (client still needs to click the "ALLOW" Button to allow the email to be sent.
Application is not a plug-in (Add-in) to Outlook, but rather a Full "Service Company Suite" with Email capabilities. It was not Written in .NET or VS so using .NET Objects at the moment is not a choice, unless the developers create some soft of connector
plugin to talk to Outlook.
The Link provided really has nothing to do with the issue (the SMS is really sent as a regular Email) -
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.
Textinteresting 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 -
Flashbuilder and Cold Fusion (using application/session variables)
I would like to know if anybody uses Flashbuilder with Cold Fusion?
Since Cold Fusion has lots of different scopes of variables (application, session, client, form, url, etc...) how do you manage this in Flex/Flashbuilder?
Are there forums or groups specifically for using Flex3/Flashbuilder with backend server side technologies such as Cold Fusion?.
The only server side technology that I have interest in is Cold Fusion. I've seen basic tutorials and videos using Cold Fusion CFC's and data binding with Flex. I haven't seen or heard anything using a Cold Fusion application, session, or client variable in Flex.
Hopefully some of you have some experience on this topic.
Thankshey popster,
i too had this question some time ago. my entire app was built on CF with HTML before i started integrating Flex 3 with it. i found that i needed to create cookie variables for all my session variables i was using in order to maintain and remember who the user was in my CFC calls. i also found that after i compiled a flex app, i changed the .html to .cfm (the file that loads the compiled SWF file). by doing this i was able to pass CF session variables into the flex app and you can refer to these anywhere in Flex by using Application.application.parameters.{variable name here}
add the CF variable in the FlashVars line to pass it into Flex (see the last line of code). this will create a variable (in my case i'm passing session.employeenumber). then in your flex app you can reference it by using Application.application.parameters.emplid:
AC_FL_RunContent(
"src", "Request",
"width", "100%",
"height", "87%",
"align", "middle",
"id", "Request",
"quality", "high",
"bgcolor", "#869ca7",
"name", "Request",
"allowScriptAccess","sameDomain",
"type", "application/x-shockwave-flash",
"pluginspage", "http://www.adobe.com/go/getflashplayer",
"wmode","transparent",
"FlashVars","emplid=<cfoutput>#session.employeenumber#</cfoutput"
A little trick I learned (does Adobe really expect us to re-engineer how our apps have been working by no longer using sessions for Flex?). Then in your CFCs if you also create cookies for every session variable you can maintain the variables based on user login. HOPE THIS HELPS!
-Matt -
Use JQuery Datepicker in Cold Fusion
How can I use jquery Datepicker in a cfm application that used iframe? where should I link css and script reference?
It might be nice if you tell people you've already asked this on Stackoverflow (http://stackoverflow.com/questions/15756532/use-jquery-datepicker-in-cold-fusion).
This question has nothing to do with ColdFusion. JQuery runs on the client browser, and does not interact with the ColdFusion server.
You would use the datepicker in exactly the same way you would on a flat HTML page.
Adam -
Is this course using Cold Fusion.
I'm at the point where I need to decide what to learn ,I-phone SDK or flash builder vs catalyst.
If this course done with Cold Fusion?I don't have an opinion on the iPhone SDK, but I suggest you learn Flash Builder if you consider yourself a programmer and Flash Catalyst if you consider yourself a designer. Some people will likely crossover between the programs since they can work together.
The Flex in a Week training series (http://www.adobe.com/devnet/flex/videotraining/) will teach you Flash Builder. You can learn about Flash Catalyst on the Getting Started page (http://www.adobe.com/support/flashcatalyst/gettingstarted/index.html).
In regard to your CF question: Yes, Flex in a Week uses ColdFusion for the backend, but that doesn't really matter. The series is set up so that the focus is on the Flex code. You can use any backend technology.
If you are already a ColdFusion developer who wants to get oriented to Flex development, you can start with the articles and tutorials on this page:
http://www.adobe.com/devnet/flex/flex_cf.html
There are similar pages for PHP, Java and .NET developers:
http://www.adobe.com/devnet/flex/flex_php.html
http://www.adobe.com/devnet/flex/flex_java.html
http://www.adobe.com/devnet/flex/flex_net.html -
Can be Cold Fusion Developer Edition used to develop the product and deliver to client?
Can be Cold Fusion Developer Edition used to develop the product and deliver to client?
The two IP limit not withstanding, the EULA for ColdFusion prevents you from legally using Developer Edition in any production environment. Using it for development is fine, though.
-Carl V.
Maybe you are looking for
-
Won't sync purchased items, "linked to another library on computer ****"
I keep getting an error message that says I can't sync videos to my iPod as this iPod is linked to another library (and gives a computer code in a lot of digits and letters). How do I sync the video across without losing the content already on the iP
-
How to downgrade from ios 8.0.2
how come there is no way to downgrade from ios 8.0.2 to ios 7 !!! i don't think its legal from apple to close the way back but let me ask may be there is something i don't know is there any way back to ios 7.1.2 ???? thanks kh
-
Hi , I am trying to create a intracompany delivery against the purchase order and i am getting a error NO ITEM CATEOGRY EXIST (TABLE ZNL VEKP V)
-
Posting error in BAPI_ACC_DOCUMENT_POST
Hi Experts, I am trying to post an asset transaction by means of a BAPI BAPI_ACC_DOCUMENT_POST.In Release R/3 Enterprise the posting is rejected with error message (msg id : AA,msg num: 001) 'Asset & & not in company code &' .I have also checked the
-
New Dual Monitor Setup; iMac 21.5
I finally have my new dual monitor set up for my iMac after asking a while back. I ended up getting a Lenovo monitor because thats the best deal they had. It matches pretty good, seems a little cheap but it works and works well for what I am going to