Feeding data as opposed to hardcoding

Most of the examples I see in the forum consists of hardcoding the files or strings. for example,
FileOutputStream fos = new FileOutputStream
("config.txt");
or,
String name="abcdegh";
But, for real world applications, you can't hardcode a file or data in the code.
Can you guys give me examples of what kind of things done dynamically as opposed to hardcoding?

Although there is nothing forcing you to use a particular format, if you don't use one that's already implemented you'll have to do it yourself.
There are many ways to load configuration data into an application. Three ways come to mind most readily:
1) Properties files -- a simple text file listing mappings between a unique string key or "property name", and a string value. See the doc for java.util.Properties, especially the load() method, for more info: http://java.sun.com/j2se/1.3/docs/api/java/util/Properties.html#load(java.io.InputStream) .
2) Object serialization -- if having a human-readable file isn't important but load time is, you may want to create your own config properties class that implements the Serializable interface. Use ObjectInput(or Output)Stream to read/write properties directly into an object.
3) XML files -- I've seen some apps that require config data that is human-readable and organized in a hierarchy, use XML files to load in property data and settings. With the inclusion of XML processing in the standard platform as of JDK 1.4 along, this becomes a more viable option.
Another means you may want to explore is something new to JDK 1.4: java.util.prefs package -- http://java.sun.com/j2se/1.4/docs/api/java/util/prefs/package-summary.html
Food for thought.

Similar Messages

  • How to feed data to generate a html file using XSLT?

    I need to implement email content generation in the hmtl format using XSLT. The document information is stored in a xsl file and the data is generated dynmically in the application. How to feed the data to have the file?
    Thanks,
    v.

    Thanks for your information. I, however, already thought about using string stream instand of a XML file to pass in data. I am looking for a more intelligent method. It doesn't seem to have one so far.

  • How to feed data into crystal reporte with "SQLQuery" method in c#?

    Hi there,
    I've an old app that was written in VB with some crystal reports from Crystal Report 7.
    Now I need to upgrade this old app into c# with newer version of Crystal Report, so we decide to go for VS2010.
    I can open the report template in the VS2010 without any problems.
    But I'm running into some issue here:
    the old report has multiple tables from a SQL db as the connection. Each table has a PK to each other.
    and the VB code feed the data like below:
    MainForm.CrystalReport(1).SQLQuery = SQLString
    I couldn't find any reference for "SQLQuery" method in the C#, is there such command exist?
    Thank you in advanced,

    Thank you Ludek. Looking into the info you provided.

  • Using BAPI in extractors for feeding data to BW

    Hi,
    I have a requirement where ,I need to load the Data.
    Presently They use BAPI_ALM_ORDERHEAD_GET_LIST to download the data into XL sheet.
    Now New requirement is to insert this BAPI into function Module that will act as extractor that will feed BW using SBIW (Extraction By function Module).
    Client will not use all the fields that comes from the BAPI , They will select few of them
    the extractor can be a total Abap (using the BAPI) or can be also starting by Extraction from DB View then enhanced by the BAPI .
    Can U please let me know the easy way for it.
    Thanks in Advance.

    If I were to do it, I would make a function module extractor which calls the BAPI and populates the extract structure/table.

  • How can I get data, as opposed to compliant/not-compliant, from compliance?

    I'm new to configuration manager, but I have been through the 2012 MS training class.
    My issue is, I'm trying to determine how I can use SCCM in general and Compliance in particular to collect data on the clients.  Here are some examples of the data that I need to collect:
    The members of the local administrators group.
    The updates that are needed and count of updates that are needed.
    The configuration settings (time zone, pagefile configuration, IE ESC status, Firewall settings, SFP setting, and so on.
    The frequency of update installation over the past year (or whenever the event log rolls over)
    I need to collect this information and report it out in a custom report.  I've tried to do this with compliance, by creating a baseline and deploying it to clients, then adding a configuration item for each piece I want to capture.  The problem
    I'm experiencing is that it looks like compliance is giving me a boolean result - compliant or not compliant, when I go to run a report on the data.  I want to get the actual data, in addition to whether or not it is compliant.
    I want to use compliance, so I can take advantage of the auto-remediation.  I have set up the configuration items with both check powershell scripts and remediate powershell scripts.
    On a related but possibly separate note, I also used a configuration item to attempt to collect data into an MSSQL server.  I created a powershell script that gets the data, and connects to MSSQL and inserts the data; the problem is, that it appears
    to not be working.  If I run the script from an interactive powershell command promt or from an iteractive command line, it runs fine.  It even works if I run it from a scheduled task.  But it doesn't appear to work running it from the configuration
    item in SCCM 2012 R2, even though Powershell is listed as a valid script type.  Two notes: The execution policy on the clients is set to unrestricted, and the firewall is OFF on the clients.
    So my questions are:
    Am I going about this the right way?  If not, how SHOULD I go about this?
    Am I missing anything in trying to run the powershell scripts in the configuration item?
    Here is the script I am trying to run.  I realize that it has the check code mixed with the remediation code, I plan to separate the two once I have the powershell running and updating the database.  Also, I replaced the sensitive information in
    the SQL connection string.
    $Comp=$env:COMPUTERNAME
    Write-Host $Comp
    $LocalMachine=Get-ExecutionPolicy -Scope LocalMachine
    Write-Host "Local Machine:" $LocalMachine
    $UserPolicy=Get-ExecutionPolicy -Scope UserPolicy
    Write-Host "User Policy:" $UserPolicy
    $Process=Get-ExecutionPolicy -Scope Process
    Write-Host "Process:" $Process
    $CurrentUser=Get-ExecutionPolicy -Scope CurrentUser
    Write-Host "CurrentUser:" $CurrentUser
    $MachinePolicy=Get-ExecutionPolicy -Scope MachinePolicy
    Write-Host "MachinePolicy:" $MachinePolicy
    $Conn = New-Object System.Data.SqlClient.SqlConnection
    $Conn.ConnectionString="Server=SQLInstance;Database=DBName;User Id=user;Password=password"
    $Conn.Open()
    $Comm = New-Object System.Data.SqlClient.SqlCommand
    $Comm.Connection=$Conn
    $comm.CommandText="DELETE PSExecPolicies WHERE ServerName='" + $Comp + "'"
    $Comm.executenonquery()
    $CmdStr = "INSERT INTO PSExecPolicies (ServerName, LocalMachine, UserPolicy, Process, CurrentUser, MachinePolicy) VALUES ('" + $Comp + "','" + $LocalMachine + "','" + $UserPolicy  + "','"
    + $Process + "','" + $CurrentUser  + "','" + $MachinePolicy + "')"
    $Comm.CommandText = $CmdStr
    $Comm.ExecuteNonQuery()
    $comm.dispose()
    $Conn.Close()
    $Conn.Dispose()
    if ($MachinePolicy -like "Restricted" -or $MachinePolicy -like "Undefined")
    Write-Host "Machine Policy policy was " $MachinePolicy ", changing it to Remote Signed."
    Set-ExecutionPolicy RemoteSigned -Scope MachinePolicy -Force
    Else
    Write-Host "Machine Policy policy was already" $MachinePolicy ", making no changes."
    if ($UserPolicy -like "Restricted" -or $UserPolicy -like "Undefined")
    Write-Host "User Policy policy was " $UserPolicy ", changing it to Remote Signed."
    Set-ExecutionPolicy RemoteSigned -Scope UserPolicy -Force
    Else
    Write-Host "User Policy policy was already" $UserPolicy ", making no changes."
    if ($Process -like "Restricted" -or $Process -like "Undefined")
    Write-Host "Process policy was " $Process ", changing it to Remote Signed."
    Set-ExecutionPolicy RemoteSigned -Scope Process -Force
    Else
    Write-Host "Process policy was already" $Process ", making no changes."
    if ($CurrentUser -like "Restricted" -or $CurrentUser -like "Undefined")
    Write-Host "Current User policy was " $CurrentUser ", changing it to Remote Signed."
    Set-ExecutionPolicy RemoteSigned -Scope CurrentUser -Force
    Else
    Write-Host "Current user policy was already" $CurrentUser ", making no changes."
    if ($LocalMachine -like "Restricted" -or $LocalMachine -like "Undefined")
    Write-Host "Local Machine policy was " $LocalMachine ", changing it to Remote Signed."
    Set-ExecutionPolicy RemoteSigned -Scope LocalMachine -Force
    Else
    Write-Host "Local Machine policy was already" $LocalMachine ", making no changes."

    In general no. Compliance settings is designed explicitly for what you said, thumbs up or thumbs down.
    To collect data, you need to take advantage of hardware inventory's ability to easily pull information from WMI.
    In combination then, you could use compliance settings (via a script) to populate the data in WMI and then HW Inv to collect the data.
    Jason | http://blog.configmgrftw.com

  • Missing Parameter Values - C# - Pushing Datatables to feed data to Report

    Hello,
    I am working on a .NET project to process close to 650 "existing" reports developed in Crystal Reports 8.5. Rendering reports without subreports is working just fine. However I am getting the following error everytime I try to render a report that has multiple subreports
    Missing parameter values. at CrystalDecisions.ReportAppServer.ConvertDotNetToErom.ThrowDotNetException(Exception e)
    Following is how the reports are built.
    Main Report - Fed with a Datatable whose name corresponds to the name of the SQL Query configured in Crystal UI
        SubReport1 - Fed with a Datatable whose name corresponds to the name of the SQL Query configured in Crystal UI. The                           subreport is linked to the parent report using one of the fields in the Datatable that is passed to the main report.
    Example: the main report receives a datatable with the following fields
    EmployeeId (integer), EmployeeName (string)
    The subreport receives a datatable with the following fields : EmployeeId (Integer), EmployeeHobbies (string)
    The link is established as follows:
    SubReportQueryName.EmployeeId link to MainReportQueryName.EmployeeId
    _I have checked the data, its correct in terms of the fields required to render the report. The report parameters are being set from the code and ApplyCurrentValues is being called to ensure that the set values are used when rendering the report.
    Please note that I am not using live connections to the database
    I tried saving a copy of the above mentioned report and removing the subreport and then rendering the report, all works fine. However the moment i introduce the subreport, per the above mentioned report design/architecture all hell breaks loose and i cannot render the report.
    The environment is Windows Vista and I am running VS 2008.
    Any help is appreciated.
    Thanks
    Edited by: pkumbhat on Sep 15, 2010 4:43 PM

    The issue has been dealt with.
    The solution is to set the datasource with a dataset even if the report or subreport expects or is configured to work with a single table.

  • Flash actionscript 3.0 With Rss Feed data

    I have using as3.0 and get the data from rss.  I run the file rss data will be loaded.
    But i open the swf and html file, Rss data can't load. i don't find the issue.
    Pls any one tell me the correct solution.
    This is Code:
    //==========================================================
    var rssLoader:URLLoader = new URLLoader();
    var rssURL: URLRequest = new URLRequest ("http://new.kylottery.com/apps/rss/nextjackpots.rss")
    rssLoader.addEventListener(Event.COMPLETE, rssLoaded);
    rssLoader.load(rssURL);
    //==========================================================
    var rssXML:XML = new XML();
    rssXML.ignoreWhitespace = true;
    //==========================================================
    function rssLoaded(evt:Event): void{
    rssXML = XML(rssLoader.data);
    //trace(rssXML.channel.item[0].description)
    //trace(rssXML.channel.item[1].description)
    mc_1.txt_0.text = rssXML.channel.item[0].description
    //mc_2.txt_2.text = rssXML.channel.item[1].description
    //trace(rssXML)
    //==========================================================
    thks,

    When you run the SWF off a website you need permission to load content off an "alternate" domain. So if the domain the RSS is on differs from the domain the SWF is running from, the RSS domain will need a crossdomain.xml file that gives you permission to load data from that domain. Also in publish settings on SWF it should be set to allow accessing networks instead of access local files only.
    If that's the case then you should get a security error:
    http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/flash/events/SecurityEr rorEvent.html
    Just add a listener like the example and put a text field on the screen so if the error happens you can put the error text in it to see it. You're probably just getting that error.
    Here's info on a crossdomain.xml and the various settings and examples of them:
    http://learn.adobe.com/wiki/download/attachments/64389123/CrossDomain_PolicyFile_Specifica tion.pdf?version=1

  • CF9 - Feeding data from a NUTCH 1.3 crawl to the included SOLR

    Has anybody setup Nutch 1.3 for crawling and successfully pushed that data into the coldfusion provided SOLR server?
    I got the nutch crawl to generate data ok, but the 'solrindex' run of nutch fails like this:
    org.apache.solr.common.SolrException: ERRORunknown_field_content
    ERRORunknown_field_content
    request: http://127.0.0.1:8983/solr/nerf/update?wt=javabin&version=2
    at org.apache.solr.client.solrj.impl.CommonsHttpSolrServer.request(CommonsHttpSolrServer.jav a:436)
    at org.apache.solr.client.solrj.impl.CommonsHttpSolrServer.request(CommonsHttpSolrServer.jav a:245)
    at org.apache.solr.client.solrj.request.AbstractUpdateRequest.process(AbstractUpdateRequest. java:105)
    at org.apache.solr.client.solrj.SolrServer.add(SolrServer.java:49)
    at org.apache.nutch.indexer.solr.SolrWriter.close(SolrWriter.java:82)
    at org.apache.nutch.indexer.IndexerOutputFormat$1.close(IndexerOutputFormat.java:48)
    at org.apache.hadoop.mapred.ReduceTask.runOldReducer(ReduceTask.java:474)
    at org.apache.hadoop.mapred.ReduceTask.run(ReduceTask.java:411)
    at org.apache.hadoop.mapred.LocalJobRunner$Job.run(LocalJobRunner.java:216)
    2011-06-28 15:20:52,386 ERROR solr.SolrIndexer - java.io.IOException: Job failed!
    I've tried using the schema.xml that comes with nutch in place of the CF povided one, as well as merging the two, but I'm still hitting the same error.
    Alternatively would it work better to set up solr on it's own and not use the one provided by CF?  Can the CF admin still work with an external SOLR install?

    Hi Gersh and Nilanjan,
    I did a test in a few minutes, I changed the code on default logic from this:
    *XDIM_MEMBERSET CONTA = 3
    *WHEN CONTA
    *IS "3"
    *REC(FACTOR=1,CONTA="PC012503030002")
    *ENDWHEN
    *COMMIT 
    to this:
    *XDIM_MEMBERSET CONTA = PC013000000001
    *WHEN CONTA
    *IS "PC013000000001"
    *REC(FACTOR=1,CONTA="PC012503030002")
    *ENDWHEN
    *COMMIT 
    And I load again the data, the default logic copy the value from PC013000000001 to PC012503030002, that is a good news for me, but with this I concluded, the script don't get value from parent, so is there a way to put a range of account on code ? 
    Best Regards
    Alexandre Mendoza Collepicolo
    Edited by: Alexandre Mendoza Collepicolo on Sep 23, 2010 2:27 PM

  • FCC in line feed data.

    Hi Friends,
    In my scenario we are using FCC on the sender side of file adapter.
    The main problem is the file is coming in the form of single line.
    Example: HeaderData1Data2Data3ItemData1Data2Data3ItemData1Data2Data3ItemData1Data2Data3FooterData
    To over come this I tried with the endSeparator as '0X00'.
    But not working.
    Can some one suggest with some inputs.
    Thanks in advance.
    Jeevan.

    Hi,
    Give input file format and field structure so that we can design accordingly.  Most of the time use fieldFixedLengths statement to divide columns and meanwhile mention fieldSeparator & endSeparator statement.  Your problem will be sortout easily.
    Edited by: NALLAM GUNA RANJAN on Feb 4, 2009 10:15 AM
    Edited by: NALLAM GUNA RANJAN on Feb 4, 2009 10:16 AM

  • Pdf forms online to input data as opposed to traditional web forms

    hello,
    my level is beginner but i am given a project . well task
    to create a online application system to reduce paper work.
    i have seen some online application ( using pdf) on the web
    and it seems better (looks better than a web form i ussually fill
    out on the web.
    i would like to start on a project that does this PDF forms
    for online.
    how do i start this.
    i have seen one that you can start inputing on the web but
    does not input (store in DB)
    i wish to do this where i can store in a db
    how do i get started on my online application using PDF.

    To do this you will need the Full Acrobat editor. With the
    editor you
    can take a PDF and add form elements to it and direct it's
    action to an
    action page on your site. You then publish the PDF and you
    are in
    business. This is well documented in the Acrobat help.
    susanring wrote:
    > hello,
    > my level is beginner but i am given a project . well
    task
    > to create a online application system to reduce paper
    work.
    >
    > i have seen some online application ( using pdf) on the
    web and it seems
    > better (looks better than a web form i ussually fill out
    on the web.
    >
    > i would like to start on a project that does this PDF
    forms for online.
    >
    > how do i start this.
    >
    > i have seen one that you can start inputing on the web
    but does not input
    > (store in DB)
    > i wish to do this where i can store in a db
    >
    > how do i get started on my online application using PDF.
    >
    >

  • External RSS feed through Omniportlet?

    Just curious to know how to get an external RSS news feed to work properly through the Omniportlet in 10g. I've got the feed coming in and filtered properly, but the link that is created when the portlet displays includes the base portal url (i.e. http://whatever.com/pls/portal/http://actual.newsfeed.url).
    In looking through the online help for the Omniportlet, it states that you need to pass a fully qualified URL for external data, but there isn't a way to pass a qualified URL dynamically. I'm not sure how this is supposed to work on external RSS feeds if you need to hardcode the URL.
    Am I missing something, or was this an oversight/bug?
    Thanks,
    Scott

    Hi Kevin,
    Here are the answers to your questions:-
    What is involved with upgrading to Portal Tools 9.0.4.0.2?
    You need to upgrade only PortalTools and not complete OracleAS Portal. But because there is a dependency of PortalTools on OracleAS Portal, you need to verify the Pre-requisites for upgrading to a specific version of Portaltools. But as you are already on OracleAS Portal 904, you will not have any issues upgrading to the latest PortalTools 90402.
    Is this upgrading the portal application, some small collection of portlets, or what?<br>
    Portal Tools is a collection of deployable OracleAS Portal tools built on Oracle's PDK-Java technology.
    This includes the following:
    i. WebClipping
    ii. OmniPortlet
    Once you have deployed PortalTools, you can use the portlets contained within the pre-configured providers under the Portal Tools.
    Isn't is possible to just upgrade the one portlet in OmniPortlet?
    Upgrading to the latest PortalTools does not involve upgrading OracleAS Portal, it involves upgrading a set of Libraries and re-deploying the PortalTools application.
    Please follow the complete document for Upgrading Portaltools, this document is available at <PortalTools_Unzip_Folder>\pdk\portalTools\upgrading.to.90402.html
    Hope this helps.
    Please get back incase you have any further questions.
    Take care,
    Manoj

  • Problem with Date

    I have problem with the date fields, in fact when i want to update or insert a date in a datefield i get this message
    For input string: "oct."
    I'am using Jdeveloper 10.1.2.1.0 (build 1913) and
    JHeadstart 10.1.2.0 (build 19)
    My Regional parameters are set to French
    should i change a date mask and where ??
    Thanks
    Message was edited by:
    Medba

    Medba,
    OK, date formatter class is right now.
    I am afraid I can't help you with how to get it to work with Arabic settings.
    To determine whether this is JHeadstart-related:
    Could you create a very simple non-JHeadstart app with one page that contains a date field, and you hardcode the date pattern in both the UIX page and as UI Hint on the VO atttribute, will that work when deployed on app server with Arabic settings?
    If not, I suggest you contact Oracle Support or log a TAR on metalink.
    Steven Davelaar,
    JHeadstart Team.

  • How to get/process the Data from XMLSocket?

    Hello All,
    I'm using Adobe Professional CS6, and Actionscript 3.0.
    To start with I have a C# program that basically just feeds data out from a Server in the form of XML data. I then have a Flash program that should receive the data and then I'll do some stuff with it. We had this working in Actionscript 1.0 but we need to upgrade the code to Actionscript 3.0, but instead of just trying to convert stuff over to the new  Actionscript version, I'm going to re-write the program.
    So far I've basically just defined some EventListeners most of which I found examples of online for using XMLSockets. As of now the Flash program will connect an XMLSocket to the Server that is feeding out the data, and the server feeding the data resends new data every 5-10 seconds or so.
    So when a grouping of XML Data comes in on the port I defined, the following Function gets executed for handling the incoming data. For my EventListener's Function for "socket.addEventListener(DataEvent.DATA, dataHandler);"  ("socket" is defined as --> var socket = new XMLSocket(); ). So when the new data comes in it executes the above function.
    The trouble I'm having is declaring a new variable of type "XML" and then using that variable to pull out individual "nodes/children" from the incoming XML Data. I found an example online that was very close to what I want to do except instead of using an XMLSocket to get data constantly streaming in they use the "URLLoader" function to get the XML data. I know I'm receiving the XML data onto the server because if I set the (e: DataEvent) variable defined in the function "head" to a string and then run a trace on that I can see ALL of the XML data in the "Output Window".
    But I can't seem to be able to set (e: DataEvent) to a XML variable so I can access individual elements of the XML data. The example I found (which uses the URLLoader instead) uses this line (myXML = new XML(e.target.data);)  to set the XML Variable, which won't work for mine, and if I try to do the same thing in my code it simply prints this for as many lines as there is XML data --> "[object XMLSocket]"
    MY CODE:
    *I left out the other Functions that are in my code for the EventListeners you'll see defined below, except for the one in question:
                             ---> "function dataHandler(e: DataEvent):void"
    import flash.events.IOErrorEvent;
    import flash.events.ProgressEvent;
    import flash.events.SecurityErrorEvent;
    import flash.events.DataEvent;
    var socket = new XMLSocket();
    socket.addEventListener(Event.CONNECT, connectHandler);
    socket.addEventListener(Event.CLOSE, closeHandler);
    socket.addEventListener(DataEvent.DATA, dataHandler);
    socket.addEventListener(IOErrorEvent.IO_ERROR, ioErrorHandler);
    socket.addEventListener(ProgressEvent.PROGRESS, progressHandler);
    socket.addEventListener(SecurityErrorEvent.SECURITY_ERROR, securityErrorHandler);
    var success = socket.connect('server.domain.name.local',3004);
    The code in this function was used from an example I found online as described above in the post: 
              LINK --> http://www.republicofcode.com/tutorials/flash/as3xml/
    // The Commented out code (*in blue) will show ALL the xml data inside the "Output Window":
    function dataHandler(e: DataEvent):void {
              // var myStr:String = e.data;
              var xml:XML;
              xml = new XML(e.target.data);  //<--- THIS DOESN"T WORK (I DONT THINK 'target' IS CORRECT HERE)??
              if (socket.connected)
                        // trace(myStr)
                        trace(xml);
    The Output from the line "trace(xml)" will show this data below in the "Output Window" (*FYI There should be 6 lines of XML Data on each 'update'):
    [object XMLSocket]
    [object XMLSocket]
    [object XMLSocket]
    [object XMLSocket]
    [object XMLSocket]
    [object XMLSocket]
    Could someone show or point me in the right direction on this. I want to be able to access specific parts of the incoming XML Data.
    Here's some sample XML Data:
    <MESSAGE VAR="screen2Display" TEXT="CSQ_1" />
    <MESSAGE VAR="F1_agentsReady" TEXT="111" />
    <MESSAGE VAR="F1_unavailableAgents" TEXT="222" />
    <MESSAGE VAR="F1_talkingAgents" TEXT="333" />
    <MESSAGE VAR="F1_callsHandled" TEXT="444" />
    <MESSAGE VAR="F1_ABDRate" TEXT="555" />
    Any thoughts or suggestions would be greatly appreciated..!
    FYI:
    I'm VERY new to Actionscript/Flash Developing (*about a week now), so go easy on me haha...
    Thanks in Advance,
    Matt

    Hey Guys, thanks ALOT for the replies!!
    Andrei1 and Sinious,
    The code I show above is actually just what I found in an example online, and its what i was trying to show you what "they" used
    in the URLLoader example. I wasn't trying to use URLLoader, but it was the closest example I found online to  what I was trying to
    do in terms of processing the XML Data, and not how I read it in. So XMLSocket IS definetly what I'm trying to use because the Server
    I'm receiving the XML Data from "pushes" it out every 10 seconds or so. So yea I definatly want to use XMLSocket and not URLLoader...
    Sorry for the confusion...
    The example you show:
         var xml:XML = new XML(e.data)
    Is actually what I had in my original code but I couldn't get it to show anything in the "Output Window" using the trace() method on
    it, so I assumed I wasn't doing it correctly...
    What my original code was in the "dataHandler()" Function was this:
    function dataHandler(e: DataEvent): void
        var xml: XML = XML(e.data);
        if (socket.connected)
            trace(xml);
            msgArea.htmlText += "*socket.connected = TRUE\n"
        } else {
            msgArea.htmlText += "*socket.connected = FALSE\n"
    OUTPUT:
    And what I get when I run a Debug on it is, in the "msgArea", which is just a simple Text Box w/ Dynamic Text on the main frame it prints:
        "socket.connected = TRUE
         socket.connected = TRUE
         socket.connected = TRUE
         socket.connected = TRUE
         socket.connected = TRUE
         socket.connected = TRUE"
    It prints that message 6 times in the msgArea for each XML Message that comes in (*which I think 6 times because there
    are 6 "sections/nodes" in the XML Data). But then NOTHING prints in the "Output Window" for the "trace(xml)" command.
    Not sure why nothing is showing in the "Output Window", maybe the XML is not complete? But I could see data in the "Output
    Window" when I set "e.data" to a string variable, so I know the Data is reaching the program. Since I could see the XML Data in
    a string variable, does that mean I can rule out that the XML Data coming in is considered a "complete" XML Document?
    Because I wasn't sure if to be considered a complete XML Document it would need to have this included in the message..?
                        "<?xml version="1.0"?>"
    For the tests I'm running, one single XML message which is being pushed out from the server looks like this:
    <MESSAGE VAR="screen2Display" TEXT="Call_Queue_1" />
    <MESSAGE VAR="F1_agentsReady" TEXT="111" />
    <MESSAGE VAR="F1_unavailableAgents" TEXT="222" />
    <MESSAGE VAR="F1_talkingAgents" TEXT="333" />
    <MESSAGE VAR="F1_callsHandled" TEXT="444" />
    <MESSAGE VAR="F1_ABDRate" TEXT="555" />
    Would I need to include that "Header" in the XML message above?
                   i.e. "<?xml version="1.0"?>"
    Or do I need to be more specific in the trace command instead of just using "trace(xml)"?
    Also yes, I already have a Flash Policy file setup and working correctly.
    Anyway, thanks again guys for the replies, very much appreciated!!
    Thanks Again,
    Matt

  • SQL Server 2005 data pull from Oracle

    Hi, I am learning how to use Oracle and I ran into this problem.
    My database is running on SQL Server 2005.
    I have an ODBC connection to Oracle. I also have a VB .Net script that queries the Oracle table that the data resides in.
    When the job is running, and if it stalls, I do not get a timeout error. It locks down my database and no other source systems can feed data to me; these are back logged in the queue.
    Is there an easier way for me to make a connection that will pull data on a consistent basis? Please help ...
    Student Learner

    Learning how to use Oracle does not include taking data from Oracle and putting it into SQL Server.
    From your description of what is happening I agree with BluShadow. This is not an Oracle issue. This is a coding in VB .NET issue.
    Posting the statements you are executing against some unknown version of Oracle would be a good starting point.

  • How to see data in BAM from sensor on BPEL activity?

    Hello, I 'am working with BPEL on Jdeveloper (last version).
    I have putted sensors on some activity of my process. On an other machine I have putted the BAM server (last version) which is ON and I have the BAM connection on Jdevlepper. Now I try to see data on BAM from sensor but I can't.
    Can someone explain me how to do?
    (I just can build some data just like in a data base with BAM architect but I can't read and put to graphics the ones from the sensors)
    Thank's much
    JAck

    Hello,
    To answer your question, I have install BAM on the same machine where BPEL server is running.
    Now I steel can't get sensor's data from BPEL:
    With BAM architect I can build data, with BAM studio I can use that data to design graphics but when I try to feed data from BPEL it doesn't work because I just can't press the OK button!!
    In BPEL : When I try to Create BAM sensor action (from structure panel), I can't generate the xsl map file no action is done when pressing OK, create mapping or edit mapping button!

Maybe you are looking for

  • Itunes not working on microsoft please help.

    hi, i got a new ipod nano 2nd generation for christmas and i loaded itunes on my laptop, but my mum accidently deleted it and so i downloaded it again. but now it wont open because it says: "itunes has encountered a problem and needs to close. we are

  • Incorrect sound after burn

    We have just bought Apple G5's for our school, so students can video edit. So far there has been no problems. But lately a couple of machines have started burning another soundtrack onto the completed movie. The preview looks and sounds correct. Seve

  • My Ipod Nano 2Gb , only store 256 musics

    I'm Brasilian and don't speak too much english , so sorry by the writing mistakes I just bought my new Ipod When I transfer the musics for my Ipod nano , in the Itunes is everything ok , but when I look for them in my Ipod the re somes that are missi

  • Searching Text in Contact Notes Field

    Hi, I have been a Windows Phone user all along. I am interested in switching over to Nokia. I am looking for one basic requirement of being able to search through the Contacts Field for any text. I use MS Outlook and store lot of text in the Notes Fi

  • SCA project with webservices binding is failing in WLS 12.1.2.0

    While I am able to successfully  deploy a SCA project with an EJB binding in it, application is failing (deploying ok, but not recognized as an SCA app) if I include a webservices binding in it. Apparently SCAContainer is failing to locate a class fi