Xjc in code - not command line

I'm new to java xml, and may be wanting to force a square peg through a round hole but, I would like to create source files using xjc from dtd's and xjs's from datasources or other basically non file based sources. Am I looking at the wrong tool? I don't want to write the dtd's and xjs's to disk and then compile through a command line.
Thanks
fj

Thanks Danny,
I've read through the pdf's got the example to work as well as many in the java_xml_pack-spring-02-dev. Wipped up a proof of concept database, some JDBC classess, and a servlet. Went through XML Hell with Tomcat 4, then deleted the xerces from the common folder, changed some classpath statements and the example works being triggered from a servlet. Then I gabbed DTD, XJS, and XML content like so
(1) a couple prepared statements
first statement to retrieve an xml file from the database
"SELECT XML_NAM, XML_CNT " +
"FROM XML_CNT_JAXB "
second one to retrieve the DTD and XJS content from a database
"SELECT INFO_DTD_CNT.DTD_CNT, INFO_XJS_CNT.XJS_CNT " +
"FROM INFO_DTDXJS_BLD " +
"INNER JOIN " +
"INFO_DTD_CNT ON INFO_DTDXJS_BLD.DTD_ID = INFO_DTD_CNT.DTD_ID " +
"INNER JOIN " +
"INFO_XJS_CNT ON INFO_DTDXJS_BLD.XJS_ID = INFO_XJS_CNT.XJS_ID " +
"WHERE (INFO_DTDXJS_BLD.DTD_BLD_NM = ?)"
(2) execute and get results
ResultSet resultSet = sqlXML_CNT.executeQuery();
etc..
(3) place resultset XML strings in an InputStream
sbin_XML_CNT = new StringBufferInputStream(str_XML_CNT);
etc..
(4) now it works fine if you already used xjc to create your java classes and compile... then you can just use the BufferedInputStream to build your trees
buildTrees(StringBufferInputStream bIn)
foo = foo.unmarshal(bIn);
etc...
(5) what I don' want to do with the DTD and XJS is stream the content write the file to disk and execute commands to build the java files..
Process myXJC = Runtime.getRuntime().exec("myXJC.bat");
Again I'm new to Java XML, but if people want to use an XML file that does not have a DTD or XJS within a system, say they are requesting a new content area, the app then gives them a screen to define the DTD or builds a DTD for them or whatever, and then asks them for the content they want to manipulate or reports or whatever, and them creates an XJS, Java classes are then built compiled and someone can test and approve them... etc then save them to disk, database, a distributed server,.. etc
I'm sure there is a way to compile Java from within a application. what I'm not sure of is if there is a way avoid the Java -jar %JAXB_HOME%\lib\jaxb-xjc-1.0-ea.jar file.dtd file.xjs -d directory from command line.
If you could point me to any articles or book chapters address this, I'd really appreciate it!
Thanks
fj

Similar Messages

  • How to run EJB through a ide and not command line

    I have been trying out a simple Cart EJB. I have no problem running the whole thing through command line using the runclient script. But when i compile and run the same code in my ide it chucks the following error
    Caught an unexpected exception!
    javax.naming.NameNotFoundException: No object bound for java:comp/env/ejb/SimpleCart
         at com.sun.enterprise.naming.java.javaURLContext.lookup(javaURLContext.java:116)
         at javax.naming.InitialContext.lookup(InitialContext.java:350)
         at CartClient.main(CartClient.java:26)
    Is there any reasons you cant run an EJB client code through an ide. This is the code i am using
    // Decompiled by DJ v3.0.0.63 Copyright 2002 Atanas Neshkov Date: 8/20/2002 2:33:45 PM
    // Home Page : http://members.fortunecity.com/neshkov/dj.html - Check often for new version!
    // Decompiler options: packimports(3)
    // Source File Name: CartClient.java
    import java.io.PrintStream;
    import java.util.Enumeration;
    import java.util.Vector;
    import javax.ejb.EJBObject;
    import javax.naming.Context;
    import javax.naming.InitialContext;
    import javax.rmi.PortableRemoteObject;
    public class CartClient
    public CartClient()
    public static void main(String args[])
    try
    InitialContext initialcontext = new InitialContext();
    Object obj = initialcontext.lookup("java:comp/env/ejb/SimpleCart");
    CartHome carthome = (CartHome)PortableRemoteObject.narrow(obj, CartHome.class);
    Cart cart = carthome.create("Duke DeEarl", "123");
    cart.addBook("The Martian Chronicles");
    cart.addBook("2001 A Space Odyssey");
    cart.addBook("The Left Hand of Darkness");
    Vector vector = new Vector();
    vector = cart.getContents();
    String s;
    for(Enumeration enumeration = vector.elements(); enumeration.hasMoreElements(); System.out.println(s))
    s = (String)enumeration.nextElement();
    cart.removeBook("Alice in Wonderland");
    cart.remove();
    catch(BookException bookexception)
    System.err.println("Caught a BookException: " + bookexception.getMessage());
    catch(Exception exception)
    System.err.println("Caught an unexpected exception!");
    exception.printStackTrace();
    }

    Are you setting the system properties for your Java runtime in the IDE?
    You might need some command-line options along the lines of
    Djava.naming.provider.url=BAR -Djava.naming.factory.initial=FOO
    Failing that you might have to do a global JNDI lookup instead of a local one but that'd be far from ideal.

  • Tiger Server: Default MySQL works for phpMyAdmin but not command line ? ? ?

    Greetings all,
    I followed the excellent instructions at
    http://discussions.apple.com/thread.jspa?threadID=132783&tstart=0
    on upgrading PHP to version 5 and getting (the preinstalled) MySQL setup with phpMyAdmin
    I can connect through the phpMyAdmin, create new dbs, etc. Problem is that now I CAN'T connect from the command line. (I originally set my new root password from the command line and that's the last time I could connect from there!
    Now I get the dreaded ERROR 2002 when I attempt:
    /usr/bin/mysql -h localhost -u root -p
    If I use the IP address or hostname instead of "localhost" (after -h) I get a ERROR 2003. Dropping the -h and hostname from the line above still gets me a ERROR 2002.
    My phpMyAdmin config is a connect type "TCP" not socket, which might be one reason it works and the command line doesn't, but I still don't know where I've gone wrong.
    My /var/mysql/* is all owned by mysql and group www.
    I'm finding lots of people asking about the ERROR 2002, but not finding any solutions (particularly for Tiger Server). I'd prefer to use the preinstalled MySQL to installing a new installation (the thread referenced above says upgrading or removing the MySQL installation is too hard to do) and there has GOT to be a reasonable explanation for why it works with phpMyAdmin, but not the command line.
    Thanks in advance for any replies!
    Many   Mac OS X (10.4.3)  

    You know what? I think when I started mysql_safe, I did it with sudo. Maybe that is my problem?
    If so, what user do I want to start it as? I've seen one suggestion of doing this:
    ./bin/mysqld_safe --user=mysql &

  • Get return code in command line

    Hi,
    Is possible modify or get return code diferent 0 or 1 when start scenario using command line?

    i use control+M, and result with erros in E$, send to "hospital" whit this

  • Code for command line

    Hello everyone,
    I have a SQL SSIS package that I would like to trigger
    through Cold fusion. I looked into SQL help, it said that using
    "dtexec" at command line will work. My question is: how do I get
    Cold Fusion do a command line job? What is the sytext/code for
    that?
    Thanks in advance.

    Lei Hu wrote:
    > Hello everyone,
    > I have a SQL SSIS package that I would like to trigger
    through Cold fusion.
    > I looked into SQL help, it said that using "dtexec" at
    command line will work.
    > My question is: how do I get Cold Fusion do a command
    line job? What is the
    > sytext/code for that?
    >
    > Thanks in advance.
    >
    The <cfexecute...> tag allows ColdFusion to run command
    line code. It
    can take a lot of trial and error to get that to work
    properly. User
    permissions of the ColdFusion server standard output versus
    standard
    error, version of ColdFusion are all potential hickups with
    this type of
    code.
    Take it slow, one step at the time is the best advice I can
    give you for
    using <cfexecute...>.
    Ian

  • How to execute some code in command line, and read its output?

    I'v found here http://www.sap-advisor.com/abap-coding/how-to-execute-operating-system-commands-from-within-sap/ that I can execute commands from the windows command line for example inside SAP.
    But I want to take it one step further and read its output. is it possible?

    Hi RagnaRock,
    one possible approach can be outputting the results of the command into a text file (i.e. "command >result.txt"), and then read this file from SAP/ABAP.
    I hope this helps. Kind regards,
    Alvaro

  • Return Code after Command Line (File Adapter)

    Hello all,
    i execute in the File Receiver Channel a Shell Script.
    Now i need a solution, when an error happens. The script returns an error code and i want that the Adapter Monitor is showing this information/error.
    How can i enable this?
    Or is there an other possibility to monitor this??
    many thanks for your help
    ilka

    Hi IIka,
    I have not tried this but I think
      The return code of the script cannot be shown in monitor, because the call ends (does not expect a response) once the file adapter is called.
    May be you can capture the errors in a seperate file and
    use that as a log.
    I am not sure if there is anyother way
    also check this blog /people/michal.krawczyk2/blog/2005/08/17/xi-operation-system-command--error-catching
    Regards
    Vishnu

  • How to execute My Javascript code from command line or through perl or VB

    Hi Forum,
    I am a new bie, just 2 days old to acrobat and javascript, and I am basically a perl developer
    Here with I have created a small script to merge two pdf
    // Create a new PDF document:
    var newDoc = app.newDoc();
    // Insert doc1.pdf:
    newDoc.insertPages({
    nPage : -1,
    cPath : "/d/sathish/1.pdf",
    // Insert doc2.pdf:
    newDoc.insertPages({
    nPage : newDoc.numPages-1,
    cPath : "/d/sathish/2.pdf",
    // Save the new document:
    newDoc.saveAs("/d/sathish/myNewDoc.pdf");
    My code is working fine and merging properly,
    Is there any way to execute this script through commandline or using some other scripting languages like perl or through VB
    My objective is to automate the merging process without any manual intervention, I don't want to open acrobat manually to execute this javacript, i want to automate that process too,
    Please suggest me which will be very helpful to me,
    Thanks in advance
    Thanks & Regards
    Sathish V.

    Hi Sathish,
    did you find a solution for this? I am looking for the same thing. I want to write a program(perl, batch script, etc.) which could automatically convert pdf to excel without any manual intervention.
    I have the acrobat javascript which could achieve this, but it can only be executed in arobat consolt.  I need it to be able to get executed in a script to automate the processing.
    thanks
    Warren

  • Want to create a certificate inline - i.e. not command line

    Hi
    How do you create a certificate inline (without using keytool)? Any links, examples?
    Thanks

    If (and only if) you can send the JDK file "tools.jar" with your app, you can create the certificate using exactly the same arguments as the keytool command. Just instantiate the Keytool class that`s present in tools.jar. You need to use reflection to instantiate an object of the class because the constructor is private.
    If you can send the Bouncycastle provider with your app, you can try using Bouncycastle http://www.bouncycastle.org ). Sign the Bouncycastle mailing list as well.

  • Task Sequence Command Line to Unregister DLL Not Working...Won't Run As Administrator

    Hi All,
    I'm trying to unregister a dll by creating a Custom Task Sequence using the command line "%SystemRoot%\System32\regsvr32.exe" /s -u "%CommonProgramFiles%\Microsoft Shared\VGX\vgx.dll"
    SCCM is reporting success, however the DLL isn't being unregistered on the client machines.  If I manually run the command on a client machine as administrator it works.  I have specified that same administrative user in the Custom Task Sequence. 
    These are Windows 7 machines, so my hunch is it has something to do with UAC, but I'm kind of stumped what to do here but feel like I'm missing something obvious.
    Thanks!

    Thanks again Jason for sticking with me here.  We are running this on 64-bit Windows.  Okay, I fixed the command line so it now is: %windir%\sysnative\regsvr32.exe /s -u "%CommonProgramFiles%\Microsoft Shared\VGX\vgx.dll"
    Once again, SCCM shows it successfully executed the task sequence, however the dll still didn't unregister.
    Any other ideas what might be going on?  I really appreciate the help.
    Here are the events for the advertisement from old to new in case they help:
    Program started for advertisement "SEA2011B" ("SEA000E8" - "*").
    Command line: "C:\Windows\SysWOW64\CCM\TSLauncher.exe"
    Working directory: C:\Windows\system32\
    User context: NT AUTHORITY\SYSTEM
    The task sequence execution engine started execution of a task sequence.
    The task sequence execution engine successfully completed the action (Run Command Line) in the group () with exit code 0
    Action output: =======================[ smsswd.exe ] =======================
    PackageID = ''
    BaseVar   = '', ContinueOnError=''
    SwdAction = '0001'
    Command line for extension .exe is "%1" %*
    Set command line: Run command line
    Working dir 'not set'
    Executing commandline: Run command line
    Process completed with exit code 0
    Command line returned 0.
    The task sequence execution engine successfully completed a task sequence.

  • Picture Manager with command line for Bat files

    Hello 
    I am wondering if Microsoft Picture manager has any command line switches i could use.
    I resize thousands of photos weekly using Picture manager for a semi automated process. The resize is the part that is not automated. For some reason when using image magik the resize is done but it does not accept some images where i upload them, yet if
    i do it in parallel with Office picture manager the Microsoft re-sized always work. 
    The process uses VB Access, downloads all images changes the extension from one card extensions to jpg and ammends the name. sorts the images to two folders.
    Then i resize as a batch manually. Not difficult but needs hands on and have you tried changing the dimensions in picture manager when all are selected. tedious!
    Then the final bat uploads to correct locations. 
    So my question, how to use command line with Microsoft picture manager. If not command line Powershell. I can not beleive that the program can not be opened specifying a folder and resize image dimension to use. I cant see the source code where i believe
    it would be apparent to me how to do so.
    Thank you
    Sometimes the answer is so blindingly obvious i fail to see!

    I have done it before on BOXI R2 with the IW, and it works fine
    But any how, this is the way that we have to work with, since it is part of a customer product and the link universe and it's reports  is an additional part of the product.
    So is there a way that I can pull just the main universe and it's reports?

  • Code coverage using command line always produces a binary file nearly full of zeros, not workable by Visual

    I'm using Professional Edition 2013. I try to generate a coverage report for a C project, using the command line interface.
    In Visual, configuration of the Linker : Configuration Properties -> Linker -> Advanced -> Profile.
    Then:
    vsinstr.exe my.exe /COVERAGE
    I've got messages from Visual that the instrumentation went well.
    VSPerfCmd.exe /START:COVERAGE /OUTPUT:my.coverage
    my.exe
    VSPerfCmd.exe /SHUTDOWN
    The my.coverage file is created. But it's a binary file, more or less full of zeros. Dropping it into Visual just opens it as a binary file. Full stop.
    I've tried the same commands on very different .exe files and it seems like the my.coverage file has always the same content.
    What am I doing wrong ?
    Thx

    Hi Fred35,
    If you test it with other language project, how about the result? For example, a console app or winform app.
    Reference:
    http://www.codeproject.com/Articles/590346/CodeplusCoverageplusforplusRegressionplusTestsplus
    Based on your description, I think the steps have no issue like this blog here:
    http://blogs.msdn.com/b/cellfish/archive/2008/11/16/native-c-code-coverage-reports-using-visual-studio-2008-team-system.aspx
    So I'm afraid that we would think about others. Maybe it is the dependent dll file issue.
    http://stackoverflow.com/questions/17867591/code-coverage-in-visual-studio-2010-for-native-c-exe-dll
    Best Regards,
    Jack
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • Powershell script sends e-mail in ISE but not from powershell command line

    I have created a script that generates a report of all users who do not have photos in Active Directory. The script runs and sends an e-mail to a distribution list. It runs fine in ISE, but I cannot run it from command line or as a scheduled task. Any suggestions
    what I am doing wrong?
    #Starts Powershell Snap-In
    Start-Transcript -path c:\Scripts\StaffWithoutPhotos.txt
    add-pssnapin Microsoft.Exchange.Management.PowerShell.E2010 -erroraction silentlyContinue
    $mailboxes = $null
    $mailboxes = @(Get-Mailbox -OrganizationalUnit "Staff User Accounts" -ResultSize Unlimited | Where {$_.HasPicture -eq $False})
    Write-Host $mailboxes
    $report = @()
    foreach ($mailbox in $mailboxes)
    $mbObj = New-Object PSObject
        $mbObj | Add-Member -MemberType NoteProperty -Name "Display Name" -Value $mailbox.DisplayName
        $report += $mbObj
    Write-Host "Diagnostic Output"
    Write-Host "Before Mailbox value check"
    Write-Host $report
    Write-Host "After Mailbox Value check"
    if ($mailboxes -ne $null)
        Write-Host $report
        #Send the report generated to the e-mail list specified above
        $style = "<style>BODY{font-family: Arial; font-size: 10pt;}"
        $style = $style + "TABLE{border: 1px solid black; border-collapse: collapse;}"
        $style = $style + "TH{border: 1px solid black; background: #dddddd; padding: 5px; }"
        $style = $style + "TD{border: 1px solid black; padding: 5px; }"
        $style = $style + "</style>"
        #Start-Sleep -Seconds 5
        $smtpserver = "MAIL.contoso.com"
        $msg = new-object Net.Mail.MailMessage
        $smtp = new-object Net.Mail.SmtpClient($smtpServer)
        $msg.From = "[email protected]"
        $msg.To.Add("[email protected]")
        #$msg.To.Add("[email protected]") #Used for testing
        $msg.Subject = "Staff without Photos report"
        $msg.Body = "This report contains the list of users who do not currently have photos."
        $msg.Body += "<p>"
        $msg.Body += "After photos are available for these users please submit a request to have their accounts updated or send an e-mail to <a href='mailto:[email protected]?Subject=Staff%20Photo%20Updates' target='_top'> [email protected]
    </a> with <b>Staff Photo Updates</b> in the subject."
        $msg.Body += "<p>"
        $msg.Body += "This report runs on Fridays and will only send a message if we have Staff without Photos. For more information please contact your systems administrator."
        $msg.Body += "<p>"
        $msg.Body += $Report | ConvertTo-Html -Head $Style
        $msg.IsBodyHTML = $true
        $smtp.Send($msg)
    Stop-Transcript

    So after researching further and not receiving any more replies I decided to rewrite the script and attempt to use the send-mailmessage function. I have been unable to determine the reason for the original not script not working. We use a very similar script
    to my original code which works to generate a report and e-mail that report as an attachment and it works without any problems.
    After re-writing the script and using the send-mailmessage function I was able to get this report to work as expected. This has now been set up as a scheduled task to run on a server once a week. Here is the final code:
    Start-Transcript -path c:\Scripts\StaffWithoutPhotos.txt
    #Starts Powershell Snap-In
    add-pssnapin Microsoft.Exchange.Management.PowerShell.E2010 -erroraction silentlyContinue
    $mailboxes = $null
    $mailboxes = @(Get-Mailbox -OrganizationalUnit "contoso Staff User Accounts" -ResultSize Unlimited | Where {$_.HasPicture -eq $False})
    Write-Host $mailboxes
    $report = @()
    foreach ($mailbox in $mailboxes)
    $mbObj = New-Object PSObject
        $mbObj | Add-Member -MemberType NoteProperty -Name "Display Name" -Value $mailbox.DisplayName
        $report += $mbObj
    Write-Host "Diagnostic Output"
    Write-Host "Before Mailbox value check"
    Write-Host $report
    Write-Host "After Mailbox Value check"
    if ($mailboxes -ne $null)
        Write-Host $report
        #Send the report generated to the e-mail list specified above
        $style = "<style>BODY{font-family: Arial; font-size: 10pt;}"
        $style = $style + "TABLE{border: 1px solid black; border-collapse: collapse;}"
        $style = $style + "TH{border: 1px solid black; background: #dddddd; padding: 5px; }"
        $style = $style + "TD{border: 1px solid black; padding: 5px; }"
        $style = $style + "</style>"
        $smtpserver = "MAIL.contoso.com"
        $smtpFrom = "[email protected]"
        $smtpTo = "[email protected]
        $messageSubject = "Staff without Photos report"
        $Body = "This report contains the list of users who do not currently have photos."
        $Body += "<p>"
        $Body += "After photos are available for these users please submit a request to the Help Desk to have their accounts updated or send an e-mail to <a href='mailto:[email protected]?Subject=Staff%20Photo%20Updates' target='_top'> [email protected]
    </a> with <b><u>Staff Photo Updates</b></u> in the subject."
        $Body += "<p>"
        $Body += "This report runs on Fridays and will only send a message if we have Staff without Photos. For more information please contact your systems administrator."
        $Body += "<p>"
        $Body += $Report | ConvertTo-Html -Head $Style
        #Send the report
        send-mailmessage -from "$smtpFrom" -to "$smtpTo" -subject "$messageSubject" -body "$Body" -smtpServer "$smtpserver" -BodyAsHtml
    Stop-Transcript

  • How can hide the command line of a t.code in the portal

    Dear Experts.
    I have the following doubt:
    How can hide the Command Line of a Report that is called with a T.Code in the portal?
    Attach Image:
    [Image T.Code|http://www.freeimagehosting.net/uploads/eab3b6a03c.jpg]
    When I created a service using the T.Code SICF for the T.Code , I can hide buttons and the filed command line  using
    ~webgui_simple_toolbar
    ~singletransaction
    ~NOHEADEROKCODE
    With notes 1010519, "SAP GUI for HTML: Simplified Title Area Without Menu and OK Code" and 959417.
    But the problem is that when I create the service in the T.Code SICF, I also have that create an Iview IAC in the portal.
    The Question is : How can hide this fields and buttons if I want Publish the T.code using an Iview Transaction in the portal?
    In this moment I have used the two options:
    1 option) I created a service using the t.Code SICF for my Transaction and I also created an Iview IAC in the portal for call the service.
    RESULT:
    SAP Web Application Server
             500 Connection timed out
            Error: -5
           Version: 7000
           Component: ICM
           Date/Time: Sat Jun 12 20:26:39 2010 
           Module: icxxthr_mt.c
           Line: 2698
           Server: xyxab...
    Error Tag: {-}
    Detail: Connection to partner timed out after 60s
    2)  created an Iview Transaction  in the portal and  call my transaction.
    RESULT.
    [Image T.Code|http://www.freeimagehosting.net/uploads/eab3b6a03c.jpg]
    But not can hide the field Command Line and other buttons.
    I think that the command :
    ~webgui_simple_toolbar
    ~singletransaction
    ~NOHEADEROKCODE
    Only can be used if I create a service using the T.Code SICF .
    Best Regards
    Carmen.

    Hi Carmen,
    The bottom line is that this cannot be done for transaction iviews without modifying the standard webgui service in SICF, which is probably not a good idea (since it affects everyone using SAP GUI for HTML). (You could hack the appintegrator to add the ~webgui_simple_toolbar parameter to the transaction URL template in the portal, but again its not a recommended thing to do ...). Better to create an IAC service in SICF with ~webgui=1 where you set the required appearance using an appropriate value for ~webgui_simple_toolbar, and then create an IAC iview to point at this service.
    You can even override the ~transaction value configured in the new service in individual IAC iviews by entering the appropriate value in the application parameter of the iview, for example:
    ~okcode=/nSU01
    And you can pass parameters in the same way:
    ~okcode=/nSU01 USR02-BNAME=xyz;USREFUS-USERALIAS=abc;
    By the way, it would not be recommended to create a URL iview to access an IAC, since you are likely to encounter session management issues in this scenario - better to use an IAC iview.
    Regards, Rory

  • Connection string not in the command line argument.

    Hi,
    I found myself constantly looking for the debug connection string and to enter it in the "Command line arguments".  I decided to create my Add-On base class from which all my add-ons inherit from.
    In the constructor of the base Add-On class I determine the connection string based on whether the code is in debug more or not.
    Example:
    string connectionString  = string.Empty;
    #if DEBUG
        _connectionString = "0030002C0030002C00530041005000420044005F00440061007400650076002C0050004C006F006D0056004900490056";
    #else
        // Get the log info
        if (Environment.GetCommandLineArgs().Length > 1 )
            _connectionString = Environment.GetCommandLineArgs().GetValue(1).ToString();
    #endif
    I hope this help.
    Edited by: B1Computing on Apr 5, 2011 8:20 PM

    Hi,
    I found myself constantly looking for the debug connection string and to enter it in the "Command line arguments".  I decided to create my Add-On base class from which all my add-ons inherit from.
    In the constructor of the base Add-On class I determine the connection string based on whether the code is in debug more or not.
    Example:
    string connectionString  = string.Empty;
    #if DEBUG
        _connectionString = "0030002C0030002C00530041005000420044005F00440061007400650076002C0050004C006F006D0056004900490056";
    #else
        // Get the log info
        if (Environment.GetCommandLineArgs().Length > 1 )
            _connectionString = Environment.GetCommandLineArgs().GetValue(1).ToString();
    #endif
    I hope this help.
    Edited by: B1Computing on Apr 5, 2011 8:20 PM

Maybe you are looking for

  • Windows server 2012 and windows xp remote desktop connection loss

    I am having this problem for a month now, and i am stumped with trying to find an answer . I have talked with several network admins in my area and with no luck i have not found a solution. I have a windows server 2012 placed with 5 pcs that are conn

  • JList(Vector) inside JScrollPane vanishes!

    Hi all, I have a problem thats driving me crazy, Im really stumped on this one; Im trying to update the GUI on a packet sniffer I wrote a while ago, I have a GUI class below as part of a larger program, this class containes a JList(Vector) inside a J

  • XMLTable default values for timestamp results in ORA-01843: not a valid month

    When I try to provide a default for a timestamp value in the XMLTABLE function, I am greeted with an error - ORA-01843: not a valid month - no matter how I provide that default value. Whether there is a value present in the XML or not is irrelavant f

  • Reiunstalling Lion and/or the English language files

    I accidently deleted nearly ever English language file whilst intentionally deleting all languages to generate more disk space in my system.  Now I find that things like Safari only open up in teh Spanish language, I can't open Finder from the Dock a

  • Button on Report (.pdf report)

    Hi Friends! I want to have a button in my report and by pressing I want to see my .pdf report located in a specified path. Is it possible ?, if..then how ? Kindly help me in this interesting assignment and let me know if I have conveyed properly ? Ma