JAXB::repeted use of attribute="class"

i am trying to produce java object using jaxb for XSD, I even tried customise jaxb,but its only working for one class attribute. can anyone help me how to get around this problem.
below is a part of Schema.
<?xml version="1.0" encoding="UTF-8"?>
<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<xsd:element name="Descriptor">
<xsd:complexType>
<xsd:sequence>
<xsd:element ref="bridgeID" maxOccurs="unbounded"/>
<xsd:element ref="resourceConn" maxOccurs="unbounded"/>
<xsd:element ref="conn" maxOccurs="unbounded"/>
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" use="required"/>
</xsd:complexType>
</xsd:element>
<xsd:element name="bridgeID">
<xsd:complexType>
<xsd:attribute name="name" type="xsd:string" use="required"/>
<xsd:attribute name="class" type="xsd:string" use="required"/>
</xsd:complexType>
</xsd:element>
<xsd:element name="resourceConn">
<xsd:complexType>
<xsd:attribute name="name" type="xsd:string" use="required"/>
<xsd:attribute name="class" type="xsd:string" use="required"/>
</xsd:complexType>
</xsd:element>
<xsd:element name="conn">
<xsd:complexType>               
<xsd:attribute name="class" type="xsd:string" use="required"/>
<xsd:attribute name="host" type="xsd:string" use="required"/>
</xsd:complexType>
</xsd:element>
</xsd:schema>
ERROR
[ERROR] Attempt to create a property having the same name as the reserved word "
Class".
line 81 of bridgedescriptor.xsd
[ERROR] Attempt to create a property having the same name as the reserved word "
Class".
line 162 of bridgedescriptor.xsd
[ERROR] Attempt to create a property having the same name as the reserved word "
Class".
line 212 of bridgedescriptor.xsd

Attempt to create a property having the same name as the reserved word "
Class".
Select an attribute name other than class.
<xsd:attribute name="class" type="xsd:string" use="required"/>

Similar Messages

  • Force JAXB  to use custom base class on a per complexType basis?

    I know I can <superClass="Blah"> in <globalBindings> to make all classes use "Blah" as a super class. Is there a way to get a complexType to use its own user defined base class?
    I'd like the JAXB compiler to generate the following classes for the schema below:
    What I'd like JAXB compiler to create:
    class A extends MyUserDefinedAbstractA{}...
    class B extends MyUserDefinedAbstractB{};For my own base classes:
    abstract class MyUserDefinedAbstractA {}
    abstract class MyUserDefinedAbstractB {}Based on the following schema:
    <complexType name="A"> .... </complexType>
    <complexType name="B"> .... </complexType>What is the alternative if I can't do the above? I'd like the generated classes to more than just hold data. I'd like them to have methods that can operate on the data as well.
    Regards,
    Monty
    Edited by: CuriousJorj on Jul 9, 2008 6:33 AM
    Edited by: CuriousJorj on Jul 9, 2008 6:35 AM

    There are some Safari extensions that can block JavaScript by domain, but you'll have to search for them.

  • How to get these Attribute class in Query Statement ?

    Hi All,
    I have 2 SCCM primary site, the first one is a migrated site from SCCM 2007 to SCCM 2012 SP1 & then upgraded to SCCM 2012 R2, the second one is a newly created SCCM 2012 R2 site.
    I was trying to create a collection membership rule using the query statement on the second site & i found there are attribute classes which were missing on this site.
    Under query rule /edit query rule in the criteria tab i am trying to define a new criteria with Criteria type : Simple value & then i click the select under "Where" for chossing the attribute class & a value called "Winlogon64"
    don't exists there. There are other classes which are missing too.
    then i go to my first site & i can see the classes there, collection query rule are also defined using the attribute classes.
    Now my questions are :-
    1. Does these settings gets migrated from SCCM 2007 to SCCM 2012 on the first site?
    2. How can we get this in SCCM 2012 R2 on the second site?
    Experts please help.
    Thanks,
    Pranay.

    It sounds a lot like you where using an extension on your hardware inventory. Changes to your hardware inventory are not migrated, so you would need to recreate that change in the hardware inventory.
    My Blog: http://www.petervanderwoude.nl/
    Follow me on twitter: pvanderwoude

  • Use of auxiliary class to add attributes to the schema

    I need to add some attributes to the user class.
    What are the pros and cons of using an auxiliary class versus adding the attributes directly to user?
    Thanks,
    Paolo
    Paolo Tedesco - http://cern.ch/idm

    Hi,
    If you need mandatory attributes for all instances of a class (for whatever reason)
    then modifying the built in class may be the way to go. However auxiliary classes are
    "cleaner" in that they can be used to group related attributes together and more
    flexible in that they can be dynamically (per class instance) or statically linked.
    Probably the most relevant reference is:
     http://msdn.microsoft.com/en-us/library/cc223213.aspx
    One thing to note on that page is:
    "The objectClass attribute of objects of class cl does not include the names of
    statically linked auxiliary classes or the classes in their superclass chains."
    So if you have applications (LDAP browsers, address books etc.) that rely on objectClass
    to list attributes that might be an problem. My preference is to leave built in classes alone and modify them through auxiliaries.
    Lee Flight

  • How to use extends attribute in jsp page directive

    Can anybody tell how to extend a existing .jsp file from another .jsp file. I have tried but it gives error.
    I have used Extends attribute of page directive as below:
    <%@ page extends = "MyAnotherJsp.jsp"%>
    I also tried : <%@ page extends = "MyAnotherJsp"%>
    I am using Tomcat as a web server
    Also tell where to put those files.
    Thanks.

    Hi I am using Netbeans 5.5, Sun Java System Application Server 9.
    ABC.java
    package javapackage;
    public class ABC{
    public String show(){
    return "Sandip Gaikwad";
    index.jsp
    <%@ page extends="javapackage.ABC" %>
    <html>
    <head>
    <title>JSP Page</title>
    </head>
    <body>
    <h1>JSP Page </h1>
    </body>
    </html>
    Above code throws following exception at runtime:-
    HTTP Status 500 -
    type Exception report
    message
    description The server encountered an internal error () that prevented it from fulfilling this request.
    exception
    org.apache.jasper.JasperException: Unable to compile class for JSP
    Generated servlet error:
    [javac] F:\Sun\AppServer\domains\domain1\generated\jsp\j2ee-modules\Page_Extends_Attribute_Example\org\apache\jsp\index_jsp.java:36: getPageContext(javax.servlet.Servlet,javax.servlet.ServletRequest,javax.servlet.ServletResponse,java.lang.String,boolean,int,boolean) in javax.servlet.jsp.JspFactory cannot be applied to (org.apache.jsp.index_jsp,javax.servlet.http.HttpServletRequest,javax.servlet.http.HttpServletResponse,,boolean,int,boolean)
    [javac] pageContext = _jspxFactory.getPageContext(this, request, response,
    [javac] ^
    [javac] 1 error
    Server log
    StandardWrapperValve[jsp]: Servlet.service() for servlet jsp threw exception
    org.apache.jasper.JasperException: Unable to compile class for JSP
    Generated servlet error:
    [javac] F:\Sun\AppServer\domains\domain1\generated\jsp\j2ee-modules\Page_Extends_Attribute_Example\org\apache\jsp\index_jsp.java:36: getPageContext(javax.servlet.Servlet,javax.servlet.ServletRequest,javax.servlet.ServletResponse,java.lang.String,boolean,int,boolean) in javax.servlet.jsp.JspFactory cannot be applied to (org.apache.jsp.index_jsp,javax.servlet.http.HttpServletRequest,javax.servlet.http.HttpServletResponse,<nulltype>,boolean,int,boolean)
    [javac] pageContext = _jspxFactory.getPageContext(this, request, response,
    [javac] ^
    [javac] 1 error
    at org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler.java:94)
    at org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:384)
    at org.apache.jasper.compiler.Compiler.generateClass(Compiler.java:461)
    at org.apache.jasper.compiler.Compiler.compile(Compiler.java:528)
    at org.apache.jasper.compiler.Compiler.compile(Compiler.java:507)
    at org.apache.jasper.compiler.Compiler.compile(Compiler.java:495)
    at org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:530)
    at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:324)
    at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:412)
    at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:318)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
    at org.apache.catalina.core.ApplicationFilterChain.servletService(ApplicationFilterChain.java:397)
    at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:278)
    at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:566)
    at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:536)
    at org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:240)
    at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:179)
    at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:566)
    at com.sun.enterprise.web.WebPipeline.invoke(WebPipeline.java:73)
    at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:182)
    at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:566)
    at com.sun.enterprise.web.VirtualServerPipeline.invoke(VirtualServerPipeline.java:120)
    at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:939)
    at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:137)
    at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:566)
    at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:536)
    at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:939)
    at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:239)
    at com.sun.enterprise.web.connector.grizzly.ProcessorTask.invokeAdapter(ProcessorTask.java:667)
    at com.sun.enterprise.web.connector.grizzly.ProcessorTask.processNonBlocked(ProcessorTask.java:574)
    at com.sun.enterprise.web.connector.grizzly.ProcessorTask.process(ProcessorTask.java:844)
    at com.sun.enterprise.web.connector.grizzly.ReadTask.executeProcessorTask(ReadTask.java:287)
    at com.sun.enterprise.web.connector.grizzly.ReadTask.doTask(ReadTask.java:212)
    at com.sun.enterprise.web.connector.grizzly.TaskBase.run(TaskBase.java:252)
    at com.sun.enterprise.web.connector.grizzly.WorkerThread.run(WorkerThread.java:75)
    If I delete the line <%@ extends="javapackage.ABC"%> it works fine. Please tell me what is wrong with this line.

  • Is there any practical reason to use DB helper class?

    Is there any practical reason to use database helper class ( e.g. database.bookDB in Duke's bookstore)in servlet design? What if I setup a DB connection for every servlet?

    to ken_robinson
    I am currently setup DataSurece in servlet init().Usually (I know WebLogic is this way), if you configure the DataSource through the app server's configuration app, it is available to all applications.
    The most efficient way to look up the DataSource in a particular app is have a ServletContextListener lookup the DataSource from JNDI and set it in the Context as an Attribute. Each servlet would then, in it's init() method, get the DataSource from the ServletContext (faster than using JNDI for each Servlet. The ServletContextListener requires the container you are running in support the 2.3 spec. If it does not, simply use a startup servlet (servlet that is loaded when the app is loaded) and do the same thing.

  • MB_MIGO_BADI and use of local class of SAPLMIGO

    Hello
    I used the BADI MB_MIGO_BADI and methode LINE_MODIFY to change all i want on the ITEM. That's OK and all is working.
    But, because there is  a but...I'd like to check if the item fields are input fields, invisible fieds, etc, etc , exactly like on a loop at screen for example.
    For this, SAP use in standard in SAPLMIGO a local class named lcl_migo_screenmodification ( in include LMIGOSM3 of ECC5.0 ) with the methode get :
        get
          IMPORTING
            i_global_counter TYPE migo_global_counter   OPTIONAL
            i_field          TYPE migo_fieldname
            i_badi           TYPE abap_bool             OPTIONAL
          RETURNING
            value(r_status)  TYPE migo_fs_status,
    and this is perfect to know the attributes of each screen field, depending the status return.
    But, in the BADI, is it possible to use a local class during the run time of the MIGO  ? and HOW if possible ?
    thanks for your help

    Yep, this is exactly what class loaders are for. Create a URLClassLoader pointing to the specific URL you want the classes loaded from. Then use findClass on the ClassLoader to find a Class object, and newInstance on that Class object to get an instance of the class.
    Another thing you should do is completely empty out the user's classpath before running Java, so you know the only classes you're dealing with are the ones you're loading. Kinda hard for an applet, but controllable for an application.

  • What is the Use of Inner classes in Interface.

    Hi All,
    Most of us we know that We can define inner classes in the interface. Like
    public interface MyItf{
         Demo d = new Demo();     
         class Demo{
              Demo(){
              //some additional code here
    }Now I have following question in my mind:
    1. An Interface is pure abstract. Then why inner classes inside the interface?
    2. In what scenario, we can utilize these inner classes of interface?
    Plz Share your views on this...
    Thks for ur replies in advance.

    This we cando in defining Demo Class outside.That's no argument. You could write the programs in other languages, so why use Java? Just because you can use a top-level class instead, it's no argument against using an inner class. You also can make all attributes public... you don't o that either (I hope).
    Ok Also
    tell me how to pass an Object in inner class Demo. to
    the method of Interface.
    public abstract TheInterface.Demo doSomething(TheInterface.Demo d);
    Can u give some real time situation where this
    concept can be used.There are only very, very few. Just because it's possible, it doesn't mean it needs to be done or is done often.

  • Can't build JAXB examples using ant

    I'm getting the following errors when trying to build the JAXB sampls using ant. I've followed all the instructions, not sure what the prob is.
    I'm using JDK 1.6 and JWSDP 2.0 on Windows XP.
    Any ideas?
    C:\Sun\jwsdp-2.0\jaxb\samples\unmarshal-read>ant
    Buildfile: build.xml
    compile:
    [echo] Compiling the schema...
    [xjc] C:\Sun\jwsdp-2.0\jaxb\samples\unmarshal-read\gen-src\primer.po is not found and thus excluded from the dependency check
    [xjc] Compiling file:/C:/Sun/jwsdp-2.0/jaxb/samples/unmarshal-read/po.xsd
    BUILD FAILED
    C:\Sun\jwsdp-2.0\jaxb\samples\unmarshal-read\build.xml:34: java.lang.IllegalArgumentException: Expected class javax.xml.bind.annotation.XmlAccessType but found class javax.xml.bind.annotation.AccessType

    I'm getting the following errors when trying to build
    the JAXB sampls using ant. I've followed all the
    instructions, not sure what the prob is.
    I'm using JDK 1.6 and JWSDP 2.0 on Windows XP.
    Any ideas?
    C:\Sun\jwsdp-2.0\jaxb\samples\unmarshal-read>ant
    Buildfile: build.xml
    compile:
    [echo] Compiling the schema...
    [xjc]
    C:\Sun\jwsdp-2.0\jaxb\samples\unmarshal-read\gen-src\
    rimer.po is not found and thus excluded from the
    dependency check
    [xjc] Compiling
    file:/C:/Sun/jwsdp-2.0/jaxb/samples/unmarshal-read/po
    xsd
    BUILD FAILED
    C:\Sun\jwsdp-2.0\jaxb\samples\unmarshal-read\build.xml
    :34: java.lang.IllegalArgumentException: Expected
    class javax.xml.bind.annotation.XmlAccessType but
    found class javax.xml.bind.annotation.AccessTypeI'm having the same problem only using 1.5.0.10 jdk running windows XP, I'm not using ant, just command line...

  • Use of Assitance Class

    Hi all,
    I would like to know what is better in terms of performance and also of managment when I create a Web dynpro. My doubt is, in a Web Dynpro for customers management is better to create an object referred to a Class in which I will define all methods about customer and then I instance this object into the web dynpro through its constructor method, or is better define all these methods into the assistance class?
    I don't know if is better to use the assistance class for Web Dynpro methods and another class only for customer management methods or use only the Assistance class and inside it define all methods specific for Web Dynpro and that ones specific for Customer managment.
    Thanks
    GN

    Hi,
    purely from an architectural point of view,
    I would instantiate the customer as an attribute on the assistance class
    and use the objects methods via this assistance class, which will be linking the business logic
    with the controller part in the component.
    Performance wise, there won't be much of a difference, only the structure will improve.
    Grtz,
    Koen

  • Use Of friend Class

    In class builder what is the use of friend class and where can i find the standard classes and methods

    Being someone's friend, means being allowed to use his protected attributes and method.
    When you define a friend for a class, this class can addres these components as if they were public ones.
    In real world: my friend (some class) can use my car (which is protected), which is not allowed to strangers (other classes).
    Regards
    Marcin

  • Could I run a jar application use a external class such as db2java.zip (ib

    Could I run a jar application use a external resource in a zip format such as db2java.zip (ibmdb2 driver) not a jar format ?

    Yes you can. Make a manifest for your jar, and include the manifest attribute 'Class-Path' that specifies your jar or zip file, like this:
    Class-Path: db2java.zip
    And then have the zip file in the same directory as your jar file. See the Java Tutorial, Jar Trail for more info on manifest, and/or see other messages in this forum.
    -Ron

  • Updating database table using ALV Grid class CL_ALV_CHANGED_DATA_PROTOCOL

    Hi,
    I am trying to use class CL_ALV_CHANGED_DATA_PROTOCOL to update a database table from an ALV grid.
    I have used program BCALV_EDIT_04 as an example.
    I am able to successfully processed inserted or deleted lines using the attributes
    MT_DELETED_ROWS
    MT_INSERTED_ROWS
    but I also want to process modified lines.
    I was just wondering whether anyone out there has some example code for this.
    I can see that there are the following attributes available
    MT_MOD_CELLS
    MP_MOD_ROWS.
    I would ideally like to use MP_MOD_ROWS rather than  MT_MOD_CELLS but it is not clear to me what type MP_MOD_ROWS is.
    If anyone has any example code for this sort of thing, please let me know.
    Thanks,
    Ruby

    hi Ruby,
    Yes we can use that *data reference variable *.
    It is a variable( something comparable to a pointer ) that points to a int table( table with changed contents )
    which ll be created at run-time based on the data type ot the internal table that we pass to the parameter it_outtab of method set_table_for_first_display ...
    assign er_data_changed->mp_mod_rows->* to a field-symbol and use it...
    Check the below code for example -> method refresh_changed_data
    screen flow logic.
    PROCESS BEFORE OUTPUT.
      MODULE pbo.
    PROCESS AFTER INPUT.
      MODULE pai.
    main program.
    *       CLASS lcl_event_responder DEFINITION                           *
    CLASS lcl_event_responder DEFINITION.
      PUBLIC SECTION.
        DATA  : ls_changed_cell TYPE  lvc_s_modi,
                lv_language     TYPE  spras..
        METHODS refresh_changed_data  FOR EVENT data_changed
                                      OF cl_gui_alv_grid
                                      IMPORTING er_data_changed
                                                e_ucomm.
    ENDCLASS.                    "event_responder DEFINITION
    TYPES tt_makt TYPE STANDARD TABLE OF makt.
    DATA: go_handler         TYPE REF TO lcl_event_responder,
          go_grid            TYPE REF TO cl_gui_alv_grid,
          gt_fieldcat        TYPE lvc_t_fcat,
          gv_language        TYPE spras VALUE 'E',
          gt_outtab          TYPE tt_makt,
          gs_tableline       TYPE LINE OF tt_makt.
    FIELD-SYMBOLS : <changed_rows> TYPE tt_makt.
    CALL SCREEN 100.
    *       MODULE PBO OUTPUT                                             *
    MODULE pbo OUTPUT.
      SET PF-STATUS 'BASIC'.
      PERFORM create_and_init_alv CHANGING gt_outtab[]
                                           gt_fieldcat.
    ENDMODULE.                    "pbo OUTPUT
    *       MODULE PAI INPUT                                              *
    MODULE pai INPUT.
      LEAVE PROGRAM.
    ENDMODULE.                    "pai INPUT
    FORM create_and_init_alv CHANGING pt_outtab LIKE gt_outtab[]
                                      pt_fieldcat TYPE lvc_t_fcat.
      CHECK go_grid IS NOT BOUND.
      CREATE OBJECT go_grid
        EXPORTING
          i_parent = cl_gui_container=>default_screen.
      PERFORM build_display_table.
      PERFORM build_fieldcat CHANGING pt_fieldcat.
      go_grid->set_table_for_first_display( CHANGING  it_fieldcatalog      = pt_fieldcat
                                                      it_outtab            = pt_outtab ).
      go_grid->set_ready_for_input( 1 ).
    * raises the 'data_changed' event when we select another cell/any action after changing the data
      go_grid->register_edit_event( EXPORTING i_event_id = cl_gui_alv_grid=>mc_evt_enter ).
      CREATE OBJECT go_handler.
      SET HANDLER go_handler->refresh_changed_data FOR go_grid.
    ENDFORM.                               "CREATE_AND_INIT_ALV
    FORM build_display_table.
      FREE gt_outtab.
      SELECT * FROM makt UP TO 20 ROWS INTO TABLE gt_outtab WHERE spras EQ gv_language.
    ENDFORM.                               "build_display_table
    FORM build_fieldcat CHANGING pt_fieldcat TYPE lvc_t_fcat.
      DATA ls_fcat TYPE lvc_s_fcat.
      CALL FUNCTION 'LVC_FIELDCATALOG_MERGE'
        EXPORTING
          i_structure_name = 'MAKT'
        CHANGING
          ct_fieldcat      = pt_fieldcat.
      LOOP AT pt_fieldcat INTO ls_fcat.
        ls_fcat-edit       = abap_true.
        MODIFY pt_fieldcat FROM ls_fcat.
      ENDLOOP.
    ENDFORM.                               "build_fieldcat
    *       CLASS event_responder IMPLEMENTATION                          *
    CLASS lcl_event_responder IMPLEMENTATION.
      METHOD refresh_changed_data.
        ASSIGN er_data_changed->mp_mod_rows->* TO <changed_rows>.
        LOOP AT <changed_rows> INTO gs_tableline.
          BREAK-POINT.
        ENDLOOP.
      ENDMETHOD.                    "click
    ENDCLASS.                    "event_responder IMPLEMENTATION
    Cheers,
    Jose.

  • Use of Codec class genereted by Autotyype for xml-jave binding?

    I have generated the java representation and codec classes using Autotype against xml schema. Just wondering can i use this codec class to do Java to xml binding like other tools (XMLBeans, JAXB and Castor) do. If answer is yes can you give me an example how can I use it.
    Thanks,
    Mujeeb

    manoj,
    Thanks for the help.
    Sample 4 tells me that there is no code generated that I can use to write out
    my non-built-in datatype to xml. For each of my non-built-in datatypes, I will
    have to hand write such code, or use a handler.
    John
    "manojc" <[email protected]> wrote:
    Here is an example of start form WSDL usecase:
    http://www.manojc.com/?sample11
    If you want to log the xml input/output to the web service
    you can use a handler. You need to edit the web-services.xml
    dd file to add handler.
    Here is a example of using handler. But this use source2wsdd
    instead of wsdl2service:
    http://www.manojc.com/?sample4
    Regards,
    -manoj
    "John Franey" <[email protected]> wrote in message
    news:3ef30db2$[email protected]..
    Hi,
    I created a wsdl and used the autotype and wsdl2service ant tasks togenerate
    java files.
    As part of my service, I want to log output in xml format of the datareceived.
    I can write my own serialization, or use the code that was generatedby
    autotype.
    I would rather not write my own. I want to use the code generated bywsdl2service.
    Trouble is I can not find a javadoc nor a sample code segment thatshows
    how!
    Call me dense, but I've spent several hours on BEA web pages lookingfor
    answers.
    This is what I found, but I could not get to work for various reasons:
    XML streaming: I have a codec (generated by autotype ant task), butit
    requires
    a SerializationContext. Where do I get a Serialization Context? I thinkserialize
    is a callout from WS and not for applicaiton code to call.
    javax.xml.rpc.encoding.Serializer: An object of this type is madeavailable by
    AbstractCodec (base class of generated code, but how is this classused?
    [Sorry if you've seen this posting a couple of days ago on interest.xml
    newsgroup.>>  I didn't intend to repost but due to lack of response there, I thought>this newsgroup>> was more appropriate and read more.
    Thanks,
    John

  • Get method in the Attribute class. in JNDI

    I had connected to the AD
    // Create the initial directory context
    DirContext ctx = new InitialDirContext(env);
    Attributes attrs = ctx.getAttribute("DC=DomainDnsZones,DC=testing,DC=local");
    but I had no idea wat to get from the attrs.get method.
    as in, I don't know what kind of attributes ID are available inside my attrs
    is there any coding to get all the attribute ID so tat I can use the get method to retrieve them?

    We can get the available Attributes for a particular user.....
    using Attributes class for a Search and Context....
    You can try out the free LDAP viewer available in internet (Its a Applet)... u can find the possible Attribute Names in that... and use the below statement..
    Attributes attrs1 = ctx.getAttributes("CN=" + "user,CN=Users,DC=domain,DC=dmn,DC=com");
    String office = (String)attrs1.get("physicaldeliveryofficename").get();

Maybe you are looking for