How to expose Hibernate 'non' conventional beans into flex apps via remoting

I am relatively new to the flex world. I am from the
Spring/Hibernate world.
In Hibernate, the POJO object or domain object , or simply
beans that you use to persist you object into the database does not
have to follow the bean definition/contract, i.e: public default
constructor with getter/setters. There are good reasons behind
creating those kind of 'hibernate beans' (I will call them that way
for lack of a better name). In fact, only defining a one-parameter
constructor (i.e. omitting the default one) guaranties you that
your client cannot invoke your API without that needed parameter.
Likewise, exposing only the getters for some private member
variables (without the setters) make sense when you don't want that
variable to ever change, etc....hibernate can do all that using
cglib, etc....
Now, my understanding of Flex and how remote services work
(from what I could see in all the samples around about
hibernate/spring), is that your java server bean get proxied
'dynamically' or 'statically' if I wish into an Actionscript class
object according to the rule: "values found in public bean
properties with get/set methods and public variables ", therefore
my public getVariable() from my 'hibernate' bean does not get sent
back.
This is creating me tons of problems, because the server API
already exist and we already have a JSF implementation using
it....Changing into flex is just my own initiative to prove that we
can get better UI...
What is flex/BlazeDS solution for fixing this case?
One solution that comes to mind (not very bright, but should
work) is to build a plain java bean object for each of these
'hibernate' beans to ensure the translation on both side between
the 'hibernate bean' and the 'expected' bean from flex. From the
server to the client, It would to copy the content of the hibernate
bean and return those 'proper' beans back to flex. On the way out
(from the client to the server), it would have to recreate the bean
as exposed on the server before sending it to the server).... It's
probably not the best solution, especially considering that
eventually as some point, I will need to define another set of
those object, in flex, using actionscript (I think these are what
you guys call VOs) in order to do strong typing in
flex........becomes very tough to manage!
Any input would be valuable.
Thank you,

Hi Saket,
By 'not really complete' I'm assuming (hoping) that some work has been done on this already.  Our project requires the use of custom assets, so it's very important that we get this functionality running as soon as possible.
Any help, unsupported or otherwise, would be great.  Feel free to email me any details if you'd prefer not to post anything public on the boards.
Cheers,
Kristian

Similar Messages

  • How to make Form builder 10g step into libraries *.pll while remote debug

    How to make Form builder 10g step into libraries *.pll while remote debug. It attaches fine and goes through code located in form but skips pll's. In this case I am interested in debuging CUSTOM.pll. How to step into pll's and is it possible at all?

    Is the library in the same directory or within your FORMS_PATH? Note that the runtime setting in the default.env doesn't work for the builder.
    cheers

  • How CAn I Use a URL variable in Flex App

    Let say the link to a web page embedding a flex 2.0 app is
    http://www.myname.com?name=Bruce
    and I need to use the URL.name variable in the Flex app.
    How can I access URL parameters inside my Flex app?
    Bruce

    You probably know by now but I though maybe a could actualy
    answer someone question.
    {Application.application.parameters.name)
    put that in mx:text and you can see the var "name"

  • How can I incorporate new backing beans into a Webcenter Spaces Server?

    I am using the WebCenterSpaces application in Customization Developer Role to make changes to some taskflows for a customer. In order to implement a desired change in the Nav Model for the customer, I had to write 3 very small backing beans. They compiled fine, the taskflow let me add them as managed beans. It even new about these backing beans, presumably because I compiled them. I made changes to the .jsff file to use them and that worked fine. However the metadata.mar created when I deploy the application does not have these new classes, so they will not get put into the WC_Spaces server when I use WLST to import the metadata. Can anybody tell me how to get new backing beans into WebCenter Spaces?
    I cant be the only one who has had to do this.
    Thanks.

    I don't know if you can import as part of the metadata import but an alternative will be to create a shared library out of your java classes and referencing the shared lib in spaces.

  • How do I convert a pdf form into an app?

    I am NOT a programmer but it seems to me that it shouldn't be that difficult to convert a pdf form into an app? There must be some kind of tool within adobe that I can use to do so? I am a member of Creative cloud.
    Jamie

    Hi Jamie1moon,
    You are trying to convert the form into which format?
    Adobe Acrobat can be used to convert a pdf into formats such as .doc,.docx,.ppt,.xls,.jpeg etc. but it will remove the existing formats and validations if any applied on the form fields.
    Please check: http://www.adobe.com/products/acrobat/pdf-to-word-doc-converter.html
    Regards,
    Rave

  • How do I import non-numeric data into DIAdem?

    I have some non-numeric data in an Excel file which I would like to import into DIAdem. DIAdem recognizes the file and imports some of the data, but it only imports those cells that are purely numeric. Cells containing non-numeric characters are ignored. But I need that non-numeric data! How do I force DIAdem to import everything? (Some controls appear in the import dialog that seem like they might be useful here but they're greyed out.)

    Hi There,
    You can not load text columns from ASCII files into DIAdem 8.1 DATA channels (numbers only). But the ASCII Import Wizard will let you send those text values to either a separate ASCII file, which DIAdem can use to put them on a graph as labels, or to a DIAdem string array, which DIAdem can use to display them at various places in its environment.
    The below attachments demonstrate reading an ASCII text column into a DIAdem string array and displaying the values on a DIAdem table in GRAPH. Note that the index values of the string array are placed in a DIAdem DATA channel.
    Ask if you have further questions,
    Brad Turpin
    NI
    Attachments:
    ASCII_Text_Column.txt ‏1 KB
    ASCII_Text_Column.STP ‏1 KB
    ASCII_Text_Column.LPD ‏3 KB

  • How to? importing non-encrypted DVDs into iMovie

    new to Macs - my Sony digital video camera does not have a Firewire port. I'm thinking of having my mini DV tapes of my son converted onto DVD. Does anyone know of a way to get DVDs imported into iMovie? Is there a better way than converting my mini DVs to DVD?

    Yes. iLink is Sony's name for FireWire.
    I'm pretty sure your camera has it, though it probably did not come with the cable.
    The cable you want is a 4 to 6 pin FireWire Cable such as this one;
    http://www.amazon.com/gp/product/B00005NIMR/sr=8-1/qid=1145483134/ref=sr11/002-1498406-8363234?%5Fencoding=UTF8
    No need to buy a Sony branded one.
    Matt

  • After backup - How to manually restore some Gmail emails into Maill app ?

    My MBP recently crashed!
    I have my previous HDD still avalaible (inside a USB case, so I can access it if I plug it)
    Since I have reboot from Time Machine, my most recent time mahcine backup was... 2 months old :-(
    I use Maill app, I have 2 email accounts, they are both driven from Gmail small business
    Since I have just rebooted my system form this 2 months old backup, I am afraid of opening my Mail app.
    • How to manually restore my last 2 months emails (driven from gmail sb) back into my Mail app ??

    I took my courage and opened my Mail app. Even tough I have restore my computer from a 2 months old backup on my Time Machine... tough I would loose 2 months of emails... NO! Once Mail opened it connected to Gmail by itself and reloaded everything automatically.. Wow men, I just love GMAIL ! :-)
    Problem solved !

  • How to asmcmd cp non ASM files to ASM on a remote node

    We have a 8TB database, RDBMS 11,1. on Solaris 10, non ASM. Need to copy the 1290 files to remote node of AIX ASM to prepare for a upgrading to 11.2.0.2.
    We tried to use asmcmd cp to copy the files directly from non ASM too ASM remotely, but did not work.
    $ asmcmd cp -ifr [email protected]:/oradata/prdsdev/datafiles/dev_4.dbf +PRDSU_DATA/PRDSU/TEMPFILE/dev_4.dbf
    Enter password: ********
    Argument "normal" isn't numeric in numeric ge (>=) at /optware/oracle/11.2.0.2/grid/lib/asmcmdshare.pm line 1676.
    errors
    ORA-01031: insufficient privileges (DBD ERROR: OCISessionBegin)
    We were using the user fttr. Do we need to login as SYSASM, do we need to go through OS auth, any other privilege required. What instance do we need to login, regular database that is using the data files, or ASM instance is goin g to manage the files.
    Thanks in advance

    1. my previous question is if asmcmd cp can accomplish the task.
    2. RMAN COPY, as I know, will either copy non asm files to ASM files locally, or copy files asm to asm across nodes. which means that we have to do two steps, rather copy the non asm files to a node of asm directly.

  • Do you have to be logged into test agent via remote desktop for tests to run

    Hi 
    I have some coded UI tests now working and they successfully run in my test agent. However they don't run if you don't have remote desktop open and you are not logged into the test agent itself with the desktop active.
    Error was:
    Automation engine is unable to playback the test because it is not able to interact with the desktop.  This could happen if the computer running the test is locked or it’s remote session window is minimized.
    Any ideas how to get round this?
    Kind regards
    Rob

    Hi Rob,
    >>Automation engine is unable to playback the test because it is not able to interact with the desktop.  This could happen if the computer running the test is locked or it’s remote session window is minimized.
    This is by Design as for Playback an Active session is needed as in coded UI tests we do actual Mouse and Keyboard actions.
    Like Vishnu's suggestion in this blog:
    http://blogs.msdn.com/b/vishnus_blog/archive/2013/05/05/coded-ui-test-not-able-to-interact-with-the-desktop.aspx
    For the UI tests, the active desktop session has to be opened. We have faced this issue and we have couple of solutions
    1. Open a Hyper-V session onto the machine where the UI Tests are running. You can minimize the hyper-V window and the tests will still run fine.
    2. If you are running tests in a Lab Environment created from Microsoft Test Manager, Run the tests and open LEViewer[Lab Environment Viewer] to keep the desktop session active.
    3. Enable AutoLogon on the machine where the tests are running and restart the machine. Then you don't need to do remote desktop -
    http://support.microsoft.com/kb/310584
    Best Regards,
    Jack 
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • Possible to login into Win7 machine via Remote Desktop?

    hey guys, i've been trying to find a solution to be able to write to NTFS drives. i've read that using exFAT is a good way to go. the other thing i wanted to try was to login to a Windows machine that's connected to the NTFS drive and write to it that way. how can i do this?
    thanks

    If you want to write to the NTFS drive via the Windows system, then you want to have Windows share the drive, so that you can use Mac OS X:
    Finder -> Go -> Connect to Server -> smb://windows.machine.address/share_name
    This would mount the shared NTFS file system on your Mac OS X system and allow you to read and write to it.
    If you need to access the Windows Desktop, then use the above mentioned Microsoft RDC software, or download CoRD from MacUpdate.com.  Both good Windows Remote Desktop Clients.

  • How do I launch an application i.e iMovie.app via console? It is purely for self interest nothing else

    The reason I want to know is if I were to ssh into another mac on my home network via terminal, Would I be able to launch an application like iMovie.app for terminal, I tried however maybe my syntax was not good.  from /Application folder in terminal I typed iMovie.app and pressed enter. This did not work for me.

    if I were to ssh into another mac on my home network via terminal, Would I be able to launch an application like iMovie.app for terminal
    You can do the above, or use the 'open' command, but it will just display on the Mac you are ssh'ed into
    open -a iMovie
    You can start a Screen Sharing session using
    open vnc://address.of.remote.system
    You can open a web page using
    open http://url.of.web.page
    You can open an image using
    open picture.jpg
    open image.png
    etc...
    You can open TextEdit session using
    open file.txt
    open file.rtf
    Actually opening any file that has an application associated with its .typ field can be done using the 'open' command.
    Message was edited by: BobHarris

  • Very Urgent--- How to Convert Non Valuated stk into Valuated

    Dear GURU'S
    Actually for a material A when i see the stock in MM03 in accounting tab i see less stock then when i see in MMBE
    i.e in MMBE if i select Material A and Plant B(Which is depo in my case) i see stock as 39
    but for same material MAterial A and Plant B ,if i see in MM03 --in accounting tab i m able to see less stock i.e only 1
    ============================================
    Well the problem is In MM03 I cud see only valuated stk i.e qty as 1
    And in MMBE for a partiocular material for a particular plant the stock was 39
    i.e Here i am getting Valuated + Non valuated stock
    i.e i am getting difference of 25
    =====>>>
    To get into the root cause
    I have gone to MB5B where i can get all the transaction that has been done on this material with movement type also i got the intial stock ,Goods recpt ,Goods  issu and total stock
    No for a particular material
    In MB5B it is showing
    Stock on 01.01.2005    =  38
    receipts total               = 238
    Issues total                  =237
    Stock as on 18.02.2008 = 39(which is equal to Stock in MMBE)
    =============>This is for valuated +Non valuated stock
    Where as if i want to see only valuated stock it was showing
    receipts total      = 238
    Issues total         =237
    Stock as on 18.02.2008 =1  (which is equal to stock in acctg view in MM03)
    ====================>This is only for Valuated Stock
    ======================================
    Now how to solve this :
    The initial qty(38) which has been posted it was at the begining that is at the start of the project
    And the people who have posted it ,it was non valuated
    that is the reason it is showing difference in MM03 and MMBE
    First thing
    How can i see on which date this initial stock has been posted
    Second Query
    How to convert this non valuated stock into Valuated stock
    So that the quantity in MMBE and MM03 gets matched
    Willl award 10 Points if my problem gets solved
    THANKZ IN ADVANCE
    REgds
    Shailesh

    Dear friend
    Actuallly i have checked the history of that particular Item in MB51
    I have gone through all the documents created for this material
    Now this material also exist in DEPO which is located at chennai and plant is at mumbai
    So Initially in the year-2006(31-10-2006) whater documents are created i.e STOP has  been created and delivery has been made (Mov type-601)
    are non valuated stock ,means they have been posted without any valuation
    But from year 2007(01.02.2007) the documents whiohc have been posted are valuated
    i.e is the reason when i am executing transaction MRN9 to check the history of valuated stock
    I cant see non valuated stock
    Well now how to do the valuation of this stock which have been posted in year 2006 so that
    In MMBE and MM03 there is no difference of stock
    Plz hepl
    regds
    shailesh

  • How do I transfer non-purchased songs to a new mac?

    I had a mid 2009 Macbook Pro and the hard drive in the computer got damaged. I was able to back up some stuff but because this unexpectedly happen I was not able to back up my itunes library. My other apple products are synced via icloud and i wouldnt have a problem transfering the itunes songs into a new mac. the problem is that i have non-purchased songs and I dont know how to transfer them into the new mac. Does anyone know how can i transfer non-purchased content into itunes? Thanks for the help

    Unless you're able to restore them from the hard drive, you'll need to either do so from a backup or reload them from the original source.
    (124229)

  • How do I get my money back?   This app doesn't do what I need.

    How do I get my money back? 
    This app (Apple Remote Desktop) doesn't do what I need.   I only need screen sharing with one user. 
    Installation and setup of ADR was so complex that I was forced to find a simpler workaround. 
    I found that a substitute function (75 percent of what I need) is built into Skype.   It's a pain, but it works. 
    I'd want to get my money back for this expensive Apple Remote Desktop.    I never got the software to work, not even once. 
    I can't find anywhere that the App Store gives any sort of money-back guarantee. 

    Hi,
    Actually I'm sure it says all sales are final - i.e. Tough....
    Unless you can prove that the product description was flawed in which case you can rely on your contries consumer laws.
    Regards,
    Shawn

Maybe you are looking for