From: Farrukh N. <Farrukh.Najmi@Sun.COM> - 2004-01-31 13:57:16
|
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html> <head> <meta http-equiv="Content-Type" content="text/html;charset=ISO-8859-1"> <title></title> </head> <body text="#000000" bgcolor="#ffffff"> Anantharam wrote:<br> <blockquote type="cite" cite="mid...@ho..."> <meta content="text/html; " http-equiv="Content-Type"> <meta content="Microsoft Word 11 (filtered medium)" name="Generator"> <!--[if !mso]> <style> v\:* {behavior:url(#default#VML);} o\:* {behavior:url(#default#VML);} w\:* {behavior:url(#default#VML);} shape {behavior:url(#default#VML);} </style> <![endif]--> <style> <!-- /* Font Definitions */ @font-face {font-family:Tahoma; panose-1:2 11 6 4 3 5 4 4 2 4;} /* Style Definitions */ p.MsoNormal, li.MsoNormal, div.MsoNormal {margin:0in; margin-bottom:.0001pt; font-size:12.0pt; font-family:"Times New Roman"; color:black;} a:link, span.MsoHyperlink {color:blue; text-decoration:underline;} a:visited, span.MsoHyperlinkFollowed {color:purple; text-decoration:underline;} pre {margin:0in; margin-bottom:.0001pt; font-size:10.0pt; font-family:"Courier New"; color:black;} span.EmailStyle17 {mso-style-type:personal; font-family:Arial; color:windowtext;} span.EmailStyle19 {mso-style-type:personal-reply; font-family:Arial; color:navy;} @page Section1 {size:8.5in 11.0in; margin:1.0in 1.25in 1.0in 1.25in;} div.Section1 {page:Section1;} --> </style><!--[if gte mso 9]><xml> <o:shapedefaults v:ext="edit" spidmax="1026" /> </xml><![endif]--><!--[if gte mso 9]><xml> <o:shapelayout v:ext="edit"> <o:idmap v:ext="edit" data="1" /> </o:shapelayout></xml><![endif]--> <div class="Section1"> <p class="MsoNormal"><font face="Arial" color="navy" size="2"><span style="font-size: 10pt; font-family: Arial; color: navy;">Farrukh<o:p></o:p></span></font></p> <p class="MsoNormal"><font face="Arial" color="navy" size="2"><span style="font-size: 10pt; font-family: Arial; color: navy;"><o:p> </o:p></span></font></p> <p class="MsoNormal"><font face="Arial" color="navy" size="2"><span style="font-size: 10pt; font-family: Arial; color: navy;">Thanks for the prompt reply, I had read that tutorial before and add users through the GUI<o:p></o:p></span></font></p> <p class="MsoNormal"><font face="Arial" color="navy" size="2"><span style="font-size: 10pt; font-family: Arial; color: navy;"><o:p> </o:p></span></font></p> <p class="MsoNormal"><font face="Arial" color="navy" size="2"><span style="font-size: 10pt; font-family: Arial; color: navy;">But I am NOT able to do so programmatically, I called javax.xml.registry.infomodel.Organization.addUser(User ..), and saved the Organization, the code doesn't seem to save the User object to the registry.<o:p></o:p></span></font></p> <p class="MsoNormal"><font face="Arial" color="navy" size="2"><span style="font-size: 10pt; font-family: Arial; color: navy;">Can you please guide me on why I am not able to save the User Object programmatically?</span></font></p> </div> </blockquote> Hi Anantharam,<br> <br> Try creating a request in which you are saving only one object which is a User instance. That will be the way to programmatically register a user. You may also want to look at the com.sun.xml.registry.client.admin package in the source code to see how RegistryBrowser tools does user registration. Thanks.<br> <blockquote type="cite" cite="mid...@ho..."> <div class="Section1"> <p class="MsoNormal"><font face="Arial" color="navy" size="2"><span style="font-size: 10pt; font-family: Arial; color: navy;"><o:p></o:p></span></font></p> <p class="MsoNormal"><font face="Arial" color="navy" size="2"><span style="font-size: 10pt; font-family: Arial; color: navy;"><o:p> </o:p></span></font></p> <p class="MsoNormal"><font face="Arial" color="navy" size="2"><span style="font-size: 10pt; font-family: Arial; color: navy;">Looking forward to your reply<o:p></o:p></span></font></p> <p class="MsoNormal"><font face="Arial" color="navy" size="2"><span style="font-size: 10pt; font-family: Arial; color: navy;">Many thanks in advance<o:p></o:p></span></font></p> <p class="MsoNormal"><font face="Arial" color="navy" size="2"><span style="font-size: 10pt; font-family: Arial; color: navy;">Ananth<o:p></o:p></span></font></p> <p class="MsoNormal"><font face="Arial" color="navy" size="2"><span style="font-size: 10pt; font-family: Arial; color: navy;"><o:p> </o:p></span></font></p> <div> <div style="text-align: center;" align="center" class="MsoNormal"><font face="Times New Roman" color="black" size="3"><span style="font-size: 12pt; color: windowtext;"> <hr tabindex="-1" align="center" width="100%" size="2"></span></font></div> <p class="MsoNormal"><b><font face="Tahoma" color="black" size="2"><span style="font-size: 10pt; font-family: Tahoma; color: windowtext; font-weight: bold;">From:</span></font></b><font face="Tahoma" color="black" size="2"><span style="font-size: 10pt; font-family: Tahoma; color: windowtext;"> Farrukh Najmi [<a class="moz-txt-link-freetext" href="mailto:Farrukh.Najmi@Sun.COM">mailto:Farrukh.Najmi@Sun.COM</a>] <br> <b><span style="font-weight: bold;">Sent:</span></b> Saturday, January 31, 2004 6:28 AM<br> <b><span style="font-weight: bold;">To:</span></b> <a class="moz-txt-link-abbreviated" href="mailto:ana...@ho...">ana...@ho...</a><br> <b><span style="font-weight: bold;">Cc:</span></b> <a class="moz-txt-link-abbreviated" href="mailto:ebx...@li...">ebx...@li...</a><br> <b><span style="font-weight: bold;">Subject:</span></b> Re: [Ebxmlrr-tech] Adding new User</span></font><font color="black"><span style="color: windowtext;"><o:p></o:p></span></font></p> </div> <p class="MsoNormal"><font face="Times New Roman" color="black" size="3"><span style="font-size: 12pt;"><o:p> </o:p></span></font></p> <p class="MsoNormal"><font face="Times New Roman" color="black" size="3"><span style="font-size: 12pt;">Anantharam wrote:<br> <br> <o:p></o:p></span></font></p> <p class="MsoNormal"><font face="Arial" color="black" size="3"><span style="font-size: 12pt; font-family: Arial;"><u1:p> </u1:p></span></font><o:p></o:p></p> <p class="MsoNormal"><font face="Arial" color="black" size="3"><span style="font-size: 12pt; font-family: Arial;">How do i add a new User to an existing Organization ?</span></font><u1:p></u1:p><o:p></o:p></p> <p class="MsoNormal"><font face="Times New Roman" color="black" size="3"><span style="font-size: 12pt;"> <u1:p></u1:p><o:p></o:p></span></font></p> <p class="MsoNormal"><font face="Arial" color="black" size="3"><span style="font-size: 12pt; font-family: Arial;">I tried adding an User via the following call javax.xml.registry.infomodel.Organization.addUser(User ..), <u1:p></u1:p></span></font><o:p></o:p></p> <p class="MsoNormal"><font face="Arial" color="black" size="3"><span style="font-size: 12pt; font-family: Arial;">and saved the Organization, the code doesn't seem to save the User object..</span></font><u1:p></u1:p><o:p></o:p></p> <p class="MsoNormal"><font face="Times New Roman" color="black" size="3"><span style="font-size: 12pt;"> <u1:p></u1:p><o:p></o:p></span></font></p> <p class="MsoNormal"><font face="Arial" color="black" size="3"><span style="font-size: 12pt; font-family: Arial;">I checked UserImpl.java, but the code seems to be adding the User to a HashSet but doesn't seem to store it..</span></font><u1:p></u1:p><o:p></o:p></p> <p class="MsoNormal"><font face="Times New Roman" color="black" size="3"><span style="font-size: 12pt;"> <u1:p></u1:p><o:p></o:p></span></font></p> <p class="MsoNormal"><font face="Arial" color="black" size="3"><span style="font-size: 12pt; font-family: Arial;">I would be grateful if you could guide me on how to get about solving this problem</span></font><u1:p></u1:p><o:p></o:p></p> <p class="MsoNormal"><font face="Times New Roman" color="black" size="3"><span style="font-size: 12pt;"> <u1:p></u1:p><o:p></o:p></span></font></p> <p class="MsoNormal"><font face="Arial" color="black" size="3"><span style="font-size: 12pt; font-family: Arial;">Thanks in advance</span></font><u1:p></u1:p><o:p></o:p></p> <p class="MsoNormal"><font face="Arial" color="black" size="3"><span style="font-size: 12pt; font-family: Arial;">Ananth</span></font><u1:p></u1:p><o:p></o:p></p> <p class="MsoNormal"><font face="Arial" color="black" size="2"><span style="font-size: 10pt; font-family: Arial;"><u1:p> </u1:p></span></font><o:p></o:p></p> <p class="MsoNormal"><font face="Times New Roman" color="black" size="3"><span style="font-size: 12pt;">Please see Registry Browser tutorial on this:<br> <br> <a href="http://ebxmlrr.sourceforge.net/2.1/tutorial/tutorial-userreg.html">http://ebxmlrr.sourceforge.net/2.1/tutorial/tutorial-userreg.html</a><br> <br> BTW we have created a new FAQ for the project at the following URL:<br> <br> <a href="http://sourceforge.net/tracker/?atid=627327&group_id=37074&func=browse">http://sourceforge.net/tracker/?atid=627327&group_id=37074&func=browse</a><br> <br> Will update web site sometime soon.<br> <br> <br> <o:p></o:p></span></font></p> <pre><font face="Courier New" color="black" size="2"><span style="font-size: 10pt;">-- <o:p></o:p></span></font></pre> <pre><font face="Courier New" color="black" size="2"><span style="font-size: 10pt;">Regards,<o:p></o:p></span></font></pre> <pre><font face="Courier New" color="black" size="2"><span style="font-size: 10pt;">Farrukh<o:p></o:p></span></font></pre> </div> </blockquote> <br> <br> <pre cols="80" class="moz-signature">-- Regards, Farrukh </pre> </body> </html> |