XML API persistence

Hi,
I would like to know if there is a java XML persistence api out there?
In fact,I want an api like hibernate which can persist/retrieve plain old java objects to/from an xml store which conforms to a given schema. This schema defines foreign key,but objects use aggregation like in hibernate mapping.
Let me explain you the problem behind this problem.I've used hibernate to persist some objects to a relational database.Now I want to persist/retrieve these objects to/from a xml store which is an instance of a schema. This xml schema is in fact an xml version of the database schema. Of course, I don't want to modify existing pojo classes. I just want another persistence(an xml one) implementation.
I've seen JAXB,but it constraints me to use classes that it has generated,isn't it(please correct me if I am wrong)? Moreover,it doesn't seem to persist objects to aggregation
Thanks.

Another thing that you can do (which doesn't seem to be documented) is to set a 'persistenceDelegate' attribute in your BeanDescriptor for your class, like this:
DefaultPersistenceDelegate delegate = new DefaultPersistenceDelegate( new String[] {"name", "hostAddress", "serverPath", "modulePath", "sourceBaseDir", "classPool"} );
try {
     Introspector.getBeanInfo( YourClass.class ).getBeanDescriptor().setValue( "persistenceDelegate", delegate );
} catch( IntrospectionException e ) {
     throw new RuntimeException( e );
}This will be picked up by XMLEncoder automatically.

Similar Messages

  • [METASOLV XML AP]devolop JAVA client using XML API for metasolv application

    Hi All,
    I am new in this group, and I need to help me to develop a java client to communicate with metasolv application using XML API.
    I read "XML API Developer’s Reference" document, but I still not understand how can I setup the cllient.
    I still need:
    1- What API needed(jar files) I must use to build the client
    2- A sample of source code using java.
    3- detailed guide to communicate with metasolv application using XML API.
    Thanks&Best Regards
    RADOUANE Mohamed

    any help please!!!!

  • How to use HTTP / XML API

    Hi,
    I have to communicate with a product . The product has HTTP / XML API . The API has some functions. The examples in the product docs ,
    If you send a HTTP request to URL of the product with function name and some input parameters , It returns XML response , this response corresponds to some DTD.
    Now from java Application I have to send some HTTP requests and do some things according to obtained responses.Some times I have to parse the XML responses returned to show the user some results.
    How can I do this in Java , I have not worked with this kind of requirements.
    Thanks,
    pandu

    I wanted to do both , from the java Application to server.
    1.Send HTTP (post) request
    2.Parse the returned XML response from the server.

  • Any practical help about XML API for databases

    HI friends,
    I have a problem, i want to connect to my Database using JSP but by using XML api for database. I want to MAP my database tables, rows columns as xml elements to make it more flexible. Anyone who had practicaly worked on it, please help me out.
    I am waiting for a quick response.
    Thanks for any help in advance,
    Yours Truly,
    Khawaja Salman Sarfraz

    Some databases have a feature that allows you to output the result of a query as XML. But that's not standard SQL, and it probably varies from one DB to the next. Look up the documentation for your DB for more information.

  • What is the good voice xml api for java

    dear buddies,
    what is the best voice xml api for java? has somebody comeacross and work involving this, i would like to hear more about this
    thanks
    Kuha

    Maybe the VXML forum is a better place: http://www.voicexml.org/
    Good luck.

  • Iwperl Interwoven -Is any XML API libraries available in iwperl Interwoven by default?

    Hi,
      We faced one issue when we did some POC in iwperl Interwoven. We have to merge two XML file using XML::LIBXML in iwperl. We tried to execute the .ipl file and got the error is "LIBXML.pm module is not available.  We checked existing XML libraries in iwperl Interwoven but it is not available.
    We need to know, whether we have existing XML API libraries in iwperl introven by default or not?
    if yes, tell me the location where XML API libraries are available.
    Thanks in Advance.

    Hi,
      We faced one issue when we did some POC in iwperl Interwoven. We have to merge two XML file using XML::LIBXML in iwperl. We tried to execute the .ipl file and got the error is "LIBXML.pm module is not available.  We checked existing XML libraries in iwperl Interwoven but it is not available.
    We need to know, whether we have existing XML API libraries in iwperl introven by default or not?
    if yes, tell me the location where XML API libraries are available.
    Thanks in Advance.

  • 11g BI Server XML API: NQLocale.xml

    Hi,
    I want to use the BI Server XML API especially biserverxmlexec command to automaticaly modify my repository.
    Like written in the library (http://download.oracle.com/docs/cd/E14571_01/bi.1111/e16364/xml_about.htm) I first executed the bi-init.sh script.
    After that I got an error about the shared libraries. I could solve the problem by setting the env LD_LIBRARY_PATH correctly.
    But now the next error occurred:
    Xml File Not Found error number -9, /oracle/home/bifoundation/server/locale/NQLocale.xml
    Anybody got an idea to solve that problem?
    Regards,
    Andre

    Hi Guys,
    the bug reference fixes this problem for you: https://support.oracle.com/epmos/faces/BugDisplay?id=10227146
    Specifically, I think your question relates to HOW you invoke bi-init.sh, remember there is an extra dot and space *. ./bi-init.sh*
    Hope this helps,
    Justin
    Edited by: justinjtownsend on Apr 11, 2013 4:58 AM

  • Collecting plug-in metrics using XML API from Perl?

    Hi all,
    We are building a plug-in to retrieve metrics over an XML API.
    The QueryDescriptor of each metric will do a call to the Agent's Perl script. This Perl script will then do the actual XML API call, to retrieve the metric's values.
    Does anyone have experience with this? We needed to install a few extra Perl modules from CPAN, to provide the high-level HTTP(s) communication. These modules are not in the Perl that’s used by the Oracle Agent, so I’m not sure if this is going to work when called by the Agent.
    Did any of you use an XML API? Did you make this a prereq (installing modules) or is there an alternative solution?
    Many thanks,
    Ed

    Thank you, Ash. I read the example quickly, and found (quoted)from the paper - "the Applet was designed as compact as possible in order to limit download time and to fit in a 50K jar file. The JAXP XML Parsing API package, including the SAX parser from SUN Project X (approximately 150K) is one of the smallest implementations we were able to use. It is, however, still too large to be downloaded for each session; therefore, it was installed locally to keep the download time as low as possible."
    However, in my current design, I can not ask each customer to install the JAXP API locally, so it seems that the API needs to be downloaded during the run time (am I right?). So the same problem will occur as that stated in the paper - the jar file is still too large to be downloaded for each session. Is there any lightweight API to solve it?
    BTW, as you might see, the paper was published in year 2000, I don't think the JDK plugin supported XML at that time, so it is quite reasonable to download JAXP API in that paper. But my current question is - as I posted in my previous message - whether the newest JDK plugin (JDK1.4) support Java XML API?
    Many many thanks.
    - Sun

  • Dabu etal: per war classloader vs XML API per war

    OC4J classloader folks;
    A general problem for the deployment folks/production env
    is
    how to host or configure the deployment of war's that need specific versions or
    specific vendor's XML apis.
    IMO the XML api vendors, designers have not helped at all with package name spaces and
    top level factories and
    VM wide system properties for determining the instandiated engine.
    Anybody have thoughts on how a OC4J production environment can effectively be
    a "job shop" for deploying anonymous wars who might have internal dependancies on specific XML parsers, versions or vendors?
    Ok, so a little easier, we're not an anonymous war job-shop. We do know what's
    being deployed and have complete control over the wars. What help is this in
    solving the problem? :)
    Thanks, curt

    Hi Lars,
    Hay, the new tag <web-app-class-loader search-local-classes-first="true" />
    for 903 is great!
    I stand corrected, I would have bet $10, maybe $50, that this
    is the default behavior of a J2EE container. :)
    But I'm on 902 OC4J so this isn't available anyway.
    BTW, whats the rationale for this NOT being default behavior?
    You know if other J2EE containers do class loading from world on down to war by default
    too?
    Thanks
    curt

  • What is newest/best/simplest Java XML API for loading/saving/validating?

    Here's what I need to do:
    - Load XML files. Preferably validate using XSD validation referenced by "xsi:schemaLocation" hints.
    - Generate XML files. I'd like to be able to specify indentation (tabs?) and "xsi:schemaLocation" XSD hints
    - I'm working with fairly small configuration files, so I'd like to work with document-centric (and not streaming oriented) APIs.
    I've spent a full day reading articles showing different code snippets for different APIs. There are dozens of standards and APIs. Also, all the articles that I can find are several years old at the least.
    This is surprisingly complex for something so seemingly simple.
    What's the best XML API that fits my criteria? Any links for code snippets and up-to-date documentation?
    Thanks!

    Well, XML hasn't changed since it was formalized, and that was in 1999. So there's really no need for people to write new parsers every couple of years any more. And that's why you don't find new tutorials being written every year either. There's really not much need for that.
    Anyway, my recommendation would be to use the classes that are built into your current version of Java. Use them for a while. Once you have experience with them, all those tutorials about other products will start to make sense and you will be able to make an educated decision for yourself.

  • Web Target & XML API use

    Hello there,
    I am going to make process to create Lun on NetApp Simulator.
    I had NetApp simulator, NetApp SDK server up n running on my server ...i made web target as my SDK API server and my TEO also on same server..http://172.21.***.**:8088  << this is my target connection.
    1> i want to check : does my connection work succefully or not for that i created process "web HTTP request" but that was not hit my target...
    so, please anybody have information for creating web http request process..please share with me...i appreciate you....
    2> I also have one more question regrding to using XML API in the process....As i said i also want to make process to crete Lun on my simulator...
    so..does anybody have information that how to use this XML API in our process...
    I really appreciate for help...
    Regards,
    Krupesh Patel

    Hello Christopher.......
    Now this time i just want to do simple web service target ...i want to use web service execute activity with wsdl use...
    Here ..i created web target as http://www.weather.gov/
    My process is to execute the web service ..this is my Relative url : http://www.weather.gov/forecasts/xml/DWMLgen/wsdl/ndfdXML.wsdl in for web service execute activity as i show in the image..
    Now..i want to select method by veryfing the url but i didn't get success....and got error...i want to execute this service on the target and want weather according to zip code i get from method...
    please help...appreciate you for information....
    Here is that image :

  • CCME xml api

    hi all!
    I'm trying to do some xml requests to a Cisco CallManager Express 4.1(0). But every time i get a "The underlying connection was closed: The connection was closed unexpectedly." error.
    After a while i found the default test page on the CCME for testing the xml API: http://CCME-IP/ISApi/AXL/V1/soapisapi.is You only need to past this in the url bar of your browser
    When i submit the gerenated code on that page i recieve the following error: "Cannot find server - The page cannot be displayed" But when i press the f5 button the default test page shows again.
    Is there anyone who can help me? Thanks in advance!

    Well, here's my chance to give back to the community. I've finally figured out how to communicate with CME 4.2.
    First a little background - My application creates the string that represents the SOAP XML messages, uses the WebRequest object (C#) to set the headers, send, and receive the response. This worked fine for the regular Cisco Call Manager, but once I tried it with Express, the server kept killing the connection. If I screwed with the authentication string, I would at least get a response saying that I did not have authorization, but got absolutely nothing back when sending a valid xml request.
    Using wireshark to examine the packets, I tried to reproduce the message that was being sent (successfully) from the API test page that is built into the server. I had first thought that my problem was with either the http headers or my xml was incorrect, but what I have found is this - The soap message MUST be preceded with "content=" and MUST be url encoded. It doesn't matter what the content type header is set to ("text/xml" or "application/x-www-form-urlencoded" as coming from the webpage); it will only respond to my request when I prefix content= and url encode the data.
    This was very frustrating to say the least. This is obviously contrary to anything in the XML Provisioning Guide for CME, which tells you to pass text xml just like Call Manager. Anyway, I posted this in hopes that it saves someone else the headache and in thanks to all of those that have helped me.
    Brian

  • UCS XML API Query Problem

    Currently I am attempting to power up and down a blade that is un-attached to a profile using a UCS XML API Query.
    Current progress:
    I have come up with this query that will power down a blade from a call from an attached profile...
    <configConfMo cookie="<SomeCookie>" inHierarchical="false">
    <inConfig>
    <lsPower dn="org-root/ls-profile1/power" state="down" status="modified"/>
    </inConfig>
    </configConfMo>
    This works for a server that is attached to a profile <profile1>, but I want to power down a server that is un-attached. I am currently using  UCS emulator 2.2 for testing these querys.

    There are a few options here that occur to me:
    Go to either the web interface of one of your UCSMs or the emulator with something like:
       http:///visore.html  or https:///visore.html
    traverse the objects or search for what you want and follow the '?' link to the right of the Class name.
    You could also try to find what you need here: http://www.cisco.com/en/US/docs/unified_computing/ucs/sw/api/VScgIX.html

  • UCS XML API - clarification on values

    Hey folks,
    I look through the XML API used to query the UCS manager. Where can I get the possible values of a particular attribute?
    Let me rephrase,
    Consider I am querying for 'equipmentChassis' with <configResolveClass cookie="cookie" response="yes" classId="equipmentChassis">
    I got a value as follows
    <equipmentChassis adminState="acknowledged"  configState="ok" connPath="A,B" connStatus="A,B" dn="sys/chassis-1" fabricEpDn="fabric/server/chassis-1" fltAggr="0" fsmDescr="" fsmPrev="nop" fsmProgr="100" fsmRmtInvErrCode="none" fsmRmtInvErrDescr="" fsmRmtInvRslt="" fsmStageDescr="" fsmStamp="never" fsmStatus="nop" fsmTry="0" id="1" lcTs="1970-01-01T01:00:00.000" licState="license-ok" managingInst="A" model="N20-C6508" operQualifier="" operState="operable" operability="operable" power="ok" presence="unknown" revision="0"  serial="1"  thermal="unknown" vendor="Cisco Systems Inc" versionHolder="yes"/>
    Lets take the attribute licState, we got a value 'license-ok', what are all the possible values I can get in that place? Do Cisco provide any key guides for this? I searched, I am sorry I might have missed something.
    Thanks

    There are a few options here that occur to me:
    Go to either the web interface of one of your UCSMs or the emulator with something like:
       http:///visore.html  or https:///visore.html
    traverse the objects or search for what you want and follow the '?' link to the right of the Class name.
    You could also try to find what you need here: http://www.cisco.com/en/US/docs/unified_computing/ucs/sw/api/VScgIX.html

  • XML API Authentication Fails

    Trying to set up the XML API on an ASR 9K and find myself unable to authenticate with the XML API using Netcat.
    I've configured the box as below:
    Building configuration...
    !! IOS XR Configuration 5.1.2
    !! Last configuration change at Wed Apr 15 07:19:42 2015 by root
    username xml
    group sysadmin
    secret 5 $1$LY8B$39t3eTXf/ajMGWnX99.ux0
    password 7 07182E414C080D1657
    aaa authorization exec default group tacacs+ local
    interface MgmtEth0/RSP0/CPU0/0
    ipv4 address 10.2.100.1 255.255.0.0
    interface MgmtEth0/RSP0/CPU0/1
    shutdown
    interface TenGigE0/0/2/0
    shutdown
    interface TenGigE0/0/2/1
    shutdown
    interface TenGigE0/0/2/2
    shutdown
    interface TenGigE0/0/2/3
    shutdown
    router static
    address-family ipv4 unicast
    0.0.0.0/0 10.2.0.1
    ssh server v2
    xml agent ssl
    xml agent tty
    xml agent
    iteration on size 100
    end
    and RP/0/RSP0/CPU0:ios# xml echo Wed Apr 15 07:27:10.765 UTC XML>
    I've got two test users, root:root and xml, both of which I can connect to using SSH though the XML interface seems to reject them - using nc:
    alexanderturner@Alexanders-MacBook-Pro~/Downloads> nc -v 10.2.100.1 38751
    found 0 associations
    found 1 connections:
    1: flags=82<CONNECTED,PREFERRED>
    outif en0
    src 10.0.1.40 port 61066
    dst 10.2.100.1 port 38751
    rank info not available
    TCP aux info available
    Connection to 10.2.100.1 port 38751 [tcp/*] succeeded!
    User Access Verification
    Username: root
    Password: root
    User Access Verification
    Is this not authing against local?
    Thanks,
    Alex

    hey alex,
    it is likely failing tacacs author because of this line:
    aaa authorization exec default group tacacs+ local
    as long as the tacacs server is available, it will try against him and if that user doesnt exist in tacacs, it will fail that shell author.
    revise config to:
    aaa authentication login default local
    aaa authorization exec default local
    have a local username available that has cisco-support/root-system
    or you can also do a debug aaa author and debug tacacs and see what service is requested so taht the user profile can be updated providing that author if you like to leave the existing tacacs author in place.
    cheers!
    xander

Maybe you are looking for

  • How to get the number of messages consumed by a MDB ??

    Hi all, How to get the number of messages consumed by a MDB displayed in OEM in a Java Application ??? DMS ??? what use DMS ??? tanks

  • Total Broadband set up CD for Mac OS 10.7? (Lion)

    Hi forum users, received the Hub & start package today but CD didnt load< think it's because I have the latest OS (lion) cd label says 10.2.4 to 10.6, but Lion is 10.7.2 Is there a later disc available? Thanks Westy

  • Itunes Store Will Not Open!!! Help Please

    Hi everyone, I am having trouble trying to open my iTunes Store, whevever i click on it a msg keeps coming up saying, "iTunes could not connect to the iTunes Store. The network connection was refused. Make sure your network settings are correct and y

  • Help deploying ear file in WAS

    I have a few jsp, js and image files in my application that I intend deploying on the WAS. I created the ear file. When I deploy the ear file, I get the following message: Dec 21, 2004 10:40:52 AM /userOut/deploy (com.sap.ide.eclipse.sdm.threading.De

  • Change Default Web Templete in the BI System

    Hi Experts,   Currently user access queries using WEB BEx Analyzer and the templete is 0Analyzer.    When we develop a query in Query Designer will publish the query in the relevant roles and user can access that query through  WEB BEx Analyzer and t