Best way to automatically map Java bean hierarchy to JavaFx property bean hierarchy

We do not want JavaFx on the server side, so our DTO objects are plain Java beans.
On the client side, we want to use the comfort of JavaFx bindings. As we're using Java 7, POJO bindings aren't possible yet.
So we're looking for a way to automatically wrap the Java beans in JavaFx property beans.
Possible approaches I've been looking into:
- Code generation via JCodeModel
- JavaBeanPropertyBuilder
Ideally, we would want to have classes with structured JavaFx properties as a result, so that an ObjectProperty does not use the bean class, but always the respective JavaFx property bean class.
This is so we don't need too many low-level bindings, but can rely on deep select bindings.
This goes beyond the capabilities of JavaBeanPropertyBuilder as far as I understood it, so I'm left with fairly complex code generation using JCodeModel.
Does anyone have some experience to share? Am I missing an option?

Andipa wrote:
As we're using Java 7, POJO bindings aren't possible yet.
I'm sorry to reply without a good suggestion, but is there some type of POJO binding support in Java 8?
This is what I currently use for POJO binding, but it doesn't sound very close to what you're asking for.  A lot of code still needs to be written by hand.  Also, I've only used it with relatively flat models so far.

Similar Messages

  • Best way to remove Stateful session beans

    Hi folks.
    I'm running Weblogic 6.1. I'm trying to find the best way of removing
    stateful session beans. I know to call EJBObject.remove() on the
    client side, but this will not always happen if the client crashes or
    times out. This is a java client application connection to weblogic,
    no servlets are involved.
    Is there a way to signal the appserver to remove all stateful session
    beans associated with a user when the User logs out? I would rather
    not remove them using a time out mechanism.
    thanks.
    rob.

    But in the documentation and also based on my experience I noticed that the
    timeout does not take effect till the max-beans-in-cache limit is reached.
    How do you handle that?
    "Thomas Christen" <[email protected]> wrote in message
    news:3e35795d$[email protected]..
    Hi,
    Is there a way to signal the appserver to remove all stateful session
    beans associated with a user when the User logs out? I would rather
    not remove them using a time out mechanism.Had the same problem and solved it the following way :
    - The client has thread polling its sessionbean at the server (every 30
    Sec.)
    - The session bean has a short timeout (2 Minutes)
    If the client fails, the timeout will catch it otherwise the client will
    gracefully call remove bevor exit.
    Regards
    Tomy

  • Best way to automate visio diagram on sharepoint

    Hello,
    I've created a visio diagram from sql data and published on sharepoint as .vdw file. Its an orgchart diagram.
    The orgchart shapes are updated based on the values from the sql table data. But when new rows are added to table or rows are removed from the table there is no way for the diagram to add those or remove those shapes unless we create a new orgchart diagram
    from the table. What is the best way to automate this process and publish to sharepoint?
    Thanks.
    rani

    Some form of Visio Automation needs to be employed. Be that C# or Powershell  there are examples of both below, but not data binding specific.
    https://blogs.technet.com/b/heyscriptingguy/archive/2010/01/11/hey-scripting-guy-january-11-2010.aspx
    http://stackoverflow.com/questions/14730083/visio-automation-via-powershell
    w: http://www.the-north.com/sharepoint | t: @JMcAllisterCH | YouTube: http://www.youtube.com/user/JamieMcAllisterMVP

  • What is the best way to deploy a java application ??

    Hi,
    I have a question about "deploying" a java application on to a weblogic server.
    Please advise me how to automate in a best way to Deploy 10 different applications(.ear/.war) to 10 different Clusters(containing 40 Managed servers) in wls6.1......and that too in a Production environment.
    I know of using Weblogic Console OR the "deploy" utility to do so ......BUT if i have like 100 clusters .....then i would have to "deploy" 100 times ......
    is there any way that we can BEST AUTOMATE this process.
    Thanks a lot.
    -sangita

    HELLO!!! WELCOME BACK!! I THINK YOU SHOULD USE
    deploy....Hey Thanks.
    is there any network congestion OR any other problem that i can anticipate before i use "deploy" utility. I have heared of some problems(i couldn't remember them now ....because honestly, i couldn't understand them atall when a BEA consultant told me those...).
    so, any problem that may arise ....that i need to think about before deploying ~10 applications to like ~70-80 clusters ....all at a time.
    thanks again for your advise. iam learning to see the big picture of application deployment.
    -sangita

  • Best way to define mapping

    Hi
    I am evaluating Kodo in the prospect to migrate an existing application
    which uses a different JDO implementation and I am currently wondering
    what is the best way to define the mapping.
    So far, we have only used __.jdo__ metadata file with default values and
    some jdo extension. Then we delegate to the JDO implementation the task to
    define the schema and create it in the relationnal database.
    I am trying to reproduce the same process with KODO. But :
    - I am encountering some problem with the kodo extension.(but they are
    certainly some mistake from my part, I will introduce some at the end of
    this email)
    - I understand that kodo can use a mapping file.
    Here are my very first questions
    - Which method should I use. Only JDO extension, or mapping file.
    - if I use the mapping file, is it possible to only specify info for
    fields which are different than default behavior of kodo
    - If I use the jdo extension only how can I :
    specify the name of a table for a particular class?
    specify the name of a join table?
    Specify the name of a column for a particular java field?
    Is there a way to configure the mapping tool to use a custom naming
    convention for the whole project (for a particular package)?
    I already made a small evaluation of kodo 7 month ago with version 3.1.0,
    but with this version, there was a bug discussed in this forum which
    forced me to use the mapping file. But I had to define the complete
    mapping, which was a huge task especially when you have to repeat field
    mapping for sub classes. My first tests with kodo 3.2.2 works with jdo
    extension, but I still have some issues as you can see from my questions.
    Thank you for your answer.
    Nicolas GANDRIAU
    Environment description
    Kodo 3.2.2 evaluation
    MySQL 4.1.4-gamma'-Max'
    MySQL Connector/J 3.0.15-ga
    JDK 1.4.2_05 de Sun
    Linux Kernel 2.6.8 (Mandrake 10.1)
    IDEA 4.5.2

    Nicolas,
    You need to define which mapping file using the kodo.jdbc.MappingFactory
    extension. Note that with either format that the mapping information
    must be complete (or you can have Kodo create them for you):
    http://solarmetric.com/Software/Documentation/3.2.2/docs/ref_guide_conf_kodo.html#kodo.jdbc.MappingFactory
    The metadata mapping factory is more verbose though all of your
    information is in a single file. .mapping files are more consise but
    need to be deployed in addition to your .jdo metadata.
    Nicolas GANDRIAU wrote:
    Hi
    I am evaluating Kodo in the prospect to migrate an existing application
    which uses a different JDO implementation and I am currently wondering
    what is the best way to define the mapping.
    So far, we have only used __.jdo__ metadata file with default values and
    some jdo extension. Then we delegate to the JDO implementation the task to
    define the schema and create it in the relationnal database.
    I am trying to reproduce the same process with KODO. But :
    - I am encountering some problem with the kodo extension.(but they are
    certainly some mistake from my part, I will introduce some at the end of
    this email)
    - I understand that kodo can use a mapping file.
    Here are my very first questions
    - Which method should I use. Only JDO extension, or mapping file.
    - if I use the mapping file, is it possible to only specify info for
    fields which are different than default behavior of kodo
    - If I use the jdo extension only how can I :
    specify the name of a table for a particular class?
    specify the name of a join table?
    Specify the name of a column for a particular java field?
    Is there a way to configure the mapping tool to use a custom naming
    convention for the whole project (for a particular package)?
    I already made a small evaluation of kodo 7 month ago with version 3.1.0,
    but with this version, there was a bug discussed in this forum which
    forced me to use the mapping file. But I had to define the complete
    mapping, which was a huge task especially when you have to repeat field
    mapping for sub classes. My first tests with kodo 3.2.2 works with jdo
    extension, but I still have some issues as you can see from my questions.
    Thank you for your answer.
    Nicolas GANDRIAU
    Environment description
    Kodo 3.2.2 evaluation
    MySQL 4.1.4-gamma'-Max'
    MySQL Connector/J 3.0.15-ga
    JDK 1.4.2_05 de Sun
    Linux Kernel 2.6.8 (Mandrake 10.1)
    IDEA 4.5.2
    Steve Kim
    [email protected]
    SolarMetric Inc.
    http://www.solarmetric.com

  • What is the best way to learn SAP Java

    Hi,
    I would like to understand basic principles of SAP Java, to check how it is working, primarily J2EE components like JMS, WS, EJB, Persistence... As I'm ABAP and PI consultant, I see this as my next step, sure I'm not aiming to be experienced Java developer beacuse this would require much more time than I have now.
    So far I read "Foundations of Java for ABAP Programmers" but I think that this is just a begining. I want to learn more stuff about SAP J2EE    and J2SE is for me, let say, clear.
    Also I start reading "Java Programming With The Sap Web Application Server" as my next book about SAP Java, but it is not quite that I don't like this book, it is somehow not interested for me.
    So I would like to hear your suggestions what is the best way or the best approach to learn SAP Java. I see this as future help for one ABAP and PI consultant. Also I've done some Mapping developments for PI (SAX and DOM parser), so really think for me to know Java better it will be "bigger plus" for me.
    kr
    mario

    I will suggest you SAP Elearning section on SDN about Java Development.
    Below is the link....
    http://www.sdn.sap.com/irj/scn/java-elearning?dprpp=all
    It contains lot of practical examples which will keep you interested as well..
    But you wil lhave to be very selective there on whaich topic you wish to kick start.........
    For example there is one called :
    Java for ABAP Programmers
    ABAP Objects for Java Developers
    SAP Java World for ABAP Programmers
    Java Mapping in Exchange Infrastructure

  • Best way to make a Java Messenger?

    I'm currently creating a Messenger service much like ICQ or AIM. I'm trying to find out what is the best way to do network communication and I was hoping some java guru might have some advice.
    Basically I need to know what would be the best and cleanest way for clients to talk to the server and visa versa. Here are the options I know of:
    1. Use pure datagrams and create my own byte by byte protocol.
    2. Use JMS (Java Message Service).
    3. Use some sort of RMI (remote method invocation).
    I want to be able to have a solution that will support massive amounts of users. Oh, and the program won't be a bean or applet, it will be a native application.
    Please give me some advice.
    Gregg

    Why not create your own protocol. I have a similar project. I'm going to be communicating to C on Linux. App will run in Windows. the only option I have is to create my own protocol. I'm not sure if RMI, Soap will help me here. Since the C side knows nothing ot those technologies.
    My quesiton concerns data. I will be creating a binary protocol.
    typedef structur protocol {
    int option
    int code
    unsigned char data[1024]
    } PROTO;
    That is not my protocol just an example. Question I have is that I do not have structures in Java just classes. How can I take data off the socket and type cast it to match the above structure?
    Chris

  • What is the proper and best way to destroy a java.util.List or Array for GC

    Hi,
    If I have a java.util.List of objects lets say:
    List<File> files = new ArrayList();The List contains 1000 file objects. When my class finishes, is it enough to do
    files = null;to make GC able to release it from memory?
    Cause it seems like I can't do the following:
    for(int i = 0; i < extracted_files.size(); i++){
                extracted_files.get(i) = null;
    }Or should I use this one:
    files.clear()What is the proper and best way to do this in order to avoid memory leaks? How about normal Arrays like File[]?
    Edited by: TolvanTolvanTolvan on 2009-sep-10 16:58

    TolvanTolvanTolvan wrote:
    Thanks for the info!
    But what if the List is a class variable running in a Web Service for like months without terminating?You mean if the List variable is a member variable of a long-lived object? Then presumably the list needs to live as long as the object does. In the unlikely scenario that the object needs to live on but its list member variable does not, then yes, setting the member to null will be needed to make the list eligible for GC. But I highly doubt this is your situation, and if it is, you probably have a design flaw.
    And if the list is referenced only by a local variable, then, as I already said, when the method ends, the variable goes out of scope, and the List is eligible for GC.
    Now, a slightly different situation is when the List needs to live a long time, and at some point during its life, you're done using some object that it refers to. In that situation, simply remove the element from the list (or set the element to null if it's an array rather than a list), and then if it's not referenced anywhere else, it can be GCed.
    How about Arrays like File[]? Do I need to iterate through the array and null all the objects or is it enough to just null the Array?YOU. DON'T. NEED. TO. HELP. GC. You don't need to set the elements to null, and you most likely don't even need to set the array variable to null.
    Also note that only references can be null, not objects.

  • What is the best way to automatically delete user profiles after x days of inactivity (school lab environment)?

    I work at a school where we have multiple Mac Carts that have 30 MacBooks per cart. We image the macs every summer to delete the older user profiles but we are looking for way to possible have this done automatically through out the year to help with HDD space. What is the best way to delete user profiles after...say 180 days.... of inactivity automatically? I am open to login hooks, bash scripts, etc. Anything to get the job done. Thanks for any help or advice.

    A search here turned up this post Deleting inactive users
    It appears that the script posted will do as advertised though I would test it out on your systems and under your conditions to see if it does do what you need.
    regards
    Message was edited by: Frank Caggiano - That script looks for users over 21 days. To look for ones over 180 days change the 21 to 180 in the find command.

  • Is RMI the best way for Applet to Java communications?

    I have an application that uses a Java program to read values from a PLC (programmable logic controller) via ethernet. I want to display them in Internet Explorer. Currently, I use SQL statements in the application and an applet to pass the values, but this causes the hard drive to be busy all the time. A better way would be to have the applet pass which registers to read for the current page to the application. The application then reads these values once every second (to update the page) and passes them back to the applet. Is RMI the best way to do this? The application and the applet run currently on the same PC, but I can envision going with a client/server architecture at some point in the future. Please respond to: [email protected] or [email protected] Thanks!

    Writing to the DB and reading back is not the best way of achieving IPC. You can use DB directly as long as both applet and application have permissions to do that. This has an advantage that it avoids RMI overhead (though not much). You would not be able to do this if your applet is going to be launched on a web environment (as typically, security policies do not allow you to write/read on local machine's DB or any m/c other than web-server's).
    I feel your current approach has the following
    advantages:
    --> There's no RMI(or any other IPC mech.) overhead involved.
    --> Best way to communicate if applet is permitted to do all the things that the application can do on DB.
    limitations:
    --> When applets are launched through web, this approach would work only if the DB resides on the same m/c as web-server(JDBC).
    --> Lot of DB I/O, table locks etc... affect performance. Application alone can do all that activity(minimized) and communicate it to the applet through RMI/callbacks.
    Alternate/better approach:
    RMI and Servlet combination can be used in order to overcome those limitations. In this scenario, your applet gets downloaded on to the client's m/c, servlets (which make RMI calls to the application running anywhere) reside on the webserver's m/c. applet talks to servlets, which in turn communicate with application(DB). This approach would work in any scenario, but not without the overheads of RMI and/or HTTP. But in my experience, I have noticed that these overheads are not too large.
    To decide upon the strategy to be employed, you should consider all the possible deployment scenarios of your system. For passing any object, you may use RMI for reliable, easy communication. It can serve more purposes than just passing DB data. This will make your system extensible.
    regds,
    CA

  • The best way for moving from Java To JSP....

    Hello Guys ,
    Actually i am New to Java Technology and i Love it very much , i am trying to do my best ...
    i Understand it , it`s Logical for me , as you told you i`m New to Java Technology and i wanna learn JSP as soon as i can , because i have to do the commercial Project "Website" for my Univ... And Sure i wanna Continue With Jsp .. For Enterprise Commercial Projects .Sure i will Continue with Java Too ..
    The Question is .. , What is the Best way i MUST follow to achive my target ?
    i mean if i can start with Jsp Directly , or i have to focus on special Topics in Java Before Strat JSP ...
    i have just 6 monthes to Perform my Commercial Project "Payment On line ..etc"
    So Please i really want your Help
    I`d be really thankfull for you guys
    thanx for your time
    Java son

    Enterprise Applications != JSP. JSP is just a
    front-end. For enterprise apps you'd probably rather
    need EJBs...Argh... not true. I see what you are getting at, as JSP is merely presentation layer stuff; however, EJBs are certainly not ever required per se, altho they may offer some services that may be useful. I suggest OP takes a look at Struts in order to separate the webapp in an MVC style so that the decision for what to use at the back is decoupled from everything else. If it is a simple webapp, and for a University then I don't think a complex back-end will be required. In any case webapps are not enterprise systems, but they may act as views on them in some cases.

  • Best way to send map directions to iPhone?

    What is the slickest way to send map directions prepared on the desktop to an iPhone, for use on the road?

    Just to the right of the Directions tab click the action icon (box with a right facing arrow) then click:  Send to (name) iPhone

  • Best Way to Expose our JAVA API as web service

    we have develop an API and now, we want these API available as web services. the API abstracts the developer from database connection and the developer has to only concern himself of the object model. our problem with this API is that if we distribute this to our co-developers, their applications will be connecting directly to our database. but if we have this as a webservice, the connections to the databse will be isolated between the host that's running the webservice and the database.
    what's the best way to move these API/objects to webservices? what are our options?
    thanks,

    You can pretty much put anything you want into a web service. But remember they are designed for network/internet calls so it might make sense to bulk wrap your API calls. Due to the large amount of XML that is required by a web service if your API is large and you will have many webservices you probably want to get a tool that can generate this for you.

  • How to Map Java Beans to appropiate ActionScript class ??

    Hi
    I find it  difficulty in writing a ActionScript class for java Bean.
    Is there any automation  tool avialable which will generate an ActionScript class basing on the java Bean ??
    Thanks in advance .

    I think GraniteDS has a tool for it.

  • What is the best way to learn about java?

    What is the best and cheapest way to learn java?

    I also am a Newbie to the Java language and am trying to get my head around it. I guess it all depends upon how much experience, and at what level, you have with programming in general. I have a good understanding of what my University tutor called "sequential logical thought" but I must confess this Object Oriented approach is, at first, most odd. However the Sun tutorial :
    http://java.sun.com/docs/books/tutorial/java/TOC.html
    : is the one I use the most. If I don't understand a specific computing term then I look it up at :
    http://www.webopedia.com/
    : which is a very good online encyclopedia of computing terms.
    There is also :
    http://www.joegrip.com/
    : which is an online "interactive" tutorial (you have to pay)
    I would advise against rushing out and buying a book until you have spent a whole day trolling through the 'net and seeing what it has to offer . There is a lot out there. The problem is wading through all the nonsense until you find what you're looking for.
    Good luck

Maybe you are looking for