JAXB using marshaller.setProperty to specify xalan

Hi All,
I'm developing an application using JAXB 1.0.4. I'm able to successfully generate xml from the JAXB compiled classes. My root element should look like
<EzAp:Invoice xmlns:EzAp="http://siemens.com/einvoice" xmlns:xalan="http://xml.apache.org/xslt" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://siemens.com/einvoice file:///C:/einvoice/xml/EzAp.xsd">.
I'm not being able to specify the xalan namespace. Please let me know if I can do that through the marshaller.setProperty or any other work around.
Thanks for the help
Mahesh

hai,
i seen u r post.i am having problem with unmarshalling program.with your post i know u can definately solve my problem.because i am having problem in generating xml docemnt from the unmarshall program.pleae help me in thi regard.
i wrote a sample xml file .and it's xml schema.i used this xml schma to jaxb compiler to generate the classes.it has generated the classes.
then i wrote unmarshall program as follows
public class indextestUnmarshal {
public static void main(String args[]){
try
     System.out.println("starting........");
     javax.xml.bind.JAXBContext jc= JAXBContext.newInstance("com.search");
     System.out.println("JAXB Instance.....");
     Unmarshaller unmarshaller = jc.createUnmarshaller();     
     System.out.println("calling unmarshal method.....");
     Searchblox coll = (Searchblox)unmarshaller.unmarshal(new File("search.xml"));
     System.out.println("searchblox...........");
catch(JAXBException e)
     e.printStackTrace();
program is unable to print the 4th stmt i.e searchblox.it's giving error as follows
starting........
JAXB Instance.....
calling unmarshal method.....
javax.xml.bind.UnmarshalException: unexpected element (uri:"", local:"searchblox"). Expected elements are (unknown)
     at com.sun.xml.bind.v2.runtime.unmarshaller.UnmarshallingContext.handleEvent(UnmarshallingContext.java:523)
     at com.sun.xml.bind.v2.runtime.unmarshaller.Loader.reportError(Loader.java:199)
     at com.sun.xml.bind.v2.runtime.unmarshaller.Loader.reportError(Loader.java:194)
     at com.sun.xml.bind.v2.runtime.unmarshaller.Loader.reportUnexpectedChildElement(Loader.java:71)
     at com.sun.xml.bind.v2.runtime.unmarshaller.UnmarshallingContext$DefaultRootLoader.childElement(UnmarshallingContext.java:920)
     at com.sun.xml.bind.v2.runtime.unmarshaller.UnmarshallingContext._startElement(UnmarshallingContext.java:364)
     at com.sun.xml.bind.v2.runtime.unmarshaller.UnmarshallingContext.startElement(UnmarshallingContext.java:345)
     at com.sun.xml.bind.v2.runtime.unmarshaller.SAXConnector.startElement(SAXConnector.java:117)
     at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.startElement(Unknown Source)
     at com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.scanStartElement(Unknown Source)
     at com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl$NSContentDispatcher.scanRootElementHook(Unknown Source)
     at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown Source)
     at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)
     at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(Unknown Source)
     at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(Unknown Source)
     at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(Unknown Source)
     at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(Unknown Source)
     at com.sun.xml.bind.v2.runtime.unmarshaller.UnmarshallerImpl.unmarshal0(UnmarshallerImpl.java:200)
     at com.sun.xml.bind.v2.runtime.unmarshaller.UnmarshallerImpl.unmarshal(UnmarshallerImpl.java:173)
     at javax.xml.bind.helpers.AbstractUnmarshallerImpl.unmarshal(AbstractUnmarshallerImpl.java:137)
     at javax.xml.bind.helpers.AbstractUnmarshallerImpl.unmarshal(AbstractUnmarshallerImpl.java:142)
     at javax.xml.bind.helpers.AbstractUnmarshallerImpl.unmarshal(AbstractUnmarshallerImpl.java:151)
     at javax.xml.bind.helpers.AbstractUnmarshallerImpl.unmarshal(AbstractUnmarshallerImpl.java:169)
     at indextestUnmarshal.main(indextestUnmarshal.java:39)
please help me in this regard as soosn as possible
Thanks in Advance
-Rregards
Rama

Similar Messages

  • JAXB Unmarshaller/Marshaller operation differences.

    I am using jaxb-ra-2.1.8 and am trying to write a simple program to read xml marshall it to a file then immediately read it back in using the following:
    import java.io.File;
    import java.io.IOException;
    import javax.xml.XMLConstants;
    import javax.xml.bind.JAXBContext;
    import javax.xml.bind.JAXBException;
    import javax.xml.bind.Marshaller;
    import javax.xml.bind.Unmarshaller;
    import javax.xml.bind.ValidationEvent;
    import javax.xml.bind.ValidationEventHandler;
    import javax.xml.parsers.ParserConfigurationException;
    import javax.xml.transform.stream.StreamSource;
    import javax.xml.validation.Schema;
    import javax.xml.validation.SchemaFactory;
    import org.xml.sax.SAXException;
    import com.namespace.test.base.Root;
    import com.namespace.test.extension.Extension;
    public class XmlJaxStuffWeb implements ValidationEventHandler{
         public static void main(String[] args) throws JAXBException, ParserConfigurationException, SAXException, IOException{
              JAXBContext jaxbContext = JAXBContext.newInstance("com.namespace.test.abstracttype:com.namespace.test.base");
              StreamSource[] streams = new StreamSource[3];
              streams[0] = new StreamSource(new File("C:/development/libraries/jaxb-ri-2.1.8/bin/abstract/Extension.xsd"));
              streams[1] = new StreamSource(new File("C:/development/libraries/jaxb-ri-2.1.8/bin/abstract/Base.xsd"));
              streams[2] = new StreamSource(new File("C:/development/libraries/jaxb-ri-2.1.8/bin/abstract/AbstractType.xsd"));
              Schema s = SchemaFactory.newInstance(XMLConstants.W3C_XML_SCHEMA_NS_URI).newSchema(streams);
              //javax.xml.validation.Validator v = s.newValidator();
              writeXml(jaxbContext, s);
              readXml(jaxbContext, s);
              //System.out.println
              //System.out.println(jaxbContext.toString());
              //jaxbContext.createValidator();
         public static void readXml(JAXBContext jaxbContext, Schema s) throws JAXBException, SAXException, IOException{
              Unmarshaller un = jaxbContext.createUnmarshaller();
              un.setSchema(s);
              un.setEventHandler(new XmlJaxStuffWeb());
              //un.setValidating(true);
              Object obj = un.unmarshal(new File("c:/test.xml"));
              System.out.println(obj.getClass());
         public static void writeXml(JAXBContext jaxbContext, Schema s) throws JAXBException, SAXException, IOException{
              Root r = new Root();
              r.setHolder("Holder");
              Extension e = new Extension();
              e.setExtendedString("BLAH");
              e.setText("blah");
              com.namespace.test.extension.ObjectFactory f = new com.namespace.test.extension.ObjectFactory();
              r.setAbstractElement(f.createExtension(e));
              //StringWriter b = new StringWriter();
              Marshaller marshaller = jaxbContext.createMarshaller();
              marshaller.setProperty(Marshaller.JAXB_FORMATTED_OUTPUT, true);
              marshaller.setSchema(s);
              marshaller.setEventHandler(new XmlJaxStuff());
              marshaller.marshal( r, new File("c:/test.xml") );
              //System.out.println(b);
         /* (non-Javadoc)
          * @see javax.xml.bind.ValidationEventHandler#handleEvent(javax.xml.bind.ValidationEvent)
         public boolean handleEvent(ValidationEvent arg0) {
              System.out.println(arg0.getMessage());
              //ValidationEventLocator l = arg0.getLocator();
              return false;
    }The write is performed without issue, but the read bombs saying an expected element is missing, which makes no sense since I do validation before marshalling and unmarshalling. It looks like the Unmarshaller is searching the JAXBContext (i.e. not reading the @XmlSeeAlso annotation) differently than the Marshaller because if I put the other package in the JAXBContext it works fine for both reads and writes. Is this expected or is there a bug that exists that causes this behavior?
    It may also be worth noting that I do not get an error if I don't specify a custom eventhandler.
    Edited by: JaM2003 on Oct 14, 2008 2:00 PM

    Hi Jason,
    Below is the sample.....You can use this..
    JAXBElement<Task> root = null;
              try {
                   ByteArrayInputStream input = new ByteArrayInputStream(
                             xmlStr.getBytes());
                   JAXBContext jc = JAXBContext.newInstance(Task.class);
                   Unmarshaller u = jc.createUnmarshaller();
                   StreamSource sc = new StreamSource(new StringReader(
                             xmlStr.toString()));
                   root = u.unmarshal(new StreamSource(input), Task.class);
              } catch (Exception e) {
                   e.printStackTrace();
              }

  • JAXB: using anonymous namespace (no prefix)

    I am using a namespace for my JAXB serialized object, so that the first part looks like that:
    <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
    <ns2:DataRecords xmlns:ns2="http://test.org/DataRecord/" StartProcessingTime="2010-05-20T12:34:37.123Z" ChargingDataVersion="1.0">
        <Item>
    ....As you can see JAXB uses the default Prefix "ns2" for assigning the DataRecords node to the namespace. Due to a special request I need
    to use an anonymous namespace with no prefix, something like this:
    <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
    <DataRecords xmlns="http://test.org/DataRecord/" StartProcessingTime="2010-05-20T12:34:37.123Z" ChargingDataVersion="1.0">
        <Item>
    ....If I got the XML specifications right this should do the job as well, as long as only one namespace is used. Using JAXB I only recognized the
    possibility to change the prefix via a property of the marshaller and a custom prefix manager. But it seems impossible to abandon the prefix
    completely (returning null or an empty string in the custom prefix manager falls back to the default name prefixes)
    any idea?
    Edited by: Maurice_T on Jul 21, 2010 2:34 PM

    This seems wrong to me. I've filed Bug 2400119 to get this looked into by development.
    I'd expect any document with an appropriate qualified name to be found by your XPath expression, irrespective of whether syntactically one of the documents happened to use the default namespace syntax.

  • How can I use this account without specify credit cards, only for free applications ?

    How can I use this account without specify credit cards, only for free applications ?

    Click here and follow the instructions.
    (94222)

  • Failed to export using the options you specified. Please check your options

    Hi..
    i was using crystal report10.5 with visual studio 2008(c#)..
    now im migrated to visual studio 2010....and i have installed these setups http://www.sdn.sap.com/irj/boc/crystalreports and http://www.sdn.sap.com/irj/sdn/crystalreports-dotnet ...
    when i open my project it will ask to convert crystal reports and i have converted ...reports are working fine but in tool bar if i click and select a pdf format to export it will display a error message Failed to export using the options you specified. Please check your options and try again. and if i click on print button it is not working(i have set printmode=pdf)...when i was working on vs2008 both were working fine but in vs2010 it is not working..

    Hello,
    What type of app you are using? A win app will not have this option. Also what FW are you using? Have you made changes to the viewer(after migrating) and ensure that you are using the 13.0.2000.0?
    Take a look at [this|Export and print problem; thread, also.
    Thanks.

  • XK01 Account group 0003 uses ext no assignment Specify account number

    Hi
    When I am trying to create one time vendor in XK01 , after filling all fields (except vendor , when I click the enter I am getting the following error .
    "Account group 0003 uses ext no assignment Specify account number "
    Any idea where should I specify account number  and what is this account number  ? I mean is it GL account number ?
    Thanks
    SN

    Hi Satya,
    if you donot want to assign the external number range to the vendors.....use T.code XKN1..remove the tickmark from checkbox "EXT" and save.
    Try creating again. The problem occurs because you have selected external number ranges for vendors in XKN1.
    Regards
    A
    Assign points if useful

  • How to use PS to judge the existence of a folder in the specified directory and how to use PS in the specified directory to create to create the folder?(javascript)

    1,How to use PS to judge the existence of a folder in the specified directory?(use javascript)
    2, how to use PS in the specified directory to create to create the folder?(use javascript)
    Thanks you!

    Thanks you!

  • In order to use mscomctl2dtpicker you must specify a license

    I receive a message "in order to use mscomctl2dtpicker you must specify a license.  Use Licenses.Add to add the license string to the Licenses collection"
    I get this when opening a transcription application which uitilizes MS word.  I am running MS Office 2010(32 bit) on Win7 (64 bit).  I do not know what this message means nor how to resolve any help or direction would be appreciated.

    Hi,
    This should be due to the ActiveX controls that have been referenced within this "transcription application" requires for a license.
    Visual Basic has two ways of using an ActiveX control legally:
    Include the ActiveX control license within the compiled executable.
    Load the license for an ActiveX control during run-time before loading the actual control.
    Both ways ensure that the license for the control is checked (either during development or during run-time) prior to the control being used.
    So for this issue, you might need to contact the designer of this application for further assistance.
    Here is the reference you'll need:
    http://support.microsoft.com/KB/190153
    Regards,
    Ethan Hua
    TechNet Community Support
    It's recommended to download and install
    Configuration Analyzer Tool (OffCAT), which is developed by Microsoft Support teams. Once the tool is installed, you can run it at any time to scan for hundreds of known issues in Office
    programs.

  • How can I use JavaScript extention functions with Xalan for transforming XML with XSL

    While transforming standart XML and XSL files to HTML with this servlet:
    package mypackage1;
    import javax.servlet.*;
    import javax.servlet.http.*;
    import java.io.*;
    import java.util.*;
    import java.net.URL;
    import javax.xml.transform.*;
    import javax.xml.transform.stream.StreamSource;
    import javax.xml.transform.stream.StreamResult;
    import org.mozilla.javascript;
    public class Servlet2 extends HttpServlet
    private static final String CONTENT_TYPE = "text/html; charset=windows-1252";
    public void init(ServletConfig config) throws ServletException
    super.init(config);
    public void doGet(HttpServletRequest request, HttpServletResponse response)throws ServletException, IOException
    try
    response.setContentType(CONTENT_TYPE);
    PrintWriter out = response.getWriter();
    TransformerFactory tFactory = TransformerFactory.newInstance();
    Source xmlSource = new StreamSource(new FileReader("c:/aaa.xml"));
    Source xslSource = new StreamSource(new FileReader("c:/bbb.xsl"));
    Transformer transformer = tFactory.newTransformer(xslSource);
    transformer.transform (xmlSource, new StreamResult(out));
    catch (Exception e)
    e.printStackTrace();
    everything is going ok,
    but when try to use javascript function in XSL file, for example like in this:
    <?xml version="1.0"?>
    <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0"
    xmlns:lxslt="http://xml.apache.org/xslt" xmlns:my-ext="ext1"
    extension-element-prefixes="my-ext">
    <lxslt:component prefix="my-ext"
    functions="getdate">
    <lxslt:script lang="javascript">
    function getdate() {
    var d = new Date();
    return d.toUTCString();
    </lxslt:script>
    </lxslt:component>
    <xsl:template match="/">
    <p><xsl:copy-of select="my-ext:getdate()"/></p>
    </xsl:template>
    </xsl:stylesheet>
    recieve error-message:
    XSL-1000: (Fatal Error) Error while parsing XSL file (Extension function namespace should start with 'http://www.oracle.com/XSL/Transform/java/'.).
    What kind of namespace I should specify?

    Hello, Paul.
    I'm sure you may not use JavaScript as a language for creating XSLT extention functions with Oracle XDK Parser. This is since parser might have JavaScript interpreter to work with JavaScript, but it has not.
    If you need to build any XSLT extention functions you must build them as Java class' static methods.
    After that, you define the usage of the class by mean of namespace declaration as:
    xmlns:your-ns="http://www.oracle.com/XSL/Transform/java/yourpackage.Yourclass"
    (Prefix "http://www.oracle.com/XSL/Transform/java/" may differs if you use non-Oracle XML parser)
    and use class' static method in XSLT:
    <xsl:value-of select="your-ns.staticMethodName(paramsIfAny)"/>
    In your case you may wish to use standard Date class:
    xmlns:date="http://www.oracle.com/XSL/Transform/java/java.util.Date"
    <xsl:value-of select="date:toString(date:new)"/>

  • SQL Server 2012 Management Studio: XML XQuery-query the XML Blob using CTE: How to specify the coorelation name in bulk rowset?

    Hi all,
    I just started doing the XML Xquery programming in my SQL Server 2012 Management Studio. I executed the following code:
    --query the XML Blob using a CTE (pulling from the XML file each time) Products
    WITH XmlFile (Contents) AS (
    SELECT CONVERT (XML, BulkColumn)
    FROM OPENROWSET (BULK 'H:\Products.xml', SINGLE_BLOB) ) AS XmlData
    SELECT *
    FROM XmlFile
    GO
    I got the the following Msg:
    Msg 491, Level 16, State 1, Line 4
    A correlation name must be specified for the bulk rowset in the from clause.
    How can I specify the correction name for the bulk rowset in my project?
    Please kindly help, advise and respond.
    Thanks in advance,
    Scott Chang

    Hello Scott,
    You have to assign a table alias for the OPENROWSET =>
    --query the XML Blob using a CTE (pulling from the XML file each time) Products
    WITH XmlFile (Contents) AS (
    SELECT CONVERT (XML, BulkColumn)
    FROM OPENROWSET (BULK 'H:\Products.xml', SINGLE_BLOB) AS MyXML ) AS XmlData
    SELECT *
    FROM XmlFile
    GO
    Olaf Helper
    [ Blog] [ Xing] [ MVP]

  • Using External_Stage can we specify a location other than staging dir

    While using external stage mode for weblogic(I am trying for weblogic92)we must manually copy the deployment files(web app) to the staging directory of each target server before deployment.
    Is there a option to copy the deployment files to another location other than Server's staging directory? To be more specific can I specify a location which is outside the server?
    Secondly, with no-stage option of weblogic we can have a external location for the web application, but in case of the cluster,
    this location has to be either shared or
    the secondary node should have the same location(path to the web application) as that of the primary server.
    Here is my config.xml entry of the primary node.
    <app-deployment>
    <name>TestWebApp</name>
    <target>TestCluster</target>
    <module-type>war</module-type>
    <source-path>C:\TestWebApp\TestWebApp.war</source-path>
    <security-dd-model>DDOnly</security-dd-model>
    <staging-mode>nostage</staging-mode>
    </app-deployment>
    Here there is only one source path for the entire Cluster. So if both of the server nodes have a valid location(C:\TestWebApp\TestWebApp.war), then the deployment will be fine on a running server. But on the second server node, if the Web app does not exists on that location, deployment will fail.
    When we share the location the concept of cluster is lost. If go with the second option then the user is restricted to have the same path on second node also.
    Is there any way to specify differnt locations(of the same web app) for different servers in the Cluster?

    A few points of clarity:
    1) Session starts in consumer group LOGIN_GROUP. That does not have session queueing since queueing sessions at log on time results in the user experience of a hung session, which we cannot have. Whether service X is used to get it there or something besides services is fine; how is not a concern at this point.
    2) Session moves to consumer group MAIN_GROUP after about 5 CPU seconds in the LOGIN_GROUP. We want to do this because the MAIN_GROUP has session queuing, which we want for most sessions after they have the unqueued login experience per point #1.
    3) Session moves to consumer group SLOW_GROUP after about 60 CPU seconds in the MAIN_GROUP (or some number of seconds; exact numbers are not the main focus here). We want this because we want long-running queries to be downgraded. However, we don't want to leave the session there since the query is the thing that is running long, so we want the session to get back to MAIN_GROUP when it is done. However, if we use SWITCH_FOR_CALL when going to the SLOW_GROUP, it will switch back to the LOGIN_GROUP. Which is the trouble--LOGIN_GROUP is an unqueued group, so we don't get the desired session queueing.
    4) The solution must be fully automated without any DBA intervation or application code. We cannot use appliation code as this solution is intended for BI users working in tools that have direct data access. Thus prevents the use of DBMS_SESSION as you stated in your posts. How would we do that switching in an automated fashion without application code?
    5) We cannot put the DBMS_SESSION commands in a login trigger since that would switch groups to MAIN_GROUP and would again run the risk of queueing a session at login, which feels like a hung session to users and results in a bad user experience and help desk calls.
    Thanks!

  • Use of EXTPROC_CONNECTION_DATA which specified in tnslistener.ora

    Hello experts
    what is EXTPROC_CONNECTION_DATA which specified in tnslistener.ora file? and what will happen if i remove this entry from tnslistener.ora file? please enlight me
    thanks
    nidhi

    It is a special service name that is used for external procedures
    http://www.adp-gmbh.ch/ora/misc/extproc.html
    If You don't use external procedures, You can remove it.

  • Cannot using * to setProperty

    I found that if the bean properties contain any short data type.
    This coding does'nt work in JSP....
    <jsp:setProperty name="awbpaymentInfo" property="*" />
    This setProperty * can also work on the bean contains int, float, boolean, long, string.
    Error message as below:
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    Compilation of 'E:\work\cargo\root\WEB-INF\_tmp_war_JalCargoAdminServer_JalCargoAdminServer_cargo\jsp_servlet\_awbpayment\_processaction.java' failed:
    E:\work\cargo\root\WEB-INF\_tmp_war_JalCargoAdminServer_JalCargoAdminServer_cargo\jsp_servlet\_awbpayment\_processaction.java:204: setPayType(short) in javabeans.AWBPaymentInfo cannot be applied to ()
    probably occurred due to an error in /AWBPayment/ProcessAction.jsp line 14:
    <jsp:setProperty name="awbpaymentInfo"property="*" />
    Full compiler error(s):
    E:\work\cargo\root\WEB-INF\_tmp_war_JalCargoAdminServer_JalCargoAdminServer_cargo\jsp_servlet\_awbpayment\_processaction.java:204: setPayType(short) in javabeans.AWBPaymentInfo cannot be applied to (<null>)
    awbpaymentInfo.setPayType(null); //[ /AWBPayment/ProcessAction.jsp; Line: 14]
    ^
    1 error
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    In bean - AWBPaymentInfo.java
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    private short payType;
    public void setPayType(short aPayType) {
    payType = aPayType;
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    BUT if i use this coding, it works .....
    <jsp:setProperty name="awbpaymentInfo" property="payType" />
    Does it means that there is a bug in somewhere ?
    I'm using JDK1.3 and WebLogic as application server.
    Any help ? Thanks
    Cheers, May

    Hi,
    the approach I usually use when working with beans and JSP is to make all the setters parameters as String, to be sure that there won't be any error made during settings.
    So, the thing that you can for example is
    class YourClass {
    private payType;
    // constructor
    YourClass(){}
    public void setPayType(String aPayType) {
    try {
       payType = Short.parseShort(aPayType);
    } catch (Exception e) {
       // default value
    }I hope this helps

  • How to set integer type property using um:setProperty

    Using WLP 8.1 .
    Can anyone help to set integer type property programmatically.
    i tried <um:setProperty> . but it can send only string or object type
    not Integer.
    tia
    Mahesh

    Thanks
    It worked for me
    Mahesh.
    Gregory Smith <[email protected]> wrote:
    For Numeric properties, I believe you actually need to use a
    java.lang.Long object (which extends java.lang.Object so it should compile):
    <um:setProperty propertySet="..." propertyName="..."
    value="<%=new Long(10)%>" />
    Greg
    Mahesh wrote:
    Using WLP 8.1 .
    Can anyone help to set integer type property programmatically.
    i tried <um:setProperty> . but it can send only string orobject type
    not Integer.
    tia
    Mahesh

  • Using sspublisher.recipientIDs to specify viewers of screen sharing

    Dear colleagues,
    In the documentation here: http://livedocs.adobe.com/labs/acrobatcom/com/adobe/rtc/collaboration/ScreenSharePublisher .html
    i fount this lines of code:
    //this is optional
      var userlist:ArrayCollection = connectSession.userManager.userCollection;
      var recipientIDs:Array = new Array();
      for(var i:int=0; i<userlist.length; i++){
        recipientIDs.push((userlist.getItemAt(i) as UserDescriptor).userID);
         // this is optional, default is everyone in the room can see the screen share
      sspublisher.recipientIDs = recipientIDs;
    I'm trying to use it, but get "undefined property recipientIDs" in the last line. Would you please give an advise how should I specify the users that can view the screen sharing?
    Here is my source:
    <?xml version="1.0" encoding="utf-8"?>
    <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute"
    xmlns:rtc="http://ns.adobe.com/rtc" preinitialize="presetup()">
    <mx:Script>
    <![CDATA[
    import com.adobe.rtc.authentication.AdobeHSAuthenticator;
    import com.adobe.rtc.collaboration.ScreenShareSubscriberComplex;
    import com.adobe.rtc.events.AddInLauncherEvent;
    import com.adobe.rtc.events.ScreenShareEvent;
    import com.adobe.rtc.events.SessionEvent;
    import com.adobe.rtc.events.StreamEvent;
    import com.adobe.rtc.sharedManagers.StreamManager;
    import com.adobe.rtc.sharedManagers.descriptors.UserDescriptor;
    import com.adobe.rtc.collaboration.ScreenSharePublisher;
    import flash.events.UncaughtErrorEvent;
    import flash.external.*;
    public function presetup():void {
    var recipientIDs:Array = new Array();
    sspublisher.recipientIDs = recipientIDs;
    ]]>
    </mx:Script>
    <rtc:ConnectSessionContainer autoLogin="false" backgroundAlpha="0.0" id="cSession" width="100%" height="100%">
    <rtc:ScreenSharePublisher id="sspublisher" playerVersion="10"/>
    </rtc:ConnectSessionContainer>
    <mx:HBox width="100%" height="100%" id="displayArea"  creationComplete="init()"/>
    </mx:Application>

    Hi there,
    Wow, this is a strange bug - the whole system for recipientIDs is set up in
    the code, but the public property isn't exposed. Thanks for reporting this,
    we'll get a fix in.
      In the meantime, you should be able to work around this issue by
    subclassing the WebcamPublisher and adding the following methods :
    public function set recipientIDs(p_ids:Array):void
       recipientIDs = pids;
    public function get recipientIDs():Array
       return _recipientIDs;
    Note that if your publisher is already publishing, you'll need to stop
    publishing and start it again for this to take effect.
      thanks again for taking the time to post this. We'll have this corrected
    in an upcoming release, and your feedback really helps.
       nigel

Maybe you are looking for

  • I have a library on my Ipod Classic and a different one on iTunes.  How can I sync both without losing any files?

    I think I may have deleted the original library a while back.  Since then, I have been collecting new files.  Now that I sat down to sync, I am unable to load new files at all.  Is there maybe a way to upload library on ipod into itunes library and t

  • Is it possible to delete the origional appleID email adress?

    Hello, I have a little problem: My father has a email adress corresponding to his internet connection, with this email adress he created an appleID (serveral years ago). So he has an apple id using "[email protected]" including an icloud email adress

  • Oc on p35 platinum. is this just about the way to do this?

    Crucial DDR2 PC6400 2GB CL6  x 3 Corsair HX 850W PSU radeon hd 6870 xfx black edition p35 platinum. ms7345 intel e 8500 Cooler Master Hyper 212 Evo CPU hello  i  have some questions about overclocking.  i have the e8500 pcu.i am verry happy with that

  • Iweb will not publish...

    iweb will not publish. i keep getting error message saying I need to sign in but i'm ALREADY signed in. this mobilme stuff is a mess and i am not happy about this... any suggestions on how to resolve this issue would be greatly appreciated...

  • Extra Mtrl reservation against Prod order

    Hi, Our client wants to do extra mtrl reservation agnst prod order for for issue mtrls (261 mov type) while doing so from MB21 it is not allowing as order category is std 10 and manual reservation is not possible for this. Is there any way to do so?