Native Windows Authentication in Java?

I'm maintaining a Java web app that runs on a Windows server and needs to use native Windows authentication to do a pass/fail validation of a client's user/pass/domain credentials.
Currently, the app uses JNI to make a simple LogonUserW call, however JNI is causing a variety of headaches. I was wondering if Java can do Windows authentication with JAAS or Java SSO technology. I'm new to Java security APIs so any pointers are greatly appreciated.
Thanks!

I'm maintaining a Java web app that runs on a Windows server and needs to use native Windows authentication to do a pass/fail validation of a client's user/pass/domain credentials.
Currently, the app uses JNI to make a simple LogonUserW call, however JNI is causing a variety of headaches. I was wondering if Java can do Windows authentication with JAAS or Java SSO technology. I'm new to Java security APIs so any pointers are greatly appreciated.
Thanks!

Similar Messages

  • Display a C++ window in a java GUI

    Hi,
    I've got a java program and a c++ one.
    The Java program`s output is a GUI, using swing and awt componants.
    THe Cpp program is a 3D engine: OSG, Open Scene Graph., displaying a 3D model in the screne, with interaction : so that the user can move on the scene, thanks to the mouse or keyboard.
    Actually the Java is used as a command panel fot the 3Dengine.
    I would like to know if i can have the Cpp ouput window (the 3D ouput form the OSG cpp)
    in a Java componant > frame or anything : so that I would be able to keep all my software in only one main GUI.

    You can create a child native window in a java component. For this do as follows
    - extent java.awt.Canvas class with yours, override method addNotify and add some native method for CPP window initialization, g.e. createWindow()
    - in your addNotify call createWindow():
    public void addNotify() {
        super.addNotify();
        createWindow();
    }- add native method nativeWindowResize(int width, int height) to resize CPP Window;
    - implement java.awt.event.ComponentListener and in method componentResized call nativeWindowResized:
    public void componentResized(java.awt.event.ComponentEvent componentevent) {
        nativeWindowResize(getWidth(), getHeight());
    }- override setBounds(int x, int y, int w, int h):
    public void setBounds(int x, int y, int w, int h)
        super.setBounds(x, y, w, h);
        nativeWindowResize(getWidth(), getHeight());
    }What to do in JNI code (method createWindow and nativeWindowResize):
    - get HWND of java.awt.Canvas Object with AWT native interface;
    - create your CPP window as a child of Canvas' window;
    - in JNI method nativeWindowResize resize your CPP window.
    This is very simple task.

  • How to make use of Windows authentication from my Java application

    I have a Java application, Instead I design one more login page for my application, I want to make use of Windows Authentication.
    How should I use that windows authentication in my java application
    can any help me in suggesting a solution

    How will they be able to access your application if they aren't users of the system?

  • How to ivoke Java within native window

    The JNI tutorial says that JNI can be used (for example)to add applet support to a browser.
    Whenever I invoke classes via JNI they create their own top-level windows. How can you invoke java so that the application runs within a native window?

    Yes, that would certainly be onme way of doing it. I am sure that there is another way using native methods only that would be more efficient

  • How to set proxy authentication using java properties at run time

    Hi All,
    How to set proxy authentication using java properties on the command line, or in Netbeans (Project => Properties
    => Run => Arguments). Below is a simple URL data extract program which works in absence of firewall:
    import java.io.*;
    import java.net.*;
    public class DnldURLWithoutUsingProxy {
       public static void main (String[] args) {
          URL u;
          InputStream is = null;
          DataInputStream dis;
          String s;
          try {
              u = new URL("http://www.yahoo.com.au/index.html");
             is = u.openStream();         // throws an IOException
             dis = new DataInputStream(new BufferedInputStream(is));
             BufferedReader br = new BufferedReader(new InputStreamReader(dis));
          String strLine;
          //Read File Line By Line
          while ((strLine = br.readLine()) != null)      {
          // Print the content on the console
              System.out.println (strLine);
          //Close the input stream
          dis.close();
          } catch (MalformedURLException mue) {
             System.out.println("Ouch - a MalformedURLException happened.");
             mue.printStackTrace();
             System.exit(1);
          } catch (IOException ioe) {
             System.out.println("Oops- an IOException happened.");
             ioe.printStackTrace();
             System.exit(1);
          } finally {
             try {
                is.close();
             } catch (IOException ioe) {
    }However, it generated the following message when run behind the firewall:
    cd C:\Documents and Settings\abc\DnldURL\build\classes
    java -cp . DnldURLWithoutUsingProxy
    Oops- an IOException happened.
    java.net.ConnectException: Connection refused
    at java.net.PlainSocketImpl.socketConnect(Native Method)
    at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:305)
    at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:171)
    at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:158)
    at java.net.Socket.connect(Socket.java:452)
    at java.net.Socket.connect(Socket.java:402)
    at sun.net.NetworkClient.doConnect(NetworkClient.java:139)
    at sun.net.www.http.HttpClient.openServer(HttpClient.java:402)
    at sun.net.www.http.HttpClient.openServer(HttpClient.java:618)
    at sun.net.www.http.HttpClient.<init>(HttpClient.java:306)
    at sun.net.www.http.HttpClient.<init>(HttpClient.java:267)
    at sun.net.www.http.HttpClient.New(HttpClient.java:339)
    at sun.net.www.http.HttpClient.New(HttpClient.java:320)
    at sun.net.www.http.HttpClient.New(HttpClient.java:315)
    at sun.net.www.protocol.http.HttpURLConnection.plainConnect(HttpURLConnection.java:510)
    at sun.net.www.protocol.http.HttpURLConnection.connect(HttpURLConnection.java:487)
    at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:615) at java.net.URL.openStream(URL.java:913) at DnldURLWithoutUsingProxy.main(DnldURLWithoutUsingProxy.java:17)
    I have also tried the command without much luck either:
    java -cp . -Dhttp.proxyHost=wwwproxy -Dhttp.proxyPort=80 DnldURLWithoutUsingProxy
    Oops- an IOException happened.
    java.io.IOException: Server returned HTTP response code: 407 for URL: http://www.yahoo.com.au/index.html
    at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1245) at java.net.URL.openStream(URL.java:1009) at DnldURLWithoutUsingProxy.main(DnldURLWithoutUsingProxy.java:17)
    All outgoing traffic needs to use the proxy wwwproxy (alias to http://proxypac/proxy.pac) on port 80, where it will prompt for valid authentication before allowing to get through.
    There is no problem pinging www.yahoo.com from this system.
    I am running jdk1.6.0_03, Netbeans 6.0 on Windows XP platform.
    I have tried Greg Sporar's Blog on setting the JVM option in Sun Java System Application Server (GlassFish) and
    Java Control Panel - Use browser settings without success.
    Thanks,
    George

    Hi All,
    How to set proxy authentication using java properties on the command line, or in Netbeans (Project => Properties
    => Run => Arguments). Below is a simple URL data extract program which works in absence of firewall:
    import java.io.*;
    import java.net.*;
    public class DnldURLWithoutUsingProxy {
       public static void main (String[] args) {
          URL u;
          InputStream is = null;
          DataInputStream dis;
          String s;
          try {
              u = new URL("http://www.yahoo.com.au/index.html");
             is = u.openStream();         // throws an IOException
             dis = new DataInputStream(new BufferedInputStream(is));
             BufferedReader br = new BufferedReader(new InputStreamReader(dis));
          String strLine;
          //Read File Line By Line
          while ((strLine = br.readLine()) != null)      {
          // Print the content on the console
              System.out.println (strLine);
          //Close the input stream
          dis.close();
          } catch (MalformedURLException mue) {
             System.out.println("Ouch - a MalformedURLException happened.");
             mue.printStackTrace();
             System.exit(1);
          } catch (IOException ioe) {
             System.out.println("Oops- an IOException happened.");
             ioe.printStackTrace();
             System.exit(1);
          } finally {
             try {
                is.close();
             } catch (IOException ioe) {
    }However, it generated the following message when run behind the firewall:
    cd C:\Documents and Settings\abc\DnldURL\build\classes
    java -cp . DnldURLWithoutUsingProxy
    Oops- an IOException happened.
    java.net.ConnectException: Connection refused
    at java.net.PlainSocketImpl.socketConnect(Native Method)
    at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:305)
    at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:171)
    at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:158)
    at java.net.Socket.connect(Socket.java:452)
    at java.net.Socket.connect(Socket.java:402)
    at sun.net.NetworkClient.doConnect(NetworkClient.java:139)
    at sun.net.www.http.HttpClient.openServer(HttpClient.java:402)
    at sun.net.www.http.HttpClient.openServer(HttpClient.java:618)
    at sun.net.www.http.HttpClient.<init>(HttpClient.java:306)
    at sun.net.www.http.HttpClient.<init>(HttpClient.java:267)
    at sun.net.www.http.HttpClient.New(HttpClient.java:339)
    at sun.net.www.http.HttpClient.New(HttpClient.java:320)
    at sun.net.www.http.HttpClient.New(HttpClient.java:315)
    at sun.net.www.protocol.http.HttpURLConnection.plainConnect(HttpURLConnection.java:510)
    at sun.net.www.protocol.http.HttpURLConnection.connect(HttpURLConnection.java:487)
    at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:615) at java.net.URL.openStream(URL.java:913) at DnldURLWithoutUsingProxy.main(DnldURLWithoutUsingProxy.java:17)
    I have also tried the command without much luck either:
    java -cp . -Dhttp.proxyHost=wwwproxy -Dhttp.proxyPort=80 DnldURLWithoutUsingProxy
    Oops- an IOException happened.
    java.io.IOException: Server returned HTTP response code: 407 for URL: http://www.yahoo.com.au/index.html
    at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1245) at java.net.URL.openStream(URL.java:1009) at DnldURLWithoutUsingProxy.main(DnldURLWithoutUsingProxy.java:17)
    All outgoing traffic needs to use the proxy wwwproxy (alias to http://proxypac/proxy.pac) on port 80, where it will prompt for valid authentication before allowing to get through.
    There is no problem pinging www.yahoo.com from this system.
    I am running jdk1.6.0_03, Netbeans 6.0 on Windows XP platform.
    I have tried Greg Sporar's Blog on setting the JVM option in Sun Java System Application Server (GlassFish) and
    Java Control Panel - Use browser settings without success.
    Thanks,
    George

  • Class Not Found. "Integrated Windows Authentication"

    Hello out there!
    I have read several posts concerning almost the same problem I have, but couldn't find a solution:
    IIS + PlugIn 1.4.1 installed.
    If the IIS is configured not to provide Basic Authentcation, but only "Integrated Windows Authentication", following error occurs:
    java.lang.ClassNotFoundException: de.mypackage.myclass.class
    at sun.applet.AppletClassLoader.findClass(Unknown Source)
    at sun.plugin.security.PluginClassLoader.findClass(Unknown Source) at java.lang.ClassLoader.loadClass(Unknown Source)
    at sun.applet.AppletClassLoader.loadClass(Unknown Source)
    at java.lang.ClassLoader.loadClass(Unknown Source)
    at sun.applet.AppletClassLoader.loadCode(Unknown Source)
    at sun.applet.AppletPanel.createApplet(Unknown Source)
    at sun.plugin.AppletViewer.createApplet(Unknown Source)
    at sun.applet.AppletPanel.runLoader(Unknown Source)
    at sun.applet.AppletPanel.run(Unknown Source)
    at java.lang.Thread.run(Unknown Source)
    Caused by: java.io.IOException: open HTTP connection failed.
    at sun.applet.AppletClassLoader.getBytes(Unknown Source)
    at sun.applet.AppletClassLoader.access$100(Unknown Source)
    at sun.applet.AppletClassLoader$1.run(Unknown Source)
    at java.security.AccessController.doPrivileged(Native Method)
    "Integrated Windows Authentication" is a must, so I have to turn it on, but it is possible, that basic authentication is not allowed. Any suggestions or ideas?

    In IIS you can set the security mechanism down to the file level. Try turning off integrated Windows authentication for the jar files. This can be done in the IIS administrative tool by going to your virtual directory and right clicking the jar file and selecting 'Properties'.
    Gerald

  • Workflows Do Not Start - "Not Supported in Windows Authentication Mode"

    I have a publishing site that is using Kerbos authentication.  Everything on the site works fine.
    I created a simple workflow in SPD 2013 and published this to the site without any problems.  However when I try to start the workflow with the account of a user who is a member of the site it will not run.  In the browser an alert pop's up
    saying "Something went wrong.  To try again, reload the page and then start the workflow again".
    In the SharePoint log's I find the following:
    SharePoint Server              Workflow Services              aj5oh Exception  System.NotSupportedException: Not supported
    in Windows authentication mode.     at Microsoft.SharePoint.IdentityModel.SPIdentityContext.Create(SPUserToken token, Boolean isShareByLinkGuestUser)     at Microsoft.SharePoint.WorkflowServices.WorkflowServiceContextExtensions.GetApplicationUserCredentials(WorkflowServicesContext
    context) StackTrace:  at Microsoft.Office.Server.Native.dll: (sig=1f86b0bf-2440-4b16-9099-860a571153c2|2|microsoft.office.server.native.pdb, offset=131CE) at Microsoft.Office.Server.Native.dll: (offset=21C85) 799af29b-db87-0034-c938-8a35e4082ffc
    This is a dev environment where everthing is setup on a single box, and I registered the workflow service in HTTP mode (which I allowed during the installation of workflow manager).
    Any ideas on what the problem might be?
    Thanks,
    Richard

    You haven't changed it to Claims there, you have changed NTLM to Kerberos. I guess your web app was already claims based because in SP 2013 we have to use Powershell to convert classic to claims and not from GUI.
    When I click the workflow on a item to start in manually I get the error:
    "Something went wrong. To try again, reload the page and then start the workflow"
    In ULS I get the not supported exception.
    It seems 2013 platform workflows aren't supported in classic mode web applications:
    http://sharepointconnoisseur.blogspot.co.uk/2012/11/sharepoint-2013-upgrade-preparation-to.html
    But I am not able to publish 2010 mode workflows in the classic web application, SPD 2013 throws error while publishing:
    "Unexpected error on server, wf cannot be associated"
    So does Infopath while publishing on to a list in that web application:
    -- The opinions expressed here represent my own and not those of anybody else -- http://manojvnair.blogspot.com

  • How to use windows authentication to MSSQL2008 from oim running in Linux

    Hi All,
    We have developed the code (in eclipse) in local windows machine to call sample stored procedures in MSSQL.The code works fine from client and are able to create, update users in MSSQL from windows.
    We have OIM 11g R2 installed in Linux 6 on local VM. The question is while building the jar from the code and placing it in Java task directory of OIM, calling thr Code we need sql.dll file to implement the windows authentication(no user name & pwd) to connect to MSSQL, but this is not possible in Linux since the jar don't support.
    Can any one please give suggestions on this to implement windows authentication from Linux through OIM server.
    Edited by: 970422 on Nov 8, 2012 11:39 PM

    I have no idea, but you might find it helpful to read Redhat's documentation concerning this subject:
    http://docs.redhat.com/docs/en-US/Red_Hat_Enterprise_Linux/5/html/Deployment_Guide/ch-ldap.html

  • New "Windows Programming Using Java" Website

    Our newly created "Windows Programming Using Java" website (http://fivedots.coe.psu.ac.th/~ad/winJava/) is for programmers who want to extend Java's capabilities on Windows XP and/or Vista, but aren't sure where to start. One of the drawbacks of Java's portability is that many Java programmers have a rather sketchy knowledge of Windows-specific programming.
    We plan to explain how Java applications can utilize Windows application software, OS features, and hardware beyond the reach of Java's standard libraries. A variety of Java/Windows programming techniques will be explained, including:
    * Java's employment of the Win32 API via C, JNI, and J/Invoke.
    * Java's utilization of Window's Command Line Interface (CLI) and batch files, accessed through Java's Runtime, ProcessBuilder, and Process classes.
    * Java and Windows object-based scripting, centered around the use of VBScript, Windows Script Host (WSH), and Windows Management Instrumentation (WMI).
    * Java interoperability with COM, including hosting of ActiveX controls in Swing containers using jacoZoom.
    This website is a work in progress, with four chapters available for download at the moment. We'll be adding more regularly, and would love feedback on what we're doing.
    Thanks,
    Gayathri Singh and Andrew Davison
    [email protected] and [email protected]
    Edited by: AndrewDavison on Jun 20, 2008 1:36 AM

    Hi, I am looking the similar kind of requirement that you had done.. Do you have any more details on the code that is working for you . All i need is if the user logs in successfully in windows, the the app should be accessible. Please let me know if you have the code with you on this problem.
    Thanks in advance
    "what i meant is the we b applications running in my system, when i access the application iam able to to login automatically with windows authentication and now in case of other users following process happened:"

  • Embedding Applet in native Windows Application

    Hi!
    I need to integrate applet into my windows application (MSVC).
    The problem is displaying applet(s) within the application's main window (just like in browser).
    Is there a way to do it? Using WebBrowser (IE) ActiveX component is unacceptable.
    Perhaps there is documentation how to use JRE browser plugin, but googling yielded no results :(

    <offtopic>Apparently my login no longer working, re-registered</offtopic>
    ActiveX bridge won't do, I have to load an applet from any .jar
    The idea is to write kind of applet loader, which may be able to load jar and display applet.
    To start with, I need to know the way of paiting Java application GUI (i.e. JFrame) inside the native window.
    There is one way I've found. First, create borderless JFrame with some unique title, then use FindWindow in C++ Application to obtain HWND (window handle), and then call SetParent. I know there is more elegant way using JAWT to obtain HWND, the main problem is that Java window is rendered separately and only then becomes a part of native window, because HWND could be get on visible window only. This results unneccessary mess and flicking on screen for user.
    So, how can I render Java GUI directly to native window?
    I used search and haven't found solution.
    Thank you!
    PS found http://forum.java.sun.com/thread.jspa?forumID=52&threadID=5124062
    but this guy haven't said how he ded that :(
    Edited by: deniska25 on Oct 15, 2007 1:52 PM

  • Drag and drop of Windows icons inside Java......possible ?

    Hi all !
    does anybody know if it's possible to do drag and drop of windows icons (like folders) into Java Frames or other containers ?
    I'd like to write an application where the user can drag Windows folders inside a Frame/Container and collect Folder information (the path to the folder)
    Is it possible to do it ?
    Thanks a lot
    Francesco

    Hi,
    It is possible.
    You can drag platform independent objects like folders, icons etc. from the native platform to your java app.
    The Java-Object you need in this case is a
    DataFlavour like
    DataFlavor.stringFlavor // for text
    DataFlavor.javaFileListFlavor // for folders
    in the tutorial jacob has linked you find more about this.
    Olek

  • "Windows Authentication Mode" when SQL Server 200 and CF on different machines?

    Hi All,
    I am playing for two days with following problem. And still I
    did not able to get rid of it.
    I have installed SQL Server 2000 on machine which is my
    server (windows 2003 server) and this machine is my domain
    controller. I have user “ABC” user and I have added
    this user in administrator group.
    I have another machine where OS is Windows XP and CF 7 is
    installed. I create an ODBC Connection from Administrative Tool to
    my Database (windows 2003 server) successfully.
    Now when I create Data Socket in Coldfusion Administrator and
    when I select the my ODBC that I had created and when I Submit it
    then CF admin throughs the following message.
    Connection verification failed for data source: myTest
    java.sql.SQLException: [Macromedia][SequeLink JDBC
    Driver][ODBC Socket][Microsoft][ODBC SQL Server Driver][SQL
    Server]Login failed for user 'NT AUTHORITY\ANONYMOUS LOGON'.
    Please Brother, I don’t have any Clue to solve it,
    Please help.
    One Important thing, All this working fine if my CF, and SQL
    Server are on same machine.
    Best regards,
    Shahid

    Hi Phil Thanks,
    Finally i able to configure it out..... following are the
    steps...
    I assume domain controller is properly configure.
    Following are the steps for the machine where SQL SERVER 2000
    is installed
    1- We need to create Login account for your domain account in
    SQL Server 2000 using Enterprise Manager.
    • Right Click -> New Login
    • Click to load the domain users, select any user from
    your domain that will connect to your SQL Server from LAN.
    Following are the steps for the machine where ColdFusion and
    IIS are installed.
    Step No. 1
    Stop ColdFusion MX.
    Backup your existing macromedia_drivers.jar file.
    Unzip macromedia_drivers.zip into the same directory,
    overwriting the previous
    macromedia_drivers.jar.
    You can download “macromedia_drivers.zip” from
    following URL
    http://kb.adobe.com/support/coldfusion/ts/documents/1a3c2ad0/macromedia_drivers.zip
    A new file, DDJDBCAuth03.dll, which is required for Windows
    Authentication, is also included in the zip file replacing the
    older DDJDBCAuth.DLL.
    Restart ColdFusion MX.
    ColdFusion MX loads the JDBC drivers inmacromedia_drivers.jar
    in the directory cf_root/lib. For example, with ColdFusion MX 7
    Server Configuration on Windows installed on drive C:, this would
    beC:\CFusionMX7\lib\macromedia_drivers.jar.
    Then restart Machine
    Step No. 2
    Configure all the ColdFusion Services to “Log On
    As” using the Domain User Account configured in SQL Server in
    the above mentioned step.
    Change the “Log On As” similar for the all other
    Cold fusion services (ColdFusion MX 7 ODBC Agent, ColdFusion MX 7
    ODBC Server, ColdFusion MX 7 Search Server).
    Step No. 3
    Restart the services; for the safe side reboot the system.
    Step No. 4
    Create ODBC (Control Panel -> Administrative Tool ->
    Data Sources (ODBC)) using the windows NT Authentication option to
    connect to database.
    Step No. 5
    Create Data Socket and Select the created ODBC connection in
    the Drop down (ColdFusion-> Admin)
    Thanks to all who participated in this discussion...
    With lots of Thanks to All particular to Phil who guided me
    in right direction,
    Shahid

  • Integrated Windows Authentication with a WebSphere Cliente

    Hi all,
    I need to write a web service client that connects to a .NET Web Service that is configured to use Integrated Windows Authentication (NTLM).
    I'm using the IBM WebSphere Runtime environment for the client and using the web service client wizard in the RSD 6.0.1.
    When I try to call a method in the .NET web service, I get the error shown below. If I configure the .NET web service to permit Anonymous Access, my client works fine.
    Does anybody know if the WebSphere web services engine supports Integrated Windows Authentication? If so, how can I configure my cliente to pass my credentials? Do people use this type of authentication if the web service will be called by non Windows clientes or is it better to use Basic Authentication with HTTPS or digital certificates?
    I've read that Apache Axis can be configured to use integrated windows authentication (http://people.etango.com/~markm/archives/2005/11/21/using_apache_axis_with_integrated_windows_security.html) by using a different HTTP transport class (CommonsHTTPSender).
    Thanks in advance!
    Craig
    [14/06/06 10:06:56:805 GMT-03:00] 00000031 enterprise I WSWS3243I: Info: Mapping Exception to WebServicesFault.
    [14/06/06 10:06:56:821 GMT-03:00] 00000031 enterprise I TRAS0014I: The following exception was logged WebServicesFault
    faultCode: {http://schemas.xmlsoap.org/soap/envelope/}Server.generalException
    faultString: java.lang.StringIndexOutOfBoundsException
    faultActor: null
    faultDetail:
    java.lang.StringIndexOutOfBoundsException
         at com.ibm.ws.webservices.engine.WebServicesFault.makeFault(WebServicesFault.java:179)
         at com.ibm.ws.webservices.engine.transport.http.HTTPSender.invoke(HTTPSender.java:490)
         at com.ibm.ws.webservices.engine.PivotHandlerWrapper.invoke(PivotHandlerWrapper.java:218)
         at com.ibm.ws.webservices.engine.PivotHandlerWrapper.invoke(PivotHandlerWrapper.java:218)
         at com.ibm.ws.webservices.engine.WebServicesEngine.invoke(WebServicesEngine.java:274)
         at com.ibm.ws.webservices.engine.client.Connection.invokeEngine

    Here's a project ( [http://spnego.sourceforge.net/protected_soap_service.html|http://spnego.sourceforge.net/protected_soap_service.html] ) that shows how to write a soap client that can connect to a soap web service with integrated windows authentication turned on.

  • Making JFrame Window Lose Focus to a Native Window

    How can i from within the same JFrame code or another class with the JFrame reference make JFrame lose focus to another native window on the desktop.
    Any tips

    In the core java API you can not make a native window take focus, you would have to use native code (JNI).
    The best you could do would be minimize the JFrame.

  • Need to track windows processes through java code.

    Need to track windows processes through java code.
    Eg: I want to find out whether an exe file (wrun.exe) is running or stopped.
    Can I do it through java. If so can any one please tell me how to do it. That will be a great help.
    Thanks,
    Ramesh

    There are 2 options for things like this:
    1) Use Runtime.exec() to execute some command or application and parse the input from it.
    2) Write some native code and use JNI to call it.

Maybe you are looking for

  • Where can I purchase a Satellite 3000-514 motherboard?

    I need to replace the system board (?), motherboard (?) on my Toshiba Satellite S3000-514. Question: Where can I go to purchase the motherboard? Question 2: How much in sterling can I expect to pay? Thank you.

  • Non-HP printer cartridges installed

    I keep getting the message that "Non-HP cartridges are installed" I am fully aware of this and do not need to keep getting notified evertime I print something. I know that this is just HP trying to get us to use their cartridges because they are so m

  • Sql command not working with date time??

    I am using my own sql query to fetch data in the sql command. Due to the problem I found - here is the basic example: The sql is: select to_number(to_date('10/11/2011 10:23:00','dd/mm/yyyy hh24:mi:ss') - to_date('10/11/2011 10:20:00','dd/mm/yyyy hh24

  • Keep alive script for HTTPS service with GET method

    Hello, I tried to implement a keep alive to services that support HTPS connections. I’ve created a script that opens a tcp connection on port 443 and tries to do a GET of a test web page. This web page only displays “OK”. In a resumed form I used the

  • Welcome & Rules of Engagement

    Welcome to the Remote Connection to SAP Forum! Please use the search before you post. More detailed <a href="https://wiki.sdn.sap.com/wiki/display/HOME/RulesofEngagement">rules of engagement</a>, can be found on the Wiki. Happy posting! The Community