Java framework/toolkit for POJO, database persistence and XML

Hi all,
I've been wondering if there's a toolkit or framework for developing Java program (could be standalone Java program, EJBs etc.)
I surfed around casually and found some but there isn't any detailed description of what and how each framework/toolkit does. So I hope to ask around if you've anything that you have used before and would like to point to me to look further.
Given the huge number of open source toolkits, libraries and frameworks out there, it can be quite confusing as to which one is more suitable for me. Also with Sun's move into JDO and Java Persistence API, things become more messy and complicated - there isn't any clear leader in this area and things are starting to change with the inclusion of JDO which seems to be the future standard persistence API to use.
So far, I've only worked with Hibernate for database persistence before. So I'm wondering if there're other options such as Hibernate with XDoclet, Castor and Spring framework etc. that can easily transform Plain Old Java Objects (POJO) -- hopefully using Java Reflection w/o using mapping XML files like in Hibernate -- into SQL for database persistence and XML text data and vice-versa. The current problem is that I've been spending tons of time writing code to transform data in Java objects into XML (using my own format) and also doing mapping files for Hibernate.
I am hoping for something simple like:
Object o = new Object();
o.setProperty = "something";
String xml = o.toXML(); // Convert object to XML text.
o.save(); // Save to database.
// The reverse: Parse XML into object and load from database
Object o = new Object();
o.fromXML(xml);
o.load();
// Properties should be initialized from database or XML.
Anything similar to this out there?

Hi,
Just to share what I've found after surfing a bit more on this issue to promote more discussion on this area.
For mapping of Java objects to XML, we can try looking more at Castor and JAXB.
For database persistence to/from Java objects, look at Hibernate and JDO.
There is this Hydrate project (hydrate.sourceforge.net) that I do not know where it fits in still. But it is supposed to do data transformation and mapping between Java objects, XML and database representation.
Fyi.

Similar Messages

  • Reference Library for Converting Between LabVIEW and XML Data (GXML)

    Please provide feedback, comments and questions on the Reference Library for Converting Between LabVIEW and XML Data (GXML) in this thread.
    The latest version of the NI GXML Library is availble in VIPM on the NI LabVIEW  Tools Network repository.

    Francesco, Thank you for the feedback.  With this component it was my intention to make a more "terse" version of the LabVIEW Flatten to XML VI that was also supported on RT and that gave the user more flexbility regarding the structure of the parsing type definition. I think you are right that the XML parser is not compliant to section 2.11 of the XML spec.  The parser does specifically looking for a #D#A and this appears to be an oversight on my part.  Please confirm for me, the specifcation is saying that the XML parser should be able to recognize three possibilities as an "end of line" character: #D#A, #D, or #A.  Am I reading this right?There are more efficient (and in some cases much more efficient) ways of sharing data between LabVIEW and LabVIEW: some examples are flattened binary strings and the datalog binary format.  XML is slower than these optons but the upside is that it is human readable.  Furthermore XML is inherently hierarchical which is convenient for complex data structures like clusters of arrays of clusters, etc.  If you don't care about human readability then you are correct XML doesn't make as much sense.I will return to the GXML source code and try to fix this in the near future but I would hope that instead of creating yet another custom VI from scratch that you could reuse what I have provided for you.  I included enough documentation in the source code so that users could make some modificiations themselves. The target application for this reference library was LabVIEW to LabVIEW communication.  As such I documented the schema on the dev zone document from a LabVIEW perspective.  It includes all the supported datatypes and all the supported data structures (cluters, arrays, multidimensional arrays, clusters of multidimensional arrays, etc.)  I do see some value in making a more conventional XML spec but the time investment required didn't really line up with my intended use case. Were there any other downsides to GXML that I have missed?  Best Regards, Jeff TippsSystems Engineer - Sound and VibrationMessage Edited by Jeff T. on 04-21-2010 10:09 AM

  • JAVA IDE options for development against OAS and Oracle8i

    I'm wondering whether JDeveloper is the only Java IDE option
    when developing Java apps for deployment on OAS and Oracle8i.
    Is it possible to use VisualCaf     or Jbuilder instead and how
    does these tools compare to JDeveloper?
    null

    Jesper Bech Petersen (guest) wrote:
    : I'm wondering whether JDeveloper is the only Java IDE option
    : when developing Java apps for deployment on OAS and Oracle8i.
    : Is it possible to use VisualCaf     or Jbuilder instead and how
    : does these tools compare to JDeveloper?
    JDeveloper2 provides a natural coupling to OAS and 8i which no
    other tools offer. The Connection Manager, Oracle's InfoBus
    beans, Info Form wizards, CORBA definition wizards, deployment
    wizards for 8i etc. are all there to tie the suite together.
    I used JBuilder with 8i813beta well before JDev2Beta was
    released for Web Server Applications/CORBA. 8i provides a
    number of command line utilities(loadjava, dropjava, publish,
    sess_sh etc) to perform the deployment of CORBA objects. JDev2
    are essentially calling those utilities but wrapped around a GUI.
    You can certainly use other tools but you will probably discover
    some critical features are missing. Features such as SQLJ
    support and a light weight servlet engine for debugging servlets
    are well worth it.
    One thing I hope Oracle would address is remote debugging of
    Java in the Database(either JSProcs/CORBA objects). You can
    certainly debug CORBA objects outside the database using
    Visibroker/OSAgent but this means you have to change a lot of
    code for debugging b/c Visibroker doesn't support sess_iiop nor
    AuroraJTS.
    DEV TEAM ARE YOU LISTENING!!!<g>
    There are a number of other concerns that I've listed in a
    post "heavy IIOP issues - 8i/408" but nobody has responded to
    that and probably never will.
    I think JDev3 with OBC4J will offer further encouragement to
    move away from other dev tools though. Depending on whether
    your organisation will take advantage of this new enterprise app
    framework you may not need to make the move. I dont know I
    haven't used it but I'm waiting in anticipation. I'd be
    interested in hearing what the beta testers are saying about the
    speed issues!
    rgds ash
    null

  • Migration toolkit for RAIMA database to ORACLE database

    We have to migrate a RAIMA database (version 4.5) to an Oracle8i
    (8.1.7.0.0)database.
    I found a migration toolkit on the OTN WebSite at the following
    adress:
    http://otn.oracle.com/tech/migration/toolkits/content.html
    the one I can get there, has been developped to migrate a RAIMA
    database to an Oracle version 7.x database under UNIX.
    I need a migration toolkit to convert the RAIMA database to
    Oracle8i database running under Microsoft Windows operating
    system (9x, NT or 2000)
    Can I find one somewhere ? If not, Does-it exist a way to modify
    the UNIX toolkit to Windows ? If Yes, what do we have to do.
    Thanks,
    Pierre Marois
    COGI-OMH

    Hi,
    I've had a quick look at the kit.
    There should be no problems migrating the database to Oracle 8i
    or 9i using the kit.
    As for using the toolkit on Windows, I would try and convert the
    UNIX scripts to Windows scripts, but if you can't, you'll just
    have to do what the scripts to manually.
    The C program that fixes the output from Raima looks like you
    should be able to compile that on Windows.
    It might be easier to get a UNIX machine and convert it on that :).
    Hope that helps.

  • RE: Looking for some database statistics and wait event statistics

    Hi:
    We are using Oracle 10g RAC on Sun Solaris 5.9.
    1) In GV$SYSSTAT, we cannot find the following database statistics:
         'global cache converts',
         'global cache convert time',
         'global cache gets',
         'global cache get time',
         'global cache convert timeouts',
         'global cache defers'
    2) In GV$SYSTEM_EVENT, we cannot find the following wait event:
         'buffer busy global CR'
    For 1) and 2), could you please tell us where to retrieve the above information,
    or suggest a reasonable alternative?
    Have these stats been removed in Oracle 10g?
    Have they been renamed? To what?
    3) We currently compute the number of additional redo logs that can be accommodated in the free space of the archive directory using the formula:
    (arhive directory free space / redo log file size)
    However, using ASM we find that the free space for a ASM diskgroup is being reported as zero in the table v$asm_diskgroup if the diskgroup is mounted manually. How would one go about retrieving the free space for a logical volume?
    Thanks

    Hi:
    We are using Oracle 10g RAC on Sun Solaris 5.9.
    1) In GV$SYSSTAT, we cannot find the following database statistics:
         'global cache converts',
         'global cache convert time',
         'global cache gets',
         'global cache get time',
         'global cache convert timeouts',
         'global cache defers'
    2) In GV$SYSTEM_EVENT, we cannot find the following wait event:
         'buffer busy global CR'
    For 1) and 2), could you please tell us where to retrieve the above information,
    or suggest a reasonable alternative?
    Have these stats been removed in Oracle 10g?
    Have they been renamed? To what?
    3) We currently compute the number of additional redo logs that can be accommodated in the free space of the archive directory using the formula:
    (arhive directory free space / redo log file size)
    However, using ASM we find that the free space for a ASM diskgroup is being reported as zero in the table v$asm_diskgroup if the diskgroup is mounted manually. How would one go about retrieving the free space for a logical volume?
    Thanks

  • Sun Java Wireless Toolkit for Solaris

    I dont see the SJWTK for Solaris in list update of NetBeans, only 2.1.
    However, in the site already exists version 2.5.X., but Linux and W32, why?

    I also wanted to use JWT 2.5.2 on Solaris but it seems there is no supporting libraries. I get the following error when trying to run the Linux ktoolbar:
    Exception in thread "main" java.lang.ExceptionInInitializerError
    Caused by: java.io.FileNotFoundException: /usr/local/WTK2.5.2/wtklib/SunOS/ktools.properties (No such file or directory)Any plans to support Solaris?
    Edited by: JacoVosloo on Nov 8, 2009 12:55 PM

  • Trying to understand a crontab job for my database export and reloading

    FILE=ENTP_`date "+%d%m%y"`.dmp.Z
    LOG=ENTP_`date "+%d%m%y"`.log
    rm -f /tmp/exp_pipe
    */sbin/mknod /tmp/exp_pipe p*compress < /tmp/exp_pipe > $FILE | echo $PASS | exp ben@XEPROD tables=TBL_ABCD,TBL_EFGH,TBL_IJKLM_QWER triggers=n direct=y *file=/tmp/exp_pipe* log=$LOG
    rm -f /tmp/exp_pipei don't understand the bold parts.
    what i know from /sbin is, anything that is put within there is for root command only. So my thinking, the above job can only executed in root enviroment.
    the file part , what i understand is oracle exp / imp command and normally the file= will be like file=some.dmp . So now it become /tmp/exp_pipe which causes much confusion. Cos according to the declare variable, it should be file=$FILE .

    flaskvacuum wrote:
    FILE=ENTP_`date "+%d%m%y"`.dmp.Z
    LOG=ENTP_`date "+%d%m%y"`.log
    rm -f /tmp/exp_pipe
    */sbin/mknod /tmp/exp_pipe p*compress < /tmp/exp_pipe > $FILE | echo $PASS | exp ben@XEPROD tables=TBL_ABCD,TBL_EFGH,TBL_IJKLM_QWER triggers=n direct=y *file=/tmp/exp_pipe* log=$LOG
    rm -f /tmp/exp_pipei don't understand the bold parts. The parts you've marked are simply formatting options for the date command:
    # date
    Tue Feb  7 17:26:49 PST 2012
    # date '+%d'
    07
    # date '+%m'
    02
    # date '+%y'
    12
    # date '+%d%m%y'
    070212
    #The date command, along with its formatting options, is wrapped in backticks. This will fork a shell to run the subcommand, and substitute the shell's output (the output of the date command) into the containing string. That containing string is defining a variable. Taking the first example:
    # echo $FILE
    # FILE=ENTP_`date "+%d%m%y"`.dmp.Z
    # echo $FILE
    ENTP_070212.dmp.Z
    #>
    what i know from /sbin is, anything that is put within there is for root command only. So my thinking, the above job can only executed in root enviroment. There are a number of utilities in /sbin that can be run as normal users, perhaps with a more restricted impact. That subdirectory just contains things that a normal user doesn't regularly need to have on their search path ($PATH).
    the file part , what i understand is oracle exp / imp command and normally the file= will be like file=some.dmp . So now it become /tmp/exp_pipe which causes much confusion. Cos according to the declare variable, it should be file=$FILE.The named pipe being used in your example is to compress the output, thereby reducing disk space. Breaking the example down into a more simplistic example:
    bryan$ FILE=ENTP_`date "+%d%m%y"`.test.out.Z
    bryan$ echo $FILE
    ENTP_070212.test.out.Z
    bryan$ rm -f /tmp/exp_pipe
    bryan$ mknod /tmp/exp_pipe p
    bryan$ compress < /tmp/exp_pipe > $FILE | echo this is a simple test > /tmp/exp_pipe
    bryan$ ls -la $FILE
    -rw-rw-r--. 1 bryan bryan 27 Feb  7 17:46 ENTP_070212.test.out.Z
    bryan$ file ENTP_070212.test.out.Z
    ENTP_070212.test.out.Z: compress'd data 16 bits
    bryan$ zcat ENTP_070212.test.out.Z |more
    this is a simple test
    bryan$The mknod creates the pipe, compress reads FROM the pipe, and writes the compressed output TO $FILE. You could have put compress in the background with an ampersand, but simply suffixing it with a pipe has the same effect given that when "exp" is finished writing to the pipe (signaled by EOF), compress would return anyway. The end result is something like this:
    exp command file=pipe_file --> compress reading FROM the pipe_file --> $FILE which is a *.Z file indicating it is compressed output.
    Best Regards,
    Bryan Wood

  • How to configure SharePoint 2010 / 2013 Search for SQL Database Contents and Oracle Database Contents?

    Hi All,
    We are planning to maintain the contents in SQL / Oracle. Could you please suggest anyone which is best for SharePoint 2010 / 2013 Search. How to configure the search for external content source?
    Thanks & Regards,
    Prakash

    This link explains supported and non supported scenarios to use Oracle for BCS
    http://social.technet.microsoft.com/Forums/sharepoint/en-US/453a3a05-bc50-45d0-8be8-cbb4e7fe7027/oracle-db-as-external-content-type-in-sharepoint-2013
    And here is more on it
    http://msdn.microsoft.com/en-us/library/ff464424%28office.14%29.aspx 
    And here how you can connect Oracle to SharePoint for BCS functionality
    http://lightningtools.com/bcs/business-connectivity-services-in-sharepoint-2013-and-oracle-using-meta-man/
    Overall it seems SQL doenn't require any special arrangement to connect BCS to SharePoint.
    Regards,
    Pratik Vyas | SharePoint Consultant |
    http://sharepointpratik.blogspot.com
    Posting is provided AS IS with no warranties, and confers no rights
    Please remember to click Mark As Answer if a post solves your problem or
    Vote As Helpful if it was useful.

  • Adobe PDF Test Toolkit for adobe 11.0 and QTP (11.0 & 11.5)

    i am getting msvcr90.dll error msg after installing the Adobe PDF Test Toolkit. Can anyone help in this?

    And talking about actual versions; the Reader version you downloaded is very old.  The current versions are 10.1.13 and 11.0.10.

  • Howto delete Resource Provider Name for a database persistence provider?

    Hi,
    I have performed the steps successfully given here: http://mike-lehmann.blogspot.com/2006/09/simple-mdb-with-oracle-database-jms.html
    Now, I need to do a clean up for this complete task. I have been able to do so completely sans one problem that if I want to do it again, the Resource Provider Name is visible in EM.
    The steps I have taken to to clean the task are:
    1. Undeployed the MDB application.
    2. Deleted the data source
    3. Deleted the connection pool
    4. Undeployed the RA (doing so the JMS destination also got deleted)
    5. Deleted the JMSUSER schema/user completely.
    My environment is RH4 Update 5 + AS 10.1.3.1.0 [J2EE Server+ Web Server] + 10.1.3.3 patch.
    Can someone please let me know how to remove the Resource provider name also?
    thanks,
    Saurabh

    In addition to the steps highlighted above, the value for the Resource Provider Name was persisting in the application.xml file. Once it is deleted, OC4J instance restarted, all works fine.
    Thanks.

  • Description for Each Database Metric and Policy of OEM 10g

    Hi Dba's,
    Thanks for having a look into this thread. I am looking for some Oracle online description for the Metrics as well as Policies it has defined in OEM 10g 10.2.0.3.0. Grid.

    Metrics
    http://download.oracle.com/docs/cd/B16240_01/doc/em.102/b25986/toc.htm
    http://download.oracle.com/docs/cd/B16240_01/doc/em.102/b16230/toc.htm
    Policy
    http://download.oracle.com/docs/cd/B16240_01/doc/em.102/b16231/toc.htm
    All
    http://download.oracle.com/docs/cd/B16240_01/doc/nav/portal_booklist.htm

  • Availability of Java Wireless Toolkit (J2ME) for linux

    Hi, Could anyone tell me when will be available the Java wireless toolkit for Linux again ?
    According to download page is offline since March 20
    Sun Java Wireless Toolkit for CLDC 2.5.2 ML
    - March 20, 2012 - This download is being updated and will be made available again shortly, please check back regularly for it's availability.
    Is there any other way to download the Linux API for mobility development ?
    Thanks in advance.

    The link is back up.

  • Proposal for 12 database and Fusion Middle-ware.

    Dear all,
    i am not sure that the question is relevant here or not, if not then please accept my sorry for that.
    we are going to move to 12c database and fusion middle-ware from 10g database.
    our head of department ask me to prepare a proposal for that so i ask and forward it to the top management.
    i am wonder what should i include in that proposal?
    thanks

    >he convence us to purchase new license for oracle database 12c and weblogic suite 12c
    If you have a proper Support contract, it includes Update support.  So upgrading an existing implementation doesn't require additional licences to be purchased.  You'd need additional licences if you are increasing your licence count (Processors or Users), adding database options (e.g. the 12c MultiTenant Database Option is a new feature that needs additional licencing) etc
    Hemant K Chitale

  • Java Add-in for AS ABAP ERP ECC 6.0 non-unicode

    Hi all,
    I have a AS ABAP ECC 6.0 NON-UNICODE system and i need to install Java add-in to the system without doing unicode conversion. The problem is that when i go to SAPinst:
    Start SAPinst [page 90].
    2. On the Welcome screen, choose <SAP system> Additional Software Life-Cycle Tasks Java Add-In for
    ABAP <database> <system variant>
    I have to use UC-Kernel even though my system is Non-unicode.
    Is it mandatory to convert to unicode to be able to install Java add-in. I am doing this installation so i can configure Adobe Interactive Forms in the system.
    All help will be apprieciated!!

    The J2EE instance will always be unicode.  The installation process should create an addiitional subdirectory, 'uc', under the existing kernel path to store the unicode kernel.  We have been through this process and OSS note 669902 describes additional settings that are needed for a non-Unicode ABAP instance being combined with Unicode J2EE add-on.  You will need to maintain both kernel versions going forward.

  • AQ Database Persistence Provider

    Hi ,
    i am trying to configure a Database Persistence Provider on OC4J 10.1.3.3 for an AQ database queue , i have defined a Connection Pool and Data Source for that DataBase Connection , and then (through the EM Deploy Database Persistence Provider) i do specify the Resource Adapter Module Name and select the defined DataSource , but it gives me the following error :
    Error
    An error has occurred.
    connectors\ojms.rar (The system cannot find the path specified)
    connectors\ojms.rar (The system cannot find the path specified)
    any hints,
    Thanks in advance.

    Check the comments at the end of this blog post...
    http://mike-lehmann.blogspot.com/2006/09/simple-mdb-with-oracle-database-jms.html
    Hope that helps.
    Rod

Maybe you are looking for

  • User defined field in SD and its link to Value field in COPA (??)

    Dear All, We have created one "Z" field i.e. user defined field and its in VBRP Table. This is a quantity field. to update the values in this field we have used an exit in sales and distribution module. Now, by defining this exit values are correctly

  • Iphone 4s drops calls in new house! help!

    I just upgraded to a iphone 4s around easter 2012 after my iphone 4 had water damage, anyway I just moved to myrtle beach, SC and in my house my iphone drops my calls 95% of the time!! It is REALLY frustrating and there is NO apple store remotely clo

  • Special characters not displaying in button label

    My production environment is: Oracle Forms 6i connecting to an Oracle 8i database. Forms are Windows client/server. In a form there is a layout of buttons like a QWERTY keyboard. And in the property palette information for each data block, the item i

  • Connection Manager in 11.1.2

    Hi , I am new to smart view version 11.1.2. I have to add new URL in connection manager. Can somebody help me to do this. I opened shared connections, and searching for action panel to add the URL for HFM. I don't see anything to add the url. "Do i n

  • Excel charset issue. Scrambled output.

    I faced this issue many times, but whenever the issue recurs, I end up with no clue of what's going wrong. Trying to dump data to an excel file:                     iResponse.setHeader("application/vnd.ms-excel; charset=UTF-8", "content-type");