Skip navigation
Currently Being Moderated

Updating ManagedRemoting Entity from Server

May 10, 2012 2:19 PM

Tags: #java #livecycle #data_services #managed_remoting

I have a pretty simple task that I need to complete, but it's taken up several days trying to find out how to do it because I can't find any documentation on managed remoting on the server side...

 

Basically, I have setup Managed Remoting using a flex client, and it works flawlessly, but I need the server to be able to manipulate the managed entities as well.  I want a thread to run on the server that updates the entites in real time based upon a feed coming in from an external server.  If I communicate with the managed remoting service class directly from another java class it persists fine, but it does not update the clients because I am unable to figure out how to pass in a ManagedRemotingMessage to the Managed Remoting service.

 

Can anyone explain how I can tell my MR service that an entity with ID x needs to commit a change to property y?  It seems like a fairly simple task, and I've tried everything I can find thus far, but nothing seems to get the job done...

 

my server setup is very simple, just a few entity classes, a hibernate DAO, and a class annotated as such:

 

@ManagedRemoteService(managedEntities = {com.petzent.agentmonitor.objects.Agent.class}, destinationId="agentService", channels = { "RTMP" })

 

(and then the appropriate CRUD annotations on the various methods in the class, of course)

 

 

As far as how to interface with that class from another Java class, I won't even bother posting my code because I don't even know where to begin...

 
Replies
  • Currently Being Moderated
    May 14, 2012 12:02 AM   in reply to neoX286

    Consider using the ManagedRemotingContext class. It provides ability to submit CRUD operations to Assembler. Take a look at its javadoc at: http://help.adobe.com/en_US/dataservicesjee/4.6/APIReference/flex/data /ManagedRemotingContext.html.

     

    Rohit

     
    |
    Mark as:
  • Currently Being Moderated
    May 19, 2012 11:36 AM   in reply to neoX286

    I think someone from your team is already in touch with us. We will provide you an example for how to achieve this.

     

    Rohit

     
    |
    Mark as:

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points