Flex and CFC with Remote Object
I wrote a simple cold fusion componenet on my webserver at:
http://www.paramountmediainc.com/webservices/eadexchange/agent_sys.cfc
Now I want to play with that in Flex with a Remote Object.
I'm writing the flex on my local machine. I tried this approach but
was uncessfull:
<mx:RemoteObject id="acctRO" showBusyCursor="true"
source="webservices.eadexchange.agent_sys"
endpoint="
http://www.paramountmediainc.com/flashservices/gateway">
I get the following error ...
TypeError: Error #1034: Type Coercion failed: cannot convert
Object@3b15da1 to mx.messaging.messages.ErrorMessage.
Any ideas what I'm doing wrong here?
You cant really replace Struts with Flex, maybe a view part
, thats about is, you still need backend processioning
logic,all that you are asking is difficult to answer is one reply,
IMHO, best thing you can do is to dive into following URLs :
http://www.adobe.com/devnet/flex/
http://livedocs.adobe.com/flex/3/html/help.html?content=Part2_DevApps_1.html
http://livedocs.adobe.com/blazeds/1/blazeds_devguide/
http://livedocs.adobe.com/flex/3/html/help.html?content=Part6_ProgAS_1.html
and of course your best friend :
http://livedocs.adobe.com/flex/3/langref/index.html
Similar Messages
-
Is there a public test server with remote objects?
Hi all,
I have to give a lecture about RMI and I have succesfully executed remote method invocations with client and server both on my local machine. Is there any machine outside with remote objects whose methods I can call? (Calling a real remote object would be more spectacular than calling a remote object residing on my local machine!)
Greetings,
AlfredI dont believe so, but there is no reason you cannot set up a small server on another machine on your network that you could connect to in your lecture.
-
Have just installed DWmx 8 on a new machine and found that
the context
menu for sync and compare with remote is not enabled..
I assume it is something to do with the way I have configured
my sites...
Any ideas???Can you log into .mac mail? That will tell you if your username and password are OK.
I recently had a similar problem, so I unregistered my work and home computers (using the Advanced tab of .mac preferences) from .mac then re-registered them. At that point, you are offered the initial sync choices like the first time you connected to .mac.
Be careful that you don't overwrite your data. I highly suggest making backups of your Address Book, Safari Bookmarks, iCal, iDisk files, etc. on all computers before starting the process.
- Wayne
PowerMac G5 Mac OS X (10.4.8) -
Flex/Air and Web Services/Remote Objects
If I'm calling a web service operation, either through the
mx:webservice or mx:remoteobject tags, do I need to configure my
Flex or Air project (I'm using the latest Flex Builder IDE) with
the "use remote object access service" when creating the project?
When do I need to configure services-config.xml or
remoting-config.xml?
Can't I simply call a web service operation by specifying the
endpoint (if using mx:remoteobject) or the wsdl location for the
service and then invoking one of its methods? I'm having a very
difficult time consuming a web service through either method (even
on my own local ColdFusion 8 developer instance) and need some
assistance. I've looked all over the internet for help, but, so
far, without success.
Thanks,
-JoseYou do not need to specify any server to use any of the RPC
protocols.
Have you looked at an example?
You have not said what problems you are having.
Be aware of crossdomain security issues.
Tracy -
$25 Reward - Calling a CFC via Remote Object or Web Service without making the result public
I am just getting into Flex 2, so please forgive me for my
newbe vocab.
Here is how my applications have worked in the past, i.e.
ColdFusion:
<cfscript>
//Create an instance of component
order = CreateObject( 'component', 'PEK.Catalog.Order' );
//Call methd
theOrder = order.getOrder(1234);
</cfscript>
Display the order via HTML and CFML.
getOrder() returns a query and 1234 is a sample orderID. The
most important part of the solution I am looking for is that the it
must not expose my getOrder() as a public web service. I am able to
run the application with WS by making the mothod URL visible and
remote, but this is no way near the security I would like to have.
Here is my folder structure where components folder has been maped
to CF.
Application
|__extentions
| ... |__components
| ... ... |__PEK
|__wwwroot
I guest there should be a way to call CFC with the thing
remote object that I have no idea how to set up. So please what
would be a solution to my security issues.
Thank you in advance!Click
Here for Link to Article
I guess this article answers part of the question. It is very
important to note that if the CFC is sitting on the same server as
the CFC the component methods could be public and not remote, thus
making it alot more secure. -
Weblogic 10.3.0 issues with remote object calls.
All:
I was wondering if anyone has experienced any issues with Weblogic 10.3.0 dropping initial remote object calls over AMF Secure Channel. Here are the issues we are experiencing.
1. FLEX applications fail consistently on the first remote object call made across the AMF Secure Channel. Resulting in the request not returning from the application server; which has had varying affects on the different applications including missing data, application freeze and general degrading of the user experience.
2. FLEX applications require a browser/application refresh once the application has been inactive for a certain period of time. In our experiences the behavior occurs after 30 minutes of inactivity.
I've deployed this same code to Weblogic 10.3.3 and the behaviors go away. Are there any patches to 10.3.0 that might take care of this issue that we are not aware of?
Thanks for you help,
MikeHello,
I found the problem. But I needed change the target of all my datasources until discover that one of my datasource didn´t answer and no errors was trigged.
My server was waiting this datasource, and not get started. -
Clear doubt on standalone IS and integrate with remote BI4
Hi IS expert,
Apologize for this question from a novice user. I just want to know will the metadata manager works well for linear data and impact analysis if standalone IS is installed and not sharing the common Business Intelligence Platform with BI4?
I reckon it should works for IS version 4.2 Patch2 as per Note 1907168 and i just need some confirmation on below question posted on Information Steward Deployment - Guidelines on sharing BI Platform Vs. Standalone Install - Enterprise Information Manag…
Note: - Starting 4.2 SP1 release (4.2 GA release), 'Standalone Deployment' using Information Platform Services offers same level of 'Simplified User Experience for BI users' with ability to view lineage from WEBI report or BI Launchpad as well as ability to access Metapedia terms associated with a report from BI Launchpad. For Information Steward 4.1 or earlier release 'Simplified User Experience for BI Users' was available only when Information Steward was deployed on 'Shared BI Platform'. This limitation is removed in Information Steward 4.2 SP1 release."
What's the exact meaning for the above, does it means starting from 4.2 SP1, linear data and impact analysis should work even without sharing the common BIP platform? And if yes, below steps from note 1907168 should be the right source to configure?
Additional Support
From IS 4.2 SP0 Patch 2, IS supports the lineage/impact and BOE Metadata Integrator with remote BI 4.1 SP1 (or higher compatible patches) when installing DS and IS with IPS 4.0 SP5 on the separate landscape.
For the new installation, the supported landscape is
On machine 1, install BI 4.1 SP1
On machine 2, install IPS 4.0 SP5 (or later patch), DS and IS 4.2 SP0 Patch 2
If users want the BI Launch Pad Integration feature from BI 4.1 SP1 (or higher compatible patches) or want to collect the metadata from BI 4.1 SP1 installed on machine 1, refer to the following SAP Note 1906580 to install and configure the following:
Configuring BI launch pad in Information Steward application
Installing the service to collect metadata from SAP Business Intelligence (BI) platform 4.1 SP1 or above.
Your kind input is very much appreciate.
Thanks,
Nicholas ChangNicholas,
this was especially related to the customers who want to use the direct and native integration of the Data Lineage and Impact Analysis Graphs and the Metapedia Terms within the BI Launchpad itself.
Before IS 4.2 SP1 customers who wanted to enable their BI Users to view e.g. directly within the BI Launchpad the information where the data for a specific report was coming from were only able to do that when the IS installation was on top of the BI installation. Now they can even have a separated installation of their BI and IS (on IPS), but are still able to view the lineage and impact analysis within the BI Launchpad.
This does not affect the collection of metadata information from the BI system and also from the beginning of IS it was possible to view lineage and impact analysis or metapedia terms within the IS UI itself, independent of the standalone or on-top installation.
Niels -
Hi!
I have a web application running on JBOSS 4.0.4 and using EJB/EJB3.
The main goal is simple, i need to substitute some JSP pages with flex.
I'm a total newbie with flex and i don't even know how to get started.
What do i need? Only BlazeDS or something more? Is there some tutorial with a step by step explanation?
I appreciate your help.You cant really replace Struts with Flex, maybe a view part
, thats about is, you still need backend processioning
logic,all that you are asking is difficult to answer is one reply,
IMHO, best thing you can do is to dive into following URLs :
http://www.adobe.com/devnet/flex/
http://livedocs.adobe.com/flex/3/html/help.html?content=Part2_DevApps_1.html
http://livedocs.adobe.com/blazeds/1/blazeds_devguide/
http://livedocs.adobe.com/flex/3/html/help.html?content=Part6_ProgAS_1.html
and of course your best friend :
http://livedocs.adobe.com/flex/3/langref/index.html -
Rmi and reference to remote object
how I can obtain a reference to a remote object and not its value?
This will happen automatically once it is exported and you return it from the server via an RMI call, e.g. Naming.lookup() or as the result of another remote method.
-
Interfaces and methods with complex object
In all the examples I have, the methods of an interface use only basic java datatypes (int, Character, ..)
I want to pass a Vector that represents a list of objects from one of my own classes to an interface method.
class Myclass ...
private String p1;
private int p2;
myInterfaceMethod(..., Vector list, ...)
// list is a vector of Myclass objects
How do I know about Myclass when implementing the interface and how do I access p1 and p2 ?You can use any kind of "complex" object in your interface methods, all of them are objects at last.
The other question seems to be a misunderstanding of interface implementation. When u "implement" an interface in a class, all that JVM does is to check that you actualy have one method (with code inside its body) for each method you defined previously in the interface.
Think of an interface as a contract signed by a class. It's forced to implement each method definied in you interface. So, as the method is defined inside the class, you can access any data member of the class without doing anything "special". Do u catch it? -
UDP Send and Receive with Remote Host Only Issue
I am seeing an issue using the UDP Sender and UDP Receiver example VIs that ship with LabVIEW. If I open the VIs and do not change any of the settings and run the UDP Receiver VI and then the UDP Sender VI the Receiver VI never reads anything. However if I change the boolean on the UDP Sender VI to broadcast it works fine.
The example program by default uses localhost so I have also tried to use the UDP Receiver on my Real Time controller and the UDP Sender on my laptop with the boolean set to remote host only and the remote host string set to the ip address of my real time controller and this did not work either. But if I change the boolean to broadcast it works.
I would like to be able to send to a remote host only and not have to broadcast my UDP message to everyone.
Please let me know if you have any suggestions.
Thanks,
Russell
Engineering Team Leader
G Systems, www.gsystems.com
Certified LabVIEW Architect
Certified Professional InstructorElizabeth,
Thank you for the response. I am using LV 8.2.1 and wasn't seeing any errors.
However I am not seeing the issue today, I must have been an issue with our network yesterday.
Thank you,
Russell
Engineering Team Leader
G Systems, www.gsystems.com
Certified LabVIEW Architect
Certified Professional Instructor -
AbstractMethodError while connecting with Remote Object
Hi,
I've an issue when my client calls the remote method.
When my client calls the remote method (through interface)
which returns me a class object i get an AbstractMethodError.
My Interface method is something similar to this
public GTTerminalMaster getRefreshedDetails() throws RemoteException;
My client calls the method as follows
GTTerminalMaster = (GTTerminalMaster ) getRefreshedDetails();
When my client Executes, i get the following Error
java.lang.AbstractMethodError: com.eaglelot.gametransis.GTSendAndReceiveImpl_Stu
b.updateTerminalDetails(Ljava/lang/String;Ljava/lang/String;)Lcom/eaglelot/globa
l/GTTerminalMaster;
at com.eaglelot.gamehawker.login.RefreshTerminal$1.run(RefreshTerminal.j
ava:38)
Thanks for your reply in advanceYour remote interface, stub, and implementation classes are out of sync.
Delete all .class files, recompile, and redeploy. -
Having trouble pairing my iPhone and iTunes with Remote.
So, I know that these are to the ways to use Remote. When trying to pair with an iTunes library, steps 1 and 2 work but when I open iTunes on my computer, the Remote button does not appear. When trying to pair using Home Sharking, steps 1-4 work but my library does not show up for me to select. I am using an iPhone 5S and MacBook Pro, both with the most current versions of iTunes.
Hey brenyo!
Here is an article that will help you troubleshoot this issue with your Remote pairing:
Remote app for iPhone, iPad, or iPod touch can't connect to iTunes or Apple TV
http://support.apple.com/kb/ts1741
Take care, and thanks for visiting the Apple Support Communities.
Cheers,
Braden -
Content based routing and XML with multiple objects
I have some structure:
<contracts>
<contract>
<department>1</department>
</contract>
<contract>
<department>1</department>
</contract>
<contract>
<department>2</department>
</contract>
</contracts>
I need to route contract to 2 system based on <department> value:
contracts/department = 1 --> System1
contracts/department = 2 --> System2
Will XI split my XML (based on Content Routing rules in ID) into 2 structures (with departmet=1 and department=2 accordingly) ?
Or I have to perform 1ToN mapping? I don't like it bacause it will be diffucult to monitor hundred of messages.Alternatively if you donot like 1:n mapping and BPM.
Create two message mappings in the IR
1.Source :<contracts>
<contract>
<department>1</department>
</contract>
<contract>
<department>1</department>
</contract>
<contract>
<department>2</department>
</contract>
</contracts>
Target:
<contracts>
<contract>
<department>1</department>
</contract>
<contract>
<department>1</department>
</contract>
Basically mapping generates a target structure which has only department 1.
2.Same like step1 but the mapping should generate the XML with department = 2.
Once requires steps are done in the ID , do the content based routing in the reciever determination and give the appropraite message mapping in the interface determination.
That should your problem and also you will like doing it as it does not involve any split level mapping..:) -
ITunes 10.1 and Earbuds with Remote - Can't pause or skip songs on MBP
Since upgrading to Mac OS X 10.6.5 and iTunes 10.1 today, I notice that I can't pause and skip songs with my iPhone earbuds when they're plugged into the Mac. I have a [latest gen 2.4 GHz] 13" MacBook Pro and I could have sworn this was a feature that worked prior to the upgrade. I know it works just fine on my 27" iMac at home, so it's possible that I might be confusing the two systems. All I am able to change is the volume up and down.
Does anyone else have a 13" MBP and a pair of earbuds with the mic? Are you able to click once and pause iTunes and click twice to skip to the next song? I'm so used to doing this on my phone and iMac that I wonder if I am just taking it for granted and maybe the 13" MBP never supported this.
Thanks for any help or tips you can provide.I've heard others with this same problem in the past. It sounds like a manufacturing problem with the headphones themselves causing the buttons to not work.
Maybe you are looking for
-
Is there a way to access the "Creative Cloud Clipboard" repository outside Adobe Line/Sketch Apps? For instance via (macbookpro) web, local directory (CC desktop), or mobile web? As opposed to Utilizing the feature purely in Adobe line/sketch? I mean
-
Anyone have any idea which is the best application for taking notes and essay writting?
im starting my first year of university and i was wondering what would the best application for taking notes on be? and also whats the easiest, most reliable and effective way to transfer documents off the ipad? Any thoughts on printing aswell? will
-
Here is the game plan: I am setting up a new lab for an elementary school. I have 30 computers that I need to all look and run exactly the same. I know about Carbon Copy Clone (witch does not work with 10.3) is there any easier way? I have an Apple S
-
I have the new iPhone 5 with the latest software, and iTunes latest version. When I try to backup my phone via iTunes, the backup starts, and the progress bar begins to move and then gets stuck at the end. I have waited a long time but it doesn't go
-
Do I need to install Spring framework separately for my Eclipse?
Hi, Guys: I am completely new to Java Enterprise, and I am supposed to use Spring framework and hibernate. tools: JDK 7, Eclipse, Maven, Git, etc. I have a question that may be silly to you guys: I want to try my first Spring project, on train