Specifying package structure and inheritance for jaxb generated classes ??

Friends,
Now I am tuned up with the sweet JAXB utility...
I need answers to this..
1. How do I specify a package structure in my generated java files?
2. How do I specify inheritance heirarchy to my generated java files ?
I assume, there must be some way of doing this, without opening the actuall source.
any ideas ??
Thanks
Rakesh

how about inheritance heirarchy ? What if i plan to include theses generated classes in my inheritance heirarchy ?
Bhakti, any idea what is the final version release date ? I desperately need answer to this.
Thanks
Rakesh

Similar Messages

  • Reusing JAXB generated classes for XSDs included in other XSDs

    Hi,
    I use xsds with jaxb in a number of related projects. To avoid duplication I've factored out commonly used elements into their own xsd in a separate project. I then include these in the xsds that need them.
    I generate classes with jaxb for each project. I'm now trying to get jaxb so far as to reuse the already generated classes for the common elements.
    For example: I have a general xsd Person.xsd for which I generate classes in common.xsd. I have another xsd Project.xsd that includes a reference to the Person element. When i let jaxb generate classes for Projects.xsd, it will also generate a project.xsd.PersonType and so on.
    Is there any way to tell JAXB to use the existing classes? I've played around with the <jxb:javaType> bindings, but I can't get it to work yet. It gives me a "bindings not used" warning and doesn't compile. Also, if this is in fact the way to go, what do I specify as the parseMethod and printMethod attributes for the javaType element?
    Thx for any help

    JAXB questions should be better directed to the users list of http://jaxb.dev.java.net/
    you should subscribe to the 'users' mailing list, then post a question there.
    Thank you!

  • How to dynamically adjust Frequency, Phase and Amplitude for a Generated Sine Wave in C/C++?

    Hi,
    I wonder if anybody know how to dynamically adjust Frequency, Phase and Amplitude for a Generated Sine Wave in C/C++? This is a part of my project: I need to dynamically generate a sine wave voltage signal by some calculation using the data from a simultaneous analog input and another signal.
    Your help will be appreciated so much!
    Marlon

    Hello Marlon,
    Here is an example of changing frequency and ampliude for an E-series device in Labwindows/CVI. The programming should be similar in C for your S-Series device. As is says on the linked webpage above, this process is going to be very processor intensive since you will continually be creating a buffer.
    Nicholas C
    National Instruments
    Applications Engineering

  • How to use JAXB generated classes with SOAP

    hello,
    I have a library of JAXB generated classes for my web service. There is a Java class for each web method defined in my schema. For example, my getLocation method is mapped to GetLocation.class.
    However my web service is SOAP based, so I am having to manually strip off the SOAP elements to be able to unmarshall the getLocation xml to a GetLocation class.
    I am noticing a disconnect between JAXB and other Java SOAP and RPC libraries. Does anyone know how to create a JAXB class for SOAP Envelopes and Bodys? Does anyone have any ideas how to incorporate the existing Java web service libraries with JAXB?
    Thanks in advance.

    Have you found a method to integrate SAAJ and JAXB? Or
    is better to use SAAJ only ?If I had to choose I'd go with SAAJ. It seems to me that's theoretically possible to use JAXB classes with SAAJ but I imagine if it is possible it would be a big pain in the ass.

  • Problem creating package structure and where is my .class file??????

    Working on Tomcat I have my folder structure like this...
    webapps
    ->app_root
    ->WEB-INF
    ->classes
    ->src
    -> .java files
    ->META_INF
    In the command prompt i compile using this
    c:\Program Files\Apache Tomcat 4.0\webapps\Murthy\WEB-INF\classes>javac -d src\*.java
    and in my java files I have the package structure mentioned as
    package com.acme;
    after compiling i expected this to happen for me.
    webapps
    ->app_root
    ->WEB-INF
    ->classes (in WEB-INF)
    ->com (in classes)
    ->acme (in com)
    -> .class files (in acme)
    ->src (in WEB-INF)
    -> .java files(In src)
    ->META_INF
    The funiest part for me started he when i compiled the file
    c:\Program Files\Apache Tomcat 4.0\webapps\Murthy\WEB-INF\classes>javac -d src\one.java
    It compiled successfully without giving me any error but no package structure was created and THERE IS NO one.class file anywhere in my system.....Then how did it compile my file and where is the .class file.
    I think am worng somewhere but unable to locate it.
    Can somebody pull me out of thiss stuf??? Need to do it fast.
    Thanx.

    c:\Program Files\Apache Tomcat 4.0\webapps\Murthy\WEB-INF\classes>javac -d src\*.java
    The command you posted does not have a source file specification. You are telling the compiler to put the .class files in src\*.java but you are not specifying any .java files. It looks like your command should be javac -d . src\*.java

  • Packages, import and Inheriting with static

    Hello.
    I am programming a program, in which the main class (file: Main.java) uses objects declared in Components.java.
    The problem is, the import of the components only works if I explicitly make the main class inherit from the components class with whose objects being declared as 'static'. A simple import instruction, the way I learned it, in the main class such as 'import <project>.components;' does not work.
    Sample code:
    Current state; working
    Main.java:
    package <project>;
    public class Main extends Components {  
        public static void main(String[] args) {
            start();
    }Components.java:
    package <project>
    public class Components {
        public static void start() {
            // code
    }Desired:
    Main.java
    package <project>;
    import <project>.components;
    public class Main {  
        public static void main(String[] args) {
            start();
    }Components.java:
    package <project>
    public class Components {
        public void start() {
            // code
    }How to realize this idea into a working program?
    Thanks in advance!

    I apologize for not conveying my problem proberly, but you have to know I did not learn Java with reference material in the English language, therefore it might happen that some terms are not translated correctly (by me) and thus not equaling the standardised terms.
    Anyway, let me try to rephrase my problem.
    I want to use the object declared in Components.java in the main class/main methode of the file Main.java. In order to achieve this goal I used inheriting, concretely the main class inherits from the components class, as a makeshift to use Components.java's objects in the main class. However this is not the way I want to accomplish my objective with.
    To make a long story short I just want to utilise Components.java's object in Main.java's main method. The manner to achieve this does not matter, though I want to do it preferably with 'import'.
    Hope this clears things up. Thank you anyway.
    Edited by: Ikaragua on May 31, 2008 6:00 AM
    Solution found.
    package project;
    public class Main {  
        public static void main(String[] args) {
            Components.start();
    }

  • Best approach to create Package Structure and .content.xml

    I am aware that we have a schem.xsd for generic package content.xml creation and neither do vault.xml and other associated xml files in the META-INF folder of the package.
    I want to know if there is some recommended approach to build the package and xml files, specifically content.xml programmatically on the file system. I know that we can use package manager (API not the GUI/screen) but that comes into picture when the folder structure and xmls files are created. I am interested to know a standard procedure of acceptable procedures to build the structure. I have seen folks use JDom/SAX etc to build this and even velocity to try it out using templates but that looks largely as a workaround. Can anyone help with some inputs on this?

    We've been successful at using ANT as a Build tool to run XSLT 2.0 using the Saxon XSL processor.  We have processed both CSV and XML files into packages.  This started out pretty simply, but grew more complex than initially thought.  There are a lot of subtlties that can be overlooked in the package format.  Also if your filters aren't right it will happily delete a lot of data.  Thankfully it appears uninstalling can recover these most times, but I'd recommend testing packages on a throw away instance.
    I've posted an example Ant + XSL that goes from CSV > XML > Many XML Files > CRX Package Zip: https://github.com/odu/crx-package-xsl-example.  There is also some info on some of the complexities of a package mentioned on that page that may be helpful, even if Ant / XSL isn't your route.
    Can you share more about your use for building a package, what format is the source data in, etc?  This example is really only useful for batch loading.

  • Syntax error for automatic generated class for object MAS_AUTH_CUST

    Hi,
    I am configuring the mobile sales scenario. I encountered a weird problem. Basically the automatically generated class  ZDOECL_013_00H_MWSR can not be activated. If you activate it manually it will give you the below error. Looks like the entity structure is too big. So the generated code has a very big loop which causes the dump. I found the issue when try to run the function module CRM_AUTH_CUST_INSERTCDS as suggested in the configuration guide.
    I have tried to regenerate the object. But it still give me the same error.
    Internal error occured during runtime generation of Class ZDOECL_013_00H_MWSR (Dump ID: GEN_BRANCHOFFSET_LIMIT_REACHED)
    Message no. OO053
    Diagnosis
    An internal error occurred when the system tried to generate the runtime objects of the class. A dump has been created with the given dump ID. It can be analyzed using transaction ST22.
    Our Netweaver version as below. It should contain already the latest patch etc.
    SAP_ABA     711     0006     SAPKA71106
    SAP_BASIS     711     0006     SAPKB71106
    PI_BASIS     711     0006     SAPK-71106INPIBASIS
    ST-PI     2008_1_710     0004     SAPKITLRE4
    SAP_BW     711     0006     SAPKW71106
    CRMSPGWY     110     0004     SAPK-11004INCRMSPGWY
    CRM version.
    SAP_ABA     702     0006     SAPKA70206
    SAP_BASIS     702     0006     SAPKB70206
    PI_BASIS     702     0006     SAPK-70206INPIBASIS
    ST-PI     2008_1_700     0002     SAPKITLRD2
    SAP_BS_FND     702     0004     SAPK-70204INSAPBSFND
    SAP_BW     702     0006     SAPKW70206
    LCAPPS     2005_700     0009     SAPKIBHD09
    SAP_AP     700     0022     SAPKNA7022
    WEBCUIF     701     0003     SAPK-70103INWEBCUIF
    BBPCRM     701     0003     SAPKU70103
    WFMCORE     200     0016     SAPK-20016INWFMCORE
    VIRSANH     530_700     0011     SAPK-53311INVIRSANH
    Any advice is appreciated.
    Thanks
    Hansen Chen

    Hi,
    Gateway1.1 to SAP Netweaver mobile is not supported with EHP1 of SAP Netweaver Mobile 7.10.
    Please  check the release information note: 1539681
    So, i suggest you to install SAP Netweaver Mobile 7.10 with Gateway addon.
    Regards,
    Siva.

  • Oracle Linux 6.1 asm packages - oracleasm and oracleasmlib for OEL 6.1 ???

    Hello everyone
    I am not ULN subscriber, I am trying to learn Oracle ASM/RAC at work.
    I am running OEL 6.1 (uname -rm output is: 2.6.32-100.34.1.el6uek.x86_64)
    I am looking for two ASM support libraries which are compatible with above Oracle Linux 6.1 X64
    Specifically this article refers to 2 packages I need for ASM support:
    http://www.oracle-base.com/articles/11g/OracleDB11gR2RACInstallationOnOEL5UsingVirtualBox.php
    •oracleasmlib-2.0.4-1.el5.x86_64.rpm -- I need this one
    •oracleasm-support-2.1.3-1.el5.x86_64.rpm -- this package is now already installed on OEL 6.1 so I dont need this one for OEL 6.1
    •oracleasm-2.6.18-164.el5-2.0.5-1.el5.x86_64.rpm -- I need this one
    Can anyone direct me to a download link for the above two packages? Even if its from RHEL6.1 as long as it works?
    Or does it mean that I must pay Oracle in order to be able to get these packages in order to learn ASM at home ??
    Why would Oracle allow us to use their RDBMS/RAC/ASM/Linux software at home learning for free and not supply the above two packages??
    thanks

    user6029797 wrote:
    •oracleasmlib-2.0.4-1.el5.x86_64.rpm -- I need this oneThis requires Oracle Linux support, as it is not GPL software and is only available to subscribers.
    •oracleasm-2.6.18-164.el5-2.0.5-1.el5.x86_64.rpm -- I need this oneNo, you don't. This is built into the kernel for OL6U1.
    Or does it mean that I must pay Oracle in order to be able to get these packages in order to learn ASM at home ??
    Why would Oracle allow us to use their RDBMS/RAC/ASM/Linux software at home learning for free and not supply the above two packages??If you want to use ASM for free, install Oracle Linux 5 Update 7 and download the RHEL5 oracleasmlib package from here:
    http://www.oracle.com/technetwork/server-storage/linux/downloads/rhel5-084877.html
    Keep in mind that Database is NOT certified on Oracle Linux 6 anyway, so it is challenging to install. The very article you link to uses Oracle Linux 5. It also links to these very same RPMs. If you follow the article more carefully, you won't have any issues.

  • Maximum Package Size and Duration for HD Streaming?

    Hey All,
    I've taken the HD plunge and am editing my first piece of video. I've finished and I want to export it to stream to my PS3 and/or Xbox. My question is what are the best settings for export to Quicktime MP4 1080 HD for maximum packet size and max packet duration?
    Also do I need to optimize for server if I will be streaming from my Time Capsule?
    I can successfully stream SD but I don't quite understand all this HD stuff so any and all help is appreciated.

    I totally appreciate the thread but my goal is not to copy the file but to get it to stream properly. Right now it stutters a bit during streaming. I am trying to find out if Max package and duration could help.
    I'm at 15KPBs on the download and 973 on the upload so it shouldn't be a network problem. I was just hoping someone could explain the max settings and recommend something for streaming

  • Tax structure and setup for Country: SG (Singapore)

    Hi,
    Singapore has a new tax structure staring this year (2008). The tax is broken into slabs on the basis of chargeable income of a company, over the fiscal year.
    In SD, I am able to set tax, with scales - but this is specific to every order. The condition I need to maintain has to trigger only after the company's revenue has reached, say, $100,000.
    Please guide me on how to represent this in SAP R/3.
    Thank you.
    Sowmya

    Hi Sowmaya,
    I will suggest please Go through the Link below to see how this can be configure in SAP. As this is newly Tax structure started by the govt of SG this year,
    http://help.sap.com/saphelp_47x200/helpdata/en/bd/c2753824a34f47e10000009b38f8cf/frameset.htm
    Hope this will help.
    Thanks,
    Raja

  • Compiling an existing as3 packag with flex sdk (for a flash/flex/as beginner)

    Hi
    I am new to flash, flex, mxml, and actionscript (with a strong background in c, python, and scheme and some background in Java, VBA, and Javascript). I have a website for which I would like to develop some simple swf content. Basically, I would like to load esri shp files at runtime (and display a series of them as an animation) using these APIs.
    I have read through some flex getting started material, but I have found that there is no better way to learn a framework/language than to look at and modify existing code. Happily, I've found a sample that is both salient to my project and about the right level of complexity.
    I have the Flex SDK 3 and have created some simple movies. However, I haven't managed to compile the example as3 source code to a successful swf movie. I'd like to write mxml for layout/structure and as3 for functionality, and compile with mxmlc, period. Most examples I've found use of Flex Builder, Adobe Air plugins, other IDEs, etc and so they aren't very helpful.
    Here is a link to the content I'm interested in, and more importantly the as3 source packages (zip or browesable) that I'd like to compile. There are two: ManualCartogramTest.as and USStatesCartogramExample. I can use mxmlc to compile either one sucessfully, but the resulting swf file displays nothing. It seems that I should use the ManualCartogramTest class to create an instance of it, but none of my efforts have worked.
    Can anyone help out? How should I generate the swf movie given one of these packages? What key piece am I missing?
    Jeff
    For completeness, here is another example using the shp/dbf packages (from the creator) that I just can't figure out what to do with.

    1. Perhaps this wasn't the right forum.
    2. I had to use set -use-network=false to enter "local-with-filesystem" mode. Unfortunately, it took a while before I finally used a flash player that told me the problem instead of silently failing. The linux standalone or linux debugger from adobe was key! Gnash, swfdec, and my firefox plugin hid the problem.

  • Check Required Elements and Attributes in JAXB

    Hi
    I need check required elements and attributes in JAXB java classes , if there are any value for them place it , otherwise place default value in xml file , because of it I upgrade JAXB2.0 to JAXB 2.1 to support "required" in "XmlElement" , I read in "JavaWS(JAXB)Tutorial.pdf" that JAXB itself check required elements and attributes , if there are any value for them place it , otherwise place default value in xml file , the exact part of document is :
    << A property is said to have a set value if that value was assigned to it during unmarshalling or by invoking its mutation method. The value of a property is
    its set value, if defined; otherwise, it is the property’s schema specified default value, if any; otherwise, it is the default initial value for the property’s base type as it would be assigned for an uninitialized field within a Java class. >>
    I want to know , dose JAXB do this task ? (now I work with JAXB2.1 but it doesnt do this task.Maybe I must set some configuration)
    and if JAXB doesnt do it , how I can check required elements and attributes in JAXB ?
    Please help me.
    Shariat

    its all on Apple's Developer site
    http://developer.apple.com/DOCUMENTATION/AppleApplications/Reference/FinalCutPro _XML/index.html

  • Changing DB username and Password for APEX

    Hello Guys:
    My APEX application is currently connected to the Main database, and now the business decided they want a user to be created with the main database only for APEX.
    My main database is called ARRA, and user within the ARRA schema called ARRAAPEX was created given a diffrent username and password.
    I see in the Administrative services I can only tell it to which schema to connect to, but where do I specify the username and password for the database user to be used by APEX?
    Thank You For Your Help
    Adel

    Thank You for your reply Roel. What I meant to say is Logging to the ARRA schema using the username and password associated with ARRAAPEX would allow me to see the Date last edited field that has been added to the ARRAAPEX. ANd I am not able to see that at this moment becuase I am logging to to ARRA using the ARRA username and password.
    When we setup a workspace and then associate a schema with that workspace, where do I specify the username and password that the workspace should use to access the schema? Or if a username and a password are not needed then how does the workspace access the schema?
    Thank You
    Adel

  • User and Password for JMS-Adapter

    Hi all,
    when configuring JMS-Adapter e.g. for IBM MQSeries i do not find field where to specify the user and password for the MQ. We configure e.g. a receiver communication channel.
    In 2.0 JMS-Adapter we can put user and password like this
    JMS.QueueConnectionFactoryImpl.user=YTEST
    JMS.QueueConnectionFactoryImpl.password=<!%YTEST%!>
    in the property file. We can also hide the passwort with
    the mechanism of password token.
    How can this be done in JMS 3.0 Adpater? Is it possible?
    Thanks,
    Ly-Na Phu

    Oh, sorry. Now i see the field for user and passwort.
    Thanks,
    Ly-Na Phu

Maybe you are looking for

  • Vista 64 bit Itunes crashes on Install (over and over again!)

    Does anyone know how I can get the old version of Itunes that worked just fine? The new Itunes download fo Vista 64 bit keeps crashing and I've lost $50 worth of downloads.

  • When I install Adobe CS2 Premium everything except Photoshop CS2 installs?

    I have my original Adobe CS 2 Premium Edition. I run set up as admin etc and put in my serial etc etc all that goes smoothly. Now I would select the components I want to install. Photoshop Cs2 and Illustrator CS2. So after the installation I see illu

  • Apple mail and Gmail

    Strugging through setting up Gmail in my Apple mail environment. I stumble across the set up gmail when adding an account. Can I start over, delete my gmail account in Apple mail, then re-add it? Then bring all my email folders (with their email) bac

  • How to deal with SOL9 DVD Segments?

    Hello, I have downloaded the DVD segments of Solaris 9 and had assumed that I would understand what to do with them once downloaded. Unfortunately I do not. I have tried putting them all on a DVD. I have tried extracting them but segments 2,3,4 repor

  • Im trying to use cd sharing but cannot access the disc.Please Help!

    Im trying to put cds on my new mba using sharing via a pc. I have installed all the necessary software and I can sucsessfully connect the two computers but when I click on the cd icon on my mba it says ' the operation cant be completed as the origina