Explicitly mapping between objects ActionScript and Java to BlazeDS Messaging Service

BlazeDS documentation shows how to map explicitly between ActionScript and Java objects. For example, this works very well for RPC services, for example


import flash.utils.IExternalizable;
import flash.utils.IDataInput;
import flash.utils.IDataOutput;

[Bindable]
[RemoteClass(alias="javaclass.User")]
public class User implements IExternalizable {

        public var id : String;
        public var secret : String;

        public function User() {
        }

        public function readExternal(input : IDataInput) : void {
                id = input.readObject() as String;
        }

        public function writeExternal(output : IDataOutput) : void {
                output.writeObject(id);
        }
}

and


import java.io.Externalizable;
import java.io.IOException;
import java.io.ObjectInput;
import java.io.ObjectOutput;
import java.util.HashSet;
import java.util.Iterator;
import java.util.Set;

public class User implements Externalizable {

    protected String id;
    protected String secret;

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getSecret() {
        return secret;
    }

    public void setSecret(String secret) {
        this.secret = secret;
    }

    public void readExternal(ObjectInput in) throws IOException,
                ClassNotFoundException {
        id = (String) in.readObject();
    }

    public void writeExternal(ObjectOutput out) throws IOException {
        out.writeObject(id);
    }
}

If I called a RPC service that refers to a user, the secret is not sent on the wire.  Is it also possible to do this for the e-mail service? In other words, if I create a custom message adapter and use the function below, also prevent secret to be sent?


MessageBroker messageBroker = MessageBroker.getMessageBroker(null);
AsyncMessage message = new AsyncMessage();
message.setDestination("MyMessagingService");
message.setClientId(UUIDUtils.createUUID());
message.setMessageId(UUIDUtils.createUUID());
User user = new User();
user.setId("id");
user.setSecret("secret");
message.setBody(user);
messageBroker.routeMessageToService(message, null);

Hi Martin. The way the serialization/deserialization AUTHORITY works for BlazeDS is the same regardless of service is used, then Yes, that code will work for messaging as well. On the server, the serialization/deserialization of messages coming to the endpoint. For an incoming message, for example, endpoint deserializes the message and passes it to the MessageBroker who decides what service/destination to deliver the message to.

That is a good question. Thank you for asking. A lot of people is used to make custom services (RemoteObject/RemotingService) RPC serialization/deserialization but I'm not sure that everyone realizes that they can do this for messaging as well.

-Alex

Tags: Adobe Open Source

Similar Questions

  • When I try to use a MS fingerprint reader I get the message "no mapping between account names and security IDS was done."

    Original title: fingerprint digital mapping

    When I try to use a MS fingerprint reader I get the message "no mapping between account names and security IDS was done."

    I tried the fix (http://support.microsoft.com/kb/890737?wa=wsignin1.0) without success.

    Any ideas?

    Hello

    Have you tried to reinstall the fingerprint reader, as mentioned in the previous post article?

    If your computer is on a domain, the question you posted would be better suited for the IT Pro TechNet public. I would recommend posting your query in the TechNet Forums to get help:
     
    For more information, see the articles:
     

    Hope the helps of information.

    Let us know if you need help with Windows related issues. We will be happy to help you.

  • No mapping between account names and security IDS made mistake by attempting to use the Task Scheduler

    I have noticed that my msfeedssync.exe were not working or updated so I went to the Task Scheduler to see what was going on and received the number above mapping between user names and security ID error I never use Task Scheduler, but I do not know its also used for RSS updates , I do all my own maintaince so I need only of GI RSS using a 3-year-old dimensions of dell with xp pro and its in tip top except for that shape it came only with a 80 GB hard drive and I've only used 20 concerts in 3 years that I use online for things important and backup storage I hope there is a solution for this because I installed ram to 4 GB and it has a 2.8 ghz Processor blazin fast and is in very good shape all help will be appreciated thanks

    Hello syncere99,

    1. What is the user account in the Task Scheduler are you for the work you are trying to use the Task Scheduler?

    The error code indicates that the user account that was used to create the job no longer exists. This could be because the user account is deleted. I suggest that you remove and re-create a job and check if you have the same problem.

    Thank you
    Irfan H, Engineer Support Microsoft Answers. Visit ourMicrosoft answers feedback Forum and let us know what you think.

  • No mapping between account names and security IDS was done

    Hello

    I have a laptop of Acer under Vista Home Premium Service Pack 1.  I open advanced user accounts of & assistance, and I saw two names my old & news of the administrator. He used my name as the user name and my new name as the display name, so I deleted the old username & changed to match the full name (the new name).  After the change has been made, I get an error message "no mapping between account names and security IDS was done 26EE0668-A00A-44D7-9371-BEB064-C98683.  Now I can't access control panel to make changes to account. Help & Support in the start menu and Windows Explorer are no longer works. Tools on the toolbar doesn't work or the other.  I can't yet run a virus scan.  I did find something useful from my own research.  Help!

    Thank you
    Cheeszz
    P.S. I also started a McAfee Quick Clean to remove undesirable accumulation of the computer.  He cleaned the keys to an orphan registry, internet cache, temporary files & lost file fragments.  I don't know if he has also nothing to do with the error message.

    Hello Cheeszz,

    Thanks for posting your question on the Microsoft answers Forum.

    Essentially, you get the "no mapping between account names and security IDS was done" is because you now have an orphaned user account. This occurred when you deleted your old username which was still in use by the system under the name of each user name has a unique SID.

    I suggest that run you a system restore point, then you can go back to a previous point in time before you deleted the name of the user.
    Follow the article below for the establishment of a system restore procedure.

    936212 KB - how to repair the operating system and how to restore the configuration of the operating system to an earlier point in time in Windows Vista
    http://support.Microsoft.com/kb/936212

    You can also create a manual system restore point so that you can restore to that State in case of problems.
    Right-click on the computer icon in the desktop, then choose Properties
    In the left pane, click System Protection
    Alternatively, to directly access the System Protection tab, click Start and type SystemPropertiesProtection.exe.
    If you are prompted for an administrator password or a confirmation, type the password or provide confirmation.
    Click the System Protection tab and then click on create.
    In the System Protection dialog box, type a description, and then click on create.

    If you do not have a restore point system, try to see if LastKnownGood configuration might work for you.
    Click on the URL link to get help setting up the last known good configuration:
    http://windowshelp.Microsoft.com/Windows/en-us/help/cdb4c0dd-5698-4197-B906-d6a6d413621d1033.mspx

    Please respond and let me know if these suggestions helped get your problem solved or if you still need help.

    Sincerely,

    Marilyn
    Microsoft Answers Support Engineer
    Visit our Microsoft answers feedback Forum and let us know what you think.

  • I received an error "no mapping between account names and security IDS was done" when I try to back up my files on a network drive. Help?

    I'm running off Windows Vista and have a network buffalo drive 464 concert in order to back up my files.  I get the error "no mapping between account names and security IDS was done" after I try to connect with a prompt asking me a username and password in the drive.  I have not defined anything like that to give me this info before accessing my network drive.  I can read, write, store in the drive of everything except to back up my files on the desktop.  What I'm missing or doing wrong?

    Hello

    Please repost the link that is specific to the issues of backup below in the microsoft forum

    http://social.technet.Microsoft.com/forums/en-us/WindowsBackup/threads

  • Error message "no mapping between account names and security IDS was done."

    I installed an external hard drive 1 TB USB to a desktop networked home.  I use this unit to save the desktop system.  I mapped it as a network drive for my wife's cell phone.  She has full network drive read/write permissions.  I'm trying to set up his laptop to backup over the network to the device using the backup utility provided with Windows Home Premium.  When I try to choose the local backup device on the network drive does not appear as an option.  When I try to configure the location using the networking option, I can select the device but then get the following error message... "No mapping between account names and security IDS was done."

    Hello BrkAwa,

    If the network drive does not appear when you try to backup, this means that the network drive is not mapped on your computer.

    Follow these steps to map the drive on your computer.

    1. click on the computer from your desktop or from the Start Menu shortcut. In the toolbar, you will find several buttons, including one called map network drive.

    2. click on it and the map network drive window opens. First, you must assign a drive letter for the connection, and then type the drive or folder that you want to connect.
    The folder may be located on a computer, or remote server that you access, FTP site, or a shared folder on your computer.

    3. If you want to connect to a remote computer only "-" followed by the name of the computer or IP address and then "------" track of the location of the folder that you want to connect.
    If you want to create a drive mapping to a folder on your own computer, type "\\127.0.0.1\" (this corresponds to the local host) or "\\computer_name\", then the path to that folder.
    Sometimes, when you create a drive mapping, you may need to use a special username and password that allows you to connect to it. In this case, click connect using a different user name .

    4. type the user name and password and click OK. Now, you will return to the previous window. Click Finish and the drive mapping will be created.

    5. If you go to the computer shortcut you will see again once a new disk with the letter that you have assigned is listed and you can access it at any time.

    Map the drive, then check if you are able to use the drive for backup.

    Thank you
    Irfan H, Engineer Support Microsoft Answers. Visit our Microsoft answers feedback Forum and let us know what you think.

  • BlackBerry Smartphones in my BB 8330, between the battery and new e-mail message indicator.

    In my BB 8330, between battery and new e-mail message indicator, there is a Blue Watch icon 4f.

    He started blue 1f now is 4f

    I don't know what it means? I clean all emails, messages, it's still there.

    Those who my friend, would be Facebook messages.

  • connection between sql server and java

    someone please tell me how to connect to sql server with java

    Welcome to the forums.

    The forums are a research tool very useful - by using the search box you will see near the top right.  You will find that most of the questions that ask you, which, have already been asked on the forum, so it pays to research frist - that way you get a faster response and you can find other interesting things.

    In this case, I did a quick search using SQL Server and found these threads that will probably help:

    http://supportforums.BlackBerry.com/T5/Java-development/database-connectivity-SQL-Server-2008/m-p/60...

    http://supportforums.BlackBerry.com/T5/Java-development/SQL-Server-connection-in-BB/m-p/416391#M8239...

  • Problems with aligning an object/array and a popup error message of Muse

    I will try to describe my two problems as simply as I can

    Problem 1.

    I create a mobile version of a Web site, I'm muse, after it is created, I went in the php file to change the details.

    I've gotten to the point where everything works but I'm unable to align to the left of the table in the middle.

    Now when I inspect element I see and point high (photo 1) the ' < table "tag with all that it contains, but when I go into the php file I can't see what

    (photo 2). How can I change or add a tag that will align to the left of the table?

    (www.avocabeachpicturetheatre.com.au/session-times-3.php)

    Problem 2.

    When you go to the page (both on mobile and desktop computer), I gives me an error message, I was able to change the text, but not get rid of it, as far as I can understand that it's something to do with the muse

    (photo 3)

    How can I get rid of this?

    image 1 below

    1.png

    Image 2 below

    2.png

    Image 3 below

    3.png

    The problem, Ben, is that the page that contains the table is include file is generated dynamically. Unless Dale find the script that generates it, there is no way to change the value of the align attribute.

    A possible solution is to add the following JavaScript just before the tag closing session-times - 3.php:

    
    

    It is not an ideal solution, but it works.

  • Auto b &amp; w of the mapping of column source and Targte

    Hello

    Can you auto column mapping between the source and the target based on the names of column or column in ODI 11 g physical position while developing an Interface?

    Best regards

    Muhammad

    Hi Muhammad,
    A lot of learning at the moment! :-)
    Auto-Colonne mapping is by name, you can right click on the target data store and select 'Repeat Auto mapping' If you denied it earlier.
    If you have disabled, you can re-enable ODI->-> automatic mapping of user settings.

    Rgrds
    Alastair

  • Exception handling between flex and java (BaseProxy)

    Hello

    In my plugin code, there are several calls between actionscript(Our View) and java(Service layer) along the lines of the example of chassis (createChassis/deleteChassis/editChassis, etc.). However, the only difference is that in our service layer, we can be thrown exceptions, and I don't see what is happening in the examples of chassis/Rack. If the reminder in actionscript gets called in an asynchronous way to update the user interface when a method returns, which is good; However, if something goes down into the java layer, I wonder how I can connect this exception to the wire on the side of the actionscript. The MethodReturnEvent reference is an event.error but which seems to have no knowledge about what really happened on the java service layer and I couldn't understand how to share this information with actionscript (in case of failure). Before you build another layer to manage exceptions, I was wondering if there was all recommendations of the team of webclient on how handle java exceptions and pass information from java to actionscript to handle additional failure in actionscript (perhaps show a dialog error saying something is is wrong and how remedy).

    Thank you.

    In this case, see the global services-ui and Global Services-service examples that are provided with the SDK. There examples you're looking for.

    See especially pass method and the call for return.

  • Error: No mapping between account and the security of ID names was done when trying to setup of Dragon NaturallySpeaking 10.

    Original title: no mapping between account and the security of ID names was done.

    I am trying to set up my Dragon NaturallySpeaking 10 program. My computer (Dell Studio 1550 on Win 7 64 bit) has been recently reset and during the reinstallation of the DNS and the subsequent fine adjustment, I came across a page that wanted my username and admin password.. I plugged in and it came up with the error message: "no mapping between account and the security of ID names has been done." There is one account on my computer and my admin. account. If something has been lost in resetting? How can I fix / security ID card? Thank you for your help.

    Hi Hasky620,

    I recommend you contact the support of Dragon NaturallySpeaking for assistance:

    http://www.nuance.com/support/index.htm

  • (1) now I use Lightrom 5.7 How to level 6 or CC? (2) what is the difference between the 6 and CC vercion? (3) when I used lightromm 3, inEXIF the distance in metres to the object that I took, in the virsions later that the function has disappeared, I coul

    (1) now I use Lightrom 5.7 How to level 6 or CC?

    (2) what is the difference between the 6 and CC version?

    (3) when I used lightromm 3, I could see in EXIF distance in metres to the object that I took, in the virsions later that the function is missing, it is very sad I am stiil waiting and I hope it would be possibble in new versions. Or this indication may possible by setting?

    (1) now I use Lightrom 5.7 How to level 6 or CC?

    Buy the standalone update from here: products

    Download CC version here: Adobe explore desktop apps | Adobe Creative Cloud

    (2) what is the difference between the 6 and CC version?

    See this comparison chart: Lightroom compare versions. Adobe Photoshop Lightroom CC

    (3) when I used lightromm 3, I could see in EXIF distance in metres to the object that I took, in the virsions later that the function is missing, it is very sad I am stiil waiting and I hope it would be possibble in new versions. Or this indication may possible by setting?

    Plugin ExifMeta of Rob Cole displays the distance between the subject field (and much more).  Unfortunately, his Web site seems to be down again.  He has been very active here, but he has not posted in several months.

  • I'm on a W7 PC, of FlashProCC. -Have a Z1, jpg in the library. Choose Properties, export for ActionScript and get name Z1, class flash.display.BitmapData - how I introduce in a display by using Action Script 3.0 object?

    I'm on a W7 PC, of FlashProCC. -Have a Z1, jpg in the library. Choose Properties, export for ActionScript and get name Z1, class flash.display.BitmapData - how I introduce in a display by using Action Script 3.0 object?

    var z1:Bitmap = new bitmap;

    Z1. BitmapData = new Z1 (1,1);

    yourDisplayObject.addChild (z1);

  • Attribute mapping between ldap and ecm11g internal user profile user

    Hi all

    I use ucm11g, is there a way to map between ldap and ecm11g internal user profile user attributes? I tested with an attribute named homephone wls embeded LDAP, create the attribute homephone in ecm11g the user after login profile, I can't find the value in the ecm11g user profile.

    Best regards

    In earlier versions, there was LDAPProvider which was replaced by JpsUserProvider to 11g. This component allows you to do a bit in the interface, but there are a few more options which do not seem to be documented. For example, if you have a HomePhone field and enter 123456789 inside and then empty, by default, the JpsUserProvider component will not empty field the Complutense University of MADRID. You can change this by entering ClearMissingAttributes = true in the provider.hda file. Or if you want to use the credentials, you will need to change provider.hda with ProviderCredentialsMap = name_of_map (my source for the latter was the ECM blog at http://blogs.oracle.com/ecmarch/2011/03/).

    For more information on JpsUserProvider, look in the Administrator's Guide:

    When to add JPS provider: http://download.oracle.com/docs/cd/E14571_01/doc.1111/e10792/c02_settings007.htm#CSMSP496

    Adding a JPS Provider: http://download.oracle.com/docs/cd/E14571_01/doc.1111/e10792/c02_settings007.htm#BEIIAHHI

    I hope this helps!

    Frank.

Maybe you are looking for

  • Record of 312 ReadyNas Backup Job does not connect

    Hi all We have a readyNAS we are trying to save on Dropbox.com. However, when I try to save more then a part of the second I try to backup will not backup. I have to disconnect and reconnect the ReadyNAS on dropbox and then I can start the second par

  • Office jet Pro L7780: Office Jet Pro L7780 stopped scanning after upgrading to El Capitan

    After the upgrade to El Capitan I can't us the scan function.  I deleted and reinstalled the driver.  Scanner does not appear.  I tried to install HP "Easy Scan" and it says that the scanner is not available. What to do? Thank you Ron

  • WRT54GL cannot transmit from inside the LAN port?

    Hello I have a Server servers running several (HTTP, SVN, FTP,...) inside my network. I used to have a SMC router in the past, and of course I had to use port forwarding. This is why I realized that when we "talk" to the server, I can 'talk' to the r

  • Smartphones blackBerry how to enable java in my 8900

    I can view any video on my 8900 coming from any website, and I can also hear no sound when the file send a sound, which could be the problem, I think it must be the activation of the javascrips, but don't know hoe to do. Or it may be something else,

  • Photosmart 4280 do not print

    With my printer, I try to print an e-mail message.  I have a Mac.  When I go to the file and click on print, photosmart specifications come on the screen.  When I then click on print, it starts printing, then disappears.  Help