Re: [jibx-users] Question on Jibx
Hi Pardeepta, This is supported by the flexible=true attribute - see the tutorial at http://jibx.sourceforge.net/tutorial/binding-extras.html#mixing for some more details on using this. There are some limitations, and you need to set this flag on every level of your binding where you want it to apply, but it should meet your needs. - Dennis Pradeepta Bhattacharya wrote: Hello All, How to ignore elements that I don't want to parse in an XML structure. I just want to map the elements that are there in the POJO and ignore the ones that are not part of it, though the XML can return lot of elements. Thanks. Pradeepta - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ jibx-users mailing list jibx-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jibx-users - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ jibx-users mailing list jibx-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jibx-users
Re: [jibx-users] collection Set JDK 1.4.2
Hi Morgan, Glad you got through this okay. Instead of using the factory method, you can probably use the new (as of 1.1) create-type attribute on the collection (see http://jibx.sourceforge.net/details/binding-attributes.html#object). - Dennis Dennis M. Sosnoski SOA, Web Services, and XML Training and Consulting http://www.sosnoski.com - http://www.sosnoski.co.nz Seattle, WA +1-425-296-6194 - Wellington, NZ +64-4-298-6117 Morgan Rachell wrote: I got it to work. I needed to give the collection a factory method for HashSets. I removed the item-type and type attributes of collection and added the factory. I also added a structure that specifies the types. One of the samples that JiBX ships with (example 8 or 9) did it this way. My old mapping was: binding forwards=false value-style=attribute mapping class=FlockTest name=flock-test [] collection field=flockTestDetails item-type=FlockTestDetail type=java.util.HashSet usage=optional/ /mapping And my new mapping is: binding forwards=false value-style=attribute mapping class=FlockTest name=flock-test [] collection field=flockTestDetails factory=FlockTestDetail.HashSetFactory structure type=FlockTestDetail usage=optional/ /collection /mapping /binding I have to say that I am very happy with the ease with which I was able to generate a binding file from my hibernate domain objects using jibx-genbinding. It was also just a cut-and-paste of sample code to get my marshalling code to work (with some small tweaks in the binding file). I also have maven2 calling the binding compiler. Very nice. Great documentation too! Morgan - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ jibx-users mailing list jibx-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jibx-users - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ jibx-users mailing list jibx-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jibx-users
Re: [jibx-users] How to create binding for a Tree
Hi Bernard, It seems pretty simple - something along the lines of: mapping name='entity-tree' class='EntityTree' structure field='entity'/ collection field='children' item-type='EntityTree'/ /mapping should get you started. What's giving you a problem? - Dennis Dennis M. Sosnoski SOA, Web Services, and XML Training and Consulting http://www.sosnoski.com - http://www.sosnoski.co.nz Seattle, WA +1-425-296-6194 - Wellington, NZ +64-4-298-6117 Bernard D'Havé wrote: Hi, First of all, I really enjoy my first day with JiBX. It's an incredible library! Many thanks for your work! But after a few hours, I try to go harder. I have a tree defined like this: Public class EntityTree { private Entity entity; private CollectionEntityTree children; . . . } I'm still try to find how to write the binging for this class. Any idea? TIA, Bernard - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ jibx-users mailing list jibx-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jibx-users - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ jibx-users mailing list jibx-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jibx-users
Re: [jibx-users] extending abstract mapping and overriding value element.
Hi Sunil, No, this is not possible. Extensions can only add to the base mapping, they cannot change it. - Dennis Dennis M. Sosnoski SOA, Web Services, and XML Training and Consulting http://www.sosnoski.com - http://www.sosnoski.co.nz Seattle, WA +1-425-296-6194 - Wellington, NZ +64-4-298-6117 Sunil Mazimdar wrote: Is it possible to make value element optional in a extended mapping, when it is required in the abstract mapping? Eg. mapping class = “BaseClass” abstract = ‘true’ value name = “a” field =”a” / …… /mapping mapping name=”SubClass” class=” SubClass” extends=” BaseClass” structure *map-as=”BaseClass”* / value name=”a” field =”a” *usage=”optional” /* ……. /mapping Thanks. - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ jibx-users mailing list jibx-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jibx-users - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ jibx-users mailing list jibx-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jibx-users
Re: [jibx-users] jibx 1.1 not on maven repository
Hi, I think it is okay to use the jibx repository. The only thing is that for Maven2 the POM files for the jars are missing there (for the 1.1 version). Alex -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Dennis Sosnoski Sent: Montag, 21. August 2006 09:51 To: JiBX users Subject: Re: [jibx-users] jibx 1.1 not on maven repository BTW, there's a Jira issue on this topic that's been open for almost two years now: http://jira.codehaus.org/browse/JIBX-45 I'm not willing to add Ibiblio repository maintenance to the list of items I go through for every release, but if someone else wants to take this on I'll gladly let them do so. :-) I think the Ibiblio site has information on what's needed in order to get project updates into the repository. - Dennis Dennis M. Sosnoski SOA, Web Services, and XML Training and Consulting http://www.sosnoski.com - http://www.sosnoski.co.nz Seattle, WA +1-425-296-6194 - Wellington, NZ +64-4-298-6117 Morgan Rachell wrote: I'm using Maven2 and just added the jibx maven repository to my pom.xml. This way, all developers in my project are automatically connected to the jibx repo without any intervention. Check out http://jibx.sourceforge.net/maven-jibx-plugin/usage.html. Rice Yeh wrote: Hi, Jibx 1.1 has been released for a while. But I find it is still NOT on the repositories of maven like http://www.ibiblio.org/maven2/. What I find there is the version 1.0.1. How do not know the procedure to put jar there. Can anyone do this? Regards, Rice -- --- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057; dat=121642 ___ jibx-users mailing list jibx-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jibx-users -- --- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057; dat=121642 ___ jibx-users mailing list jibx-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jibx-users - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ jibx-users mailing list jibx-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jibx-users
Re: [jibx-users] Confused on how to bind
Hi Jeff, You could perhaps do this using set-method rather than field, where you have multiple set-methods for the different possible cases (which all end up storing to the same field). However, your best bet is probably to write a simple custom unmarshaller to handle this case. That's a little more work, but gives you the flexibility to build in code to handle the different possible cases cleanly. See http://jibx.sourceforge.net/tutorial/binding-custom.html#marunmar for a starting point. - Dennis Dennis M. Sosnoski SOA, Web Services, and XML Training and Consulting http://www.sosnoski.com - http://www.sosnoski.co.nz Seattle, WA +1-425-296-6194 - Wellington, NZ +64-4-298-6117 [EMAIL PROTECTED] wrote: Thanks. Unfortunately case 1 is pretty popular. :-( What is this xsi:type that you referred to? Is there any way I can just create a hack and have whatever is a child of a be unmarshalled into an object x? Then in object x I could examine to see which of the three cases applied? *From:* [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] *Sent:* Tuesday, August 15, 2006 11:27 AM *To:* Krasky, Jeffrey (West) *Subject:* Re: [jibx-users] Confused on how to bind Hi, I think you have to use something related to xsi:type in this case since structurally *a* in case 1 is radically different from case 3 or case 2. also if you had only 2 possibilities (only case 2 or case 3) i would have suggested you to use optional as in value name=*b* field=*b* usage=optional/ the optional tag ensures that jibx iwll not complain if *b* is missing sorry i can't be of much help.but if you think case 1 will never arise then you could try using the usage=optional . Regards, Chetan *[EMAIL PROTECTED]* Sent by: [EMAIL PROTECTED] 15/08/2006 17:05 Please respond to JiBX users To:jibx-users@lists.sourceforge.net cc: Subject:[jibx-users] Confused on how to bind Hi, I have an XML file that can appear in one of three ways: 1) a b csome text/c /b /a 2) a bsome text/b /a 3) a csome text/c /a As you can see, some text can appear between either the b or the c tags. I think the major hangup is the possibility that the c tag can appear as a child of EITHER a or b. Is something like this even possible to bind? If so, can someone give me a sketch of the binding code? I am writing/rewriting it as I keep getting confused Really, all I care about is the some text part. Nothing else is of importance to me. Thanks, Jeff- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642___ jibx-users mailing list jibx-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jibx-users This transmission may contain information that is privileged, confidential, legally privileged, and/or exempt from disclosure under applicable law. If you are not the intended recipient, you are hereby notified that any disclosure, copying, distribution, or use of the information contained herein (including any reliance thereon) is STRICTLY PROHIBITED. Although this transmission and any attachments are believed to be free of any virus or other defect that might affect any computer system into which it is received and opened, it is the responsibility of the recipient to ensure that it is virus free and no responsibility is accepted by JPMorgan Chase Co., its subsidiaries and affiliates, as applicable, for any loss or damage arising in any way from its use. If you received this transmission in error, please immediately contact the sender and destroy the material in its entirety, whether in electronic or hard copy format. Thank you. - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere
Re: [jibx-users] Question on Jibx
Hello Dennis, Thanks for the reply. Could you please also clarify why we can't use the combination of flexible=true ordered=false usage=optional at the structure level in the jibx mapping file. It throws a ArrayIndexOutOfBoundException while compiling the binding file. Thanks Pradeepta -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Dennis Sosnoski Sent: Monday, August 21, 2006 1:15 PM To: JiBX users Subject: Re: [jibx-users] Question on Jibx Hi Pardeepta, This is supported by the flexible=true attribute - see the tutorial at http://jibx.sourceforge.net/tutorial/binding-extras.html#mixing for some more details on using this. There are some limitations, and you need to set this flag on every level of your binding where you want it to apply, but it should meet your needs. - Dennis Pradeepta Bhattacharya wrote: Hello All, How to ignore elements that I don't want to parse in an XML structure. I just want to map the elements that are there in the POJO and ignore the ones that are not part of it, though the XML can return lot of elements. Thanks. Pradeepta - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ jibx-users mailing list jibx-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jibx-users - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ jibx-users mailing list jibx-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jibx-users - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ jibx-users mailing list jibx-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jibx-users
Re: [jibx-users] Question on group
Sorry, Neeraja - the Xsd2Jibx code is a mess, and not maintained. I'm working on getting out a replacement with full support for this type of usage, but until that's done I don't have any good suggestions for you other than to modify the generated binding by hand. - Denins Dennis M. Sosnoski SOA, Web Services, and XML Training and Consulting http://www.sosnoski.com - http://www.sosnoski.co.nz Seattle, WA +1-425-296-6194 - Wellington, NZ +64-4-298-6117 Neeraja Divakaruni wrote: I tried to generated java objects using XSD2JIBX tool for an XSD that has reference to an element group. I noticed that the generated java file totally ignored the elements in the group. According to the web site, XSD2JIBX supports xsd:group element. But this doesnt work. Does any one have thoughts on this. -thanks How low will we go? Check out Yahoo! Messenger’s low PC-to-Phone call rates. http://us.rd.yahoo.com/mail_us/taglines/postman8/*http://us.rd.yahoo.com/evt=39663/*http://voice.yahoo.com http://us.rd.yahoo.com/mail_us/taglines/postman8/*http://us.rd.yahoo.com/evt=39663/*http://voice.yahoo.com - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys -- and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV http://us.rd.yahoo.com/mail_us/taglines/postman8/*http://us.rd.yahoo.com/evt=39663/*http://voice.yahoo.com http://us.rd.yahoo.com/mail_us/taglines/postman8/*http://us.rd.yahoo.com/evt=39663/*http://voice.yahoo.com ___ jibx-users mailing list jibx-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jibx-users http://us.rd.yahoo.com/mail_us/taglines/postman8/*http://us.rd.yahoo.com/evt=39663/*http://voice.yahoo.com - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ jibx-users mailing list jibx-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jibx-users
Re: [jibx-users] Question on Jibx
Sounds like a bug - can you submit a problem report in Jira, as described at http://jibx.sourceforge.net/bugs.html If you include everything I need to reproduce the problem I'll make sure it gets fixed for the next release. - Dennis Dennis M. Sosnoski SOA, Web Services, and XML Training and Consulting http://www.sosnoski.com - http://www.sosnoski.co.nz Seattle, WA +1-425-296-6194 - Wellington, NZ +64-4-298-6117 Pradeepta Bhattacharya wrote: Hello Dennis, Thanks for the reply. Could you please also clarify why we can't use the combination of flexible=true ordered=false usage=optional at the structure level in the jibx mapping file. It throws a ArrayIndexOutOfBoundException while compiling the binding file. Thanks Pradeepta -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Dennis Sosnoski Sent: Monday, August 21, 2006 1:15 PM To: JiBX users Subject: Re: [jibx-users] Question on Jibx Hi Pardeepta, This is supported by the flexible=true attribute - see the tutorial at http://jibx.sourceforge.net/tutorial/binding-extras.html#mixing for some more details on using this. There are some limitations, and you need to set this flag on every level of your binding where you want it to apply, but it should meet your needs. - Dennis Pradeepta Bhattacharya wrote: Hello All, How to ignore elements that I don't want to parse in an XML structure. I just want to map the elements that are there in the POJO and ignore the ones that are not part of it, though the XML can return lot of elements. Thanks. Pradeepta - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ jibx-users mailing list jibx-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jibx-users - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ jibx-users mailing list jibx-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jibx-users - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ jibx-users mailing list jibx-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jibx-users - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ jibx-users mailing list jibx-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jibx-users
Re: [jibx-users] jibx 1.1 not on maven repository
I'm not willing to take responsibility for maintaining Maven/Maven2 stuff (I've never liked Maven - I hate tools that force you to fit into their structure, rather than adapting to how you like to do things), but if someone wants to take this on I'll let them know when I do a new release and give them access to the project so they can keep this up to date. - Dennis Dennis M. Sosnoski SOA, Web Services, and XML Training and Consulting http://www.sosnoski.com - http://www.sosnoski.co.nz Seattle, WA +1-425-296-6194 - Wellington, NZ +64-4-298-6117 Rueegg Alexander wrote: Hi, I think it is okay to use the jibx repository. The only thing is that for Maven2 the POM files for the jars are missing there (for the 1.1 version). Alex -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Dennis Sosnoski Sent: Montag, 21. August 2006 09:51 To: JiBX users Subject: Re: [jibx-users] jibx 1.1 not on maven repository BTW, there's a Jira issue on this topic that's been open for almost two years now: http://jira.codehaus.org/browse/JIBX-45 I'm not willing to add Ibiblio repository maintenance to the list of items I go through for every release, but if someone else wants to take this on I'll gladly let them do so. :-) I think the Ibiblio site has information on what's needed in order to get project updates into the repository. - Dennis Dennis M. Sosnoski SOA, Web Services, and XML Training and Consulting http://www.sosnoski.com - http://www.sosnoski.co.nz Seattle, WA +1-425-296-6194 - Wellington, NZ +64-4-298-6117 Morgan Rachell wrote: I'm using Maven2 and just added the jibx maven repository to my pom.xml. This way, all developers in my project are automatically connected to the jibx repo without any intervention. Check out http://jibx.sourceforge.net/maven-jibx-plugin/usage.html. Rice Yeh wrote: Hi, Jibx 1.1 has been released for a while. But I find it is still NOT on the repositories of maven like http://www.ibiblio.org/maven2/. What I find there is the version 1.0.1. How do not know the procedure to put jar there. Can anyone do this? Regards, Rice -- --- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057; dat=121642 ___ jibx-users mailing list jibx-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jibx-users -- --- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057; dat=121642 ___ jibx-users mailing list jibx-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jibx-users - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ jibx-users mailing list jibx-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jibx-users - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ jibx-users mailing list jibx-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jibx-users
Re: [jibx-users] jibx 1.1 not on maven repository
It is easy to deploy jar files to a remote repository (e.g. http://jibx.sourceforge.net/maven2/) mvn deploy:deploy-file -DgroupId=org.jibx -DartifactId=jibx-run -Dversion=1.1 -Dpackaging=jar -Dfile=path-to-file -DrepositoryId=id-to-map-on-server-section-of-settings.xml -Durl=url-of-the-repository-to-deploy where repositoryId maps to a server id in settings.xml which stores authentication information and url is e.g. file://... or ftp://... or so:easy to add to an ant script. Alex btw: It is easily possible to tweak maven to fit your structure! -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Dennis Sosnoski Sent: Montag, 21. August 2006 10:15 To: JiBX users Subject: Re: [jibx-users] jibx 1.1 not on maven repository I'm not willing to take responsibility for maintaining Maven/Maven2 stuff (I've never liked Maven - I hate tools that force you to fit into their structure, rather than adapting to how you like to do things), but if someone wants to take this on I'll let them know when I do a new release and give them access to the project so they can keep this up to date. - Dennis Dennis M. Sosnoski SOA, Web Services, and XML Training and Consulting http://www.sosnoski.com - http://www.sosnoski.co.nz Seattle, WA +1-425-296-6194 - Wellington, NZ +64-4-298-6117 Rueegg Alexander wrote: Hi, I think it is okay to use the jibx repository. The only thing is that for Maven2 the POM files for the jars are missing there (for the 1.1 version). Alex -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Dennis Sosnoski Sent: Montag, 21. August 2006 09:51 To: JiBX users Subject: Re: [jibx-users] jibx 1.1 not on maven repository BTW, there's a Jira issue on this topic that's been open for almost two years now: http://jira.codehaus.org/browse/JIBX-45 I'm not willing to add Ibiblio repository maintenance to the list of items I go through for every release, but if someone else wants to take this on I'll gladly let them do so. :-) I think the Ibiblio site has information on what's needed in order to get project updates into the repository. - Dennis Dennis M. Sosnoski SOA, Web Services, and XML Training and Consulting http://www.sosnoski.com - http://www.sosnoski.co.nz Seattle, WA +1-425-296-6194 - Wellington, NZ +64-4-298-6117 Morgan Rachell wrote: I'm using Maven2 and just added the jibx maven repository to my pom.xml. This way, all developers in my project are automatically connected to the jibx repo without any intervention. Check out http://jibx.sourceforge.net/maven-jibx-plugin/usage.html. Rice Yeh wrote: Hi, Jibx 1.1 has been released for a while. But I find it is still NOT on the repositories of maven like http://www.ibiblio.org/maven2/. What I find there is the version 1.0.1. How do not know the procedure to put jar there. Can anyone do this? Regards, Rice -- --- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057; dat=121642 ___ jibx-users mailing list jibx-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jibx-users -- --- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057; dat=121642 ___ jibx-users mailing list jibx-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jibx-users -- --- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057; dat=121642 ___ jibx-users mailing list
Re: [jibx-users] jibx 1.1 not on maven repository
Not really so easy, at least as I understand it. The process of getting into the standard Maven repositories is spelled out here: http://maven.apache.org/guides/mini/guide-ibiblio-upload.html It involves generating a jar in the proper format, then making a request in the Maven Jira. - Dennis Dennis M. Sosnoski SOA, Web Services, and XML Training and Consulting http://www.sosnoski.com - http://www.sosnoski.co.nz Seattle, WA +1-425-296-6194 - Wellington, NZ +64-4-298-6117 Rueegg Alexander wrote: It is easy to deploy jar files to a remote repository (e.g. http://jibx.sourceforge.net/maven2/) mvn deploy:deploy-file -DgroupId=org.jibx -DartifactId=jibx-run -Dversion=1.1 -Dpackaging=jar -Dfile=path-to-file -DrepositoryId=id-to-map-on-server-section-of-settings.xml -Durl=url-of-the-repository-to-deploy where repositoryId maps to a server id in settings.xml which stores authentication information and url is e.g. file://... or ftp://... or so:easy to add to an ant script. Alex btw: It is easily possible to tweak maven to fit your structure! -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Dennis Sosnoski Sent: Montag, 21. August 2006 10:15 To: JiBX users Subject: Re: [jibx-users] jibx 1.1 not on maven repository I'm not willing to take responsibility for maintaining Maven/Maven2 stuff (I've never liked Maven - I hate tools that force you to fit into their structure, rather than adapting to how you like to do things), but if someone wants to take this on I'll let them know when I do a new release and give them access to the project so they can keep this up to date. - Dennis Dennis M. Sosnoski SOA, Web Services, and XML Training and Consulting http://www.sosnoski.com - http://www.sosnoski.co.nz Seattle, WA +1-425-296-6194 - Wellington, NZ +64-4-298-6117 Rueegg Alexander wrote: Hi, I think it is okay to use the jibx repository. The only thing is that for Maven2 the POM files for the jars are missing there (for the 1.1 version). Alex -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Dennis Sosnoski Sent: Montag, 21. August 2006 09:51 To: JiBX users Subject: Re: [jibx-users] jibx 1.1 not on maven repository BTW, there's a Jira issue on this topic that's been open for almost two years now: http://jira.codehaus.org/browse/JIBX-45 I'm not willing to add Ibiblio repository maintenance to the list of items I go through for every release, but if someone else wants to take this on I'll gladly let them do so. :-) I think the Ibiblio site has information on what's needed in order to get project updates into the repository. - Dennis Dennis M. Sosnoski SOA, Web Services, and XML Training and Consulting http://www.sosnoski.com - http://www.sosnoski.co.nz Seattle, WA +1-425-296-6194 - Wellington, NZ +64-4-298-6117 Morgan Rachell wrote: I'm using Maven2 and just added the jibx maven repository to my pom.xml. This way, all developers in my project are automatically connected to the jibx repo without any intervention. Check out http://jibx.sourceforge.net/maven-jibx-plugin/usage.html. Rice Yeh wrote: Hi, Jibx 1.1 has been released for a while. But I find it is still NOT on the repositories of maven like http://www.ibiblio.org/maven2/. What I find there is the version 1.0.1. How do not know the procedure to put jar there. Can anyone do this? Regards, Rice -- --- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057; dat=121642 ___ jibx-users mailing list jibx-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jibx-users -- --- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
Re: [jibx-users] jibx 1.1 not on maven repository
Sorry, but I was talking about deploying to the jibx.sourceforge.net/maven2 repository even if you want to reduce work. This approach is intended for artifacts which are not built with maven (and hence the generated pom does not include the dependencies as long as you don't create a pom for this purpose): http://maven.apache.org/guides/mini/guide-3rd-party-jars-remote.html http://maven.apache.org/plugins/maven-deploy-plugin/usage.html But maybe this could be a solution. Alex -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Dennis Sosnoski Sent: Montag, 21. August 2006 11:55 To: JiBX users Subject: Re: [jibx-users] jibx 1.1 not on maven repository Not really so easy, at least as I understand it. The process of getting into the standard Maven repositories is spelled out here: http://maven.apache.org/guides/mini/guide-ibiblio-upload.html It involves generating a jar in the proper format, then making a request in the Maven Jira. - Dennis Dennis M. Sosnoski SOA, Web Services, and XML Training and Consulting http://www.sosnoski.com - http://www.sosnoski.co.nz Seattle, WA +1-425-296-6194 - Wellington, NZ +64-4-298-6117 Rueegg Alexander wrote: It is easy to deploy jar files to a remote repository (e.g. http://jibx.sourceforge.net/maven2/) mvn deploy:deploy-file -DgroupId=org.jibx -DartifactId=jibx-run -Dversion=1.1 -Dpackaging=jar -Dfile=path-to-file -DrepositoryId=id-to-map-on-server-section-of-settings.xml -Durl=url-of-the-repository-to-deploy where repositoryId maps to a server id in settings.xml which stores authentication information and url is e.g. file://... or ftp://... or so:easy to add to an ant script. Alex btw: It is easily possible to tweak maven to fit your structure! -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Dennis Sosnoski Sent: Montag, 21. August 2006 10:15 To: JiBX users Subject: Re: [jibx-users] jibx 1.1 not on maven repository I'm not willing to take responsibility for maintaining Maven/Maven2 stuff (I've never liked Maven - I hate tools that force you to fit into their structure, rather than adapting to how you like to do things), but if someone wants to take this on I'll let them know when I do a new release and give them access to the project so they can keep this up to date. - Dennis Dennis M. Sosnoski SOA, Web Services, and XML Training and Consulting http://www.sosnoski.com - http://www.sosnoski.co.nz Seattle, WA +1-425-296-6194 - Wellington, NZ +64-4-298-6117 Rueegg Alexander wrote: Hi, I think it is okay to use the jibx repository. The only thing is that for Maven2 the POM files for the jars are missing there (for the 1.1 version). Alex -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Dennis Sosnoski Sent: Montag, 21. August 2006 09:51 To: JiBX users Subject: Re: [jibx-users] jibx 1.1 not on maven repository BTW, there's a Jira issue on this topic that's been open for almost two years now: http://jira.codehaus.org/browse/JIBX-45 I'm not willing to add Ibiblio repository maintenance to the list of items I go through for every release, but if someone else wants to take this on I'll gladly let them do so. :-) I think the Ibiblio site has information on what's needed in order to get project updates into the repository. - Dennis Dennis M. Sosnoski SOA, Web Services, and XML Training and Consulting http://www.sosnoski.com - http://www.sosnoski.co.nz Seattle, WA +1-425-296-6194 - Wellington, NZ +64-4-298-6117 Morgan Rachell wrote: I'm using Maven2 and just added the jibx maven repository to my pom.xml. This way, all developers in my project are automatically connected to the jibx repo without any intervention. Check out http://jibx.sourceforge.net/maven-jibx-plugin/usage.html. Rice Yeh wrote: Hi, Jibx 1.1 has been released for a while. But I find it is still NOT on the repositories of maven like http://www.ibiblio.org/maven2/. What I find there is the version 1.0.1. How do not know the procedure to put jar there. Can anyone do this? Regards, Rice -- --- Using Tomcat but need to do more? Need to support web
Re: [jibx-users] How to create binding for a Tree
Thanks Dennis, your response was very helpful. I do that before without luck. After uour confirmation, I find that I miss the factory needed to create the Collection. Bernard/ -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Dennis Sosnoski Sent: Monday, August 21, 2006 9:57 AM To: JiBX users Subject: Re: [jibx-users] How to create binding for a Tree Hi Bernard, It seems pretty simple - something along the lines of: mapping name='entity-tree' class='EntityTree' structure field='entity'/ collection field='children' item-type='EntityTree'/ /mapping should get you started. What's giving you a problem? - Dennis Dennis M. Sosnoski SOA, Web Services, and XML Training and Consulting http://www.sosnoski.com - http://www.sosnoski.co.nz Seattle, WA +1-425-296-6194 - Wellington, NZ +64-4-298-6117 Bernard D'Havé wrote: Hi, First of all, I really enjoy my first day with JiBX. It's an incredible library! Many thanks for your work! But after a few hours, I try to go harder. I have a tree defined like this: Public class EntityTree { private Entity entity; private CollectionEntityTree children; . . . } I'm still try to find how to write the binging for this class. Any idea? TIA, Bernard -- --- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=1216 42 ___ jibx-users mailing list jibx-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jibx-users - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ jibx-users mailing list jibx-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jibx-users - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ jibx-users mailing list jibx-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jibx-users