Timeout a client app

I have a java GUI client/server application that uses swing classes and AWT . I need to timeout the client application after 4 hours. Does anyone have any tips of how to do this?
Do I try to timeout the RMI socket connection or do I try to use some sort of listener to see if there has not been any activity for 4 hours on the client? I'm not sure how to start.

Why not:
Every time there is activity on the RMI set a timer to occur after 4 hours, if you delete the old timer and create a new one every time the RMI has activity then you only have one timer and it will occur if, and only if, nothing has happened on the RMI for 4 hours. Youm can then deal with the RMI connection, etc as you want.
So :
    java.util.Timer myTimer = new Timer();
    // The timeout is in milliseconds.
    myTimer.schedule(new MyHandler(), 0, 4*60*60*1000);Above starts a timer that will occur after 4 hours.
Use:
      myTimer.cancel();
     myTimer.schedule(new MyHandler(), 0, 4*60*60*1000);To cancel the old timer and start a new one.
MyHandler needs to extend java.util.TimerTask and do whatever you want. When you extend TimerTask you then implement the run() method:
  public void run()
    // Do your work here
  }run() is called if the timer ever occurs.

Similar Messages

  • Latest Microsoft RD Client App (8.0.8) does not work on iPhone or iPad.

    We use the RD Client app from Microsoft on all of our mobile devices. The newest version of RD Client (8.0.8) doesn't work on any iPhones and iPads. It crashes when it tries to connect to the designated remote gateway. All previous
    versions seems to work, 8.05, 8.0.6, and 8.0.7. We tested it on a MAC desktop and Android devices and they seem to work fine. I tried uninstalling and the re-installing the App, but it still doesn't work on the iphone or ipad. It just crashes and close
    out. We tested it on iOS 7.1.1 and 7.1.2. This is definitely an issue with the latest RD Client software. We tested on a lot of iPhones and iPads and all results been the same. Need help.

    Hi,
    If we do not use Remote Gateway, does the issue also occur?
    Meanwhile, please provide us the log for check.
    Thanks.
    Jeremy Wu
    TechNet Community Support

  • Minimal requirements for remote client app to call a EJB 3 session bean

    I'm just starting to get into EJBs, trying to learn the EJB 3 APIs. I kind of understand the setup on the server side to create a session bean. What I don't understand is what I would have to deploy for each of the remote client app (Swing-based GUI or something like that) installations. Of course, the client app code would have to be deployed to each client desktop, but what stuff related to the session bean? Just the session bean interface class?
    For ease of discussion, let's say my bean is CalculatorBean, having two interfaces, CalculatorRemoteIface and CalculatorLocalIface. Let's also say my client app, CalculatorUI, is a simple Swing-based GUI that grabs a reference to a CalculatorBean.
    Other than just the Swing-based classes and the JRE, what JARs/classes will I want to deploy to each desktop?
    (Please assume the latest Sun Java System App Server 9 and Java EE 5, if you are familiar with them.)

    Personally- I would deploy your backend
    in EJB 3.0, but then expose it as a web service. It
    is MUCH easier for your clients to connect to a web
    service (and mantain that code), then to have them
    connect via RMI/JNDI.Oh, I would say it's quite the opposite. RMI/JNDI is MUCH easier from a client point of view than web services. To make web services work easy from the client side you have to generate code and the tools that generate code from a web services wsdl file doesn't do a great job today. But that was not the question. But take some time reading this article about webservices...it's quite funny and spot on: http://wanderingbarque.com/nonintersecting/2006/11/15/the-s-stands-for-simple
    Now to your question, yes you will need the remote interface on the client side.
    /klejs

  • [Windows 8.1 Desktop/Surface/Phone] connect client app to synchronization service(s)

    Hello Everybody!
    I have to do some research about:  what is the best way to set up my project, I am new to Azure.
    Situation:
    I need to develop a service(s) and client app(s) that are able to synchronize data with each other: files and database changes. the client app(s) must have the capability  to work online / offline,  offline: when there is no internet connection
    the data has to be stored local on the client device(s) and sync it later when there is active internet connection.
    Client Devices:
    Windows 8.1 (Windows 8.1 PC/Desktop)             
    Windows 8.1 RT (Windows 8.1 Surface tablet)
    Windows Phone 8.1 (Windows 8.1 Smart-phone)
    We prefer to create the clients as a C# Store App Application.
    Service:
    This might become , if technically possible and preferable, a Azure service who main task it is to manage the communication between the server and the clients
    Last days I spend my time doing research about how to get this done right.
    I found several interesting techniques, some of got all the features I needed, and some just a few, but most of them aren't supported on one or more devices.
    Microsoft Synchronization Framework
      Sync Toolkit WinRT / Phone
     Live SDK
    Microsoft Synchronization Framework - got all the features I need but is not supported on Win RT and Phone
    Sync Toolkit WinRT / Phone - Only Database Sync, is got bad documentation and unknown if supported on Desktop
    Live SDK - Libraries to integrate with OneDrive, Only File Sync
    Questions:
    Does Azure support all the devices?
    Is Azure supported in  C# Windows 8.1 Store Apps?
    Is Azure suited to host a service I described?
    Thanks in advanced!

    Hi JelteV,
    Thanks for posting!
    Base on my experience, if you wan to synchronize data with each clients. I suggest you could refer to this solution:
    1.Create a Sql Azure Database or storage account for storing your data 
    2.Create a WCF service (web role or work role ) for communication between Client and Database
    3.Set Up Table Structure (Important). I suggest you could add the deviceID and userID to distinguish the different data source. And add fields such as 'status', 'create time', 'latest update time' and so on.
    For example, you client insert a record into local database and set the 'status' as ‘stay update’ or '1'. When your client connect the database and synchronize the data to server, you could set the 'status' as 'updating' or '2' . After
    synchronization  data, you could change the status as 'updated' or '3'.
    According to this idea, the client CRUD -> change the local state code
    -> Sync data -> change the local state code ->
    synchronization is complete -> change the local state code .If the mobile device need operate the data on the service , it also need to change the server status code to be updated, to be deleted (deleted should
    be treated differently), the next time the client login server automatically checks the "state" as "pending action" and then synchronize the server to the client. So whether it is operating on a local table, or on the side of the direct
    operation of the service, you can ensure that the data is synchronized two tables.
    >>Does Azure support all the devices?
    >>Is Azure supported in  C# Windows 8.1 Store Apps?
    >>Is Azure suited to host a service I described?
    From your question, I think you could create a WCF service host on azure, and call WCF service form different devices. And this method is supported the different device and win8.1 store app.
    Also, please see this thread:
    http://stackoverflow.com/questions/14595738/net-data-synchronization-between-multiple-clients-and-a-central-server
    Hope this helps.
    Regards,
    Will
    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.

  • Inserting Metadata events in a live stream using non-flash client app

    Hi all,
    I wish to insert captions into a live flash video stream.
    I found an example here : http://www.adobe.com/devnet/flashmediaserver/articles/metadata_video_streaming_print.html
    but this example uses a Flash client app wich can invoke something like
    video_nc.call("sendDataEvent",null,inputfield_txt.text);
    How can do this without any Flash client/environment ? (I of course still use an FMS 3.5)
    I would like to use a python (or php...whatever) piece of code to extract caption from VBI in the incoming video stream and insert it in the flash stream.
    Any help / experience appreciated.
    Regards
    Michel

    Well, I'll ask it a different way :
    Is there any documentation on the protocol used between Flash client and FMSI so that I can  "fake" the flash client using php ?
    Is there a way to call sendDataEvent function on the FMSI NOT using a Flash client ?
    Thanks
    Regards

  • Link to document not opening document in browser or client app

    hi All,
    i am using office 365 e1, i have aspx page on which we are fetching link of document and showing using CSOM. when user click on link instead of opening in client app or browser it is downloading. 
    if you have solution please help me

    Hi,
    According to your description, you want to open document link in client app or browser.
    You need to active the “Open Documents in Client Applications by Default” feature.
    I suggest you do as the followings:
    1. Open “Site Settings”->”
    Site Collection Features”.
    2. Active the “Open Documents in Client Applications by Default” feature.
    I did a test in my environment, here is a screen capture below:
    http://tinypic.com/r/f05egm/8
    Do you mean that it will download file or just an open alert in the browser after you click the document link ?
    Please provide your detailed information such as screen capture, it will be easier for us  to find the solution of the issue.
    More information about open documents link in client app, please refer:
    http://technet.microsoft.com/en-us/library/ee837425(v=office.15).aspx
    Best regards

  • Java 7 Update 25 Client App Downloaded From Web Start Can't Connect Out

    Since Java 7 update 25, I have an issue where my client Java application, downloaded with Java Web Start, can no longer connect to a remote server. (The client uses remote EJB to connect various servers). The issue I believe is that the client application is being blocked by security features of this Java update.
    A very quick (random?) fix around the problem is to show the Java console. If the Java console is enabled to be shown, the client application can connect fine.
    Although showing the Java console is a quick fix, it's not one we particularly want to keep asking customers to do. I understand we may need to define the Codebase and Permissions in the manifest file as described here: http://docs.oracle.com/javase/7/docs/technotes/guides/jweb/no_redeploy.html..
    I have defined the Codebase and Permissions in the manifest of the client jar's we build ourselves. I believe this has worked as we no longer see "Missing Codebase manifest attribute for...." in the console for our own jar's. However, the application still cannot connect out. I'm stumbling around somewhat on this issue and trying various things in an attempt to get this to work. Assuming i'm on the right lines and the problem is some jars missing the Codebase and Permissions in their manifests, my question is, should I and how can I modify the manifest of 3rd party jars to include this information? For example, the client app requires many JBoss and EJB client jars - do I need to somehow modify the manifest of all of these jars to include the codebase and permissions?
    It goes without saying that all the jars are signed - the application would not start at all if there was a problem here. So the application starts with it's login box - but it simply cannot connect out to the servers.
    If anybody can offer any help on this issue i'd be most grateful. As a quick fix, is there a way to get this to work via adjusting Control Panel settings (other than showing the console)? I have played with a lot but not stumbled on a way to get this to work other than showing the console, although ideally i'd like to be able to get this to work without having to do any tweaks to clients Java control panel.

    We're also seeing this. The 7u25 update completely derailed a trial program we were conducting, because no one could log in to our application via WebStart once they upgraded Java.
    Our login code crashes because SwingUtilities.isEventDispatchThread() throws an NPE.
    We tried theskad81's fix but it didn't work for us. We worked around the issue by hosting u21 on our site and pointing our WebStart page there instead of at Oracle's update site.
    *** ORACLE: PLEASE FIX THIS ISSUE USING APPLE'S FIX (mentioned in an earlier post - see above) ***
    Slightly edited stack trace:
         javax.security.auth.login.LoginException: java.lang.NullPointerException
        at sun.awt.SunToolkit.getSystemEventQueueImplPP(Unknown Source)
        at sun.awt.SunToolkit.getSystemEventQueueImplPP(Unknown Source)
        at sun.awt.SunToolkit.getSystemEventQueueImpl(Unknown Source)
        at java.awt.Toolkit.getEventQueue(Unknown Source)
        at java.awt.EventQueue.isDispatchThread(Unknown Source)
        at javax.swing.SwingUtilities.isEventDispatchThread(Unknown Source)
        at com.abc.ConsoleAuthUI.handle(ConsoleAuthUI.java:43)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
        at java.lang.reflect.Method.invoke(Unknown Source)
        at sun.rmi.server.UnicastServerRef.dispatch(Unknown Source)
        at sun.rmi.transport.Transport$1.run(Unknown Source)
        at sun.rmi.transport.Transport$1.run(Unknown Source)
        at java.security.AccessController.doPrivileged(Native Method)
        at sun.rmi.transport.Transport.serviceCall(Unknown Source)
        at sun.rmi.transport.tcp.TCPTransport.handleMessages(Unknown Source)
        at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run0(Unknown Source)
        at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(Unknown Source)
        at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
        at java.lang.Thread.run(Unknown Source)
        at sun.rmi.transport.StreamRemoteCall.exceptionReceivedFromServer(Unknown Source)
        at sun.rmi.transport.StreamRemoteCall.executeCall(Unknown Source)
        at sun.rmi.server.UnicastRef.invoke(Unknown Source)
        at java.rmi.server.RemoteObjectInvocationHandler.invokeRemoteMethod(Unknown Source)
        at java.rmi.server.RemoteObjectInvocationHandler.invoke(Unknown Source)
        at com.sun.proxy.$Proxy1.handle(Unknown Source)
        at com.abc.ms.rmi.MsLogin$1.handle(MsLogin.java:100)
        at javax.security.auth.login.LoginContext$SecureCallbackHandler$1.run(Unknown Source)
        at javax.security.auth.login.LoginContext$SecureCallbackHandler$1.run(Unknown Source)
        at java.security.AccessController.doPrivileged(Native Method)
        at javax.security.auth.login.LoginContext$SecureCallbackHandler.handle(Unknown Source)
        at com.abc.ms.auth.abcLoginModule.login(abcLoginModule.java:35)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
        at java.lang.reflect.Method.invoke(Unknown Source)
        at javax.security.auth.login.LoginContext.invoke(Unknown Source)
        at javax.security.auth.login.LoginContext.access$000(Unknown Source)
        at javax.security.auth.login.LoginContext$4.run(Unknown Source)
        at javax.security.auth.login.LoginContext$4.run(Unknown Source)
        at java.security.AccessController.doPrivileged(Native Method)
        at javax.security.auth.login.LoginContext.invokePriv(Unknown Source)
        at javax.security.auth.login.LoginContext.login(Unknown Source)
        at com.abc.ms.rmi.MsLogin.authenticate(MsLogin.java:111)
        at com.abc.ms.rmi.MsLogin.login(MsLogin.java:92)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
        at java.lang.reflect.Method.invoke(Unknown Source)
        at sun.rmi.server.UnicastServerRef.dispatch(Unknown Source)
        at sun.rmi.transport.Transport$1.run(Unknown Source)
        at sun.rmi.transport.Transport$1.run(Unknown Source)
        at java.security.AccessController.doPrivileged(Native Method)
        at sun.rmi.transport.Transport.serviceCall(Unknown Source)
        at sun.rmi.transport.tcp.TCPTransport.handleMessages(Unknown Source)
        at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run0(Unknown Source)
        at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(Unknown Source)
        at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
        at java.lang.Thread.run(Unknown Source)
        at javax.security.auth.login.LoginContext.invoke(Unknown Source)
        at javax.security.auth.login.LoginContext.access$000(Unknown Source)
        at javax.security.auth.login.LoginContext$4.run(Unknown Source)
        at javax.security.auth.login.LoginContext$4.run(Unknown Source)
        at java.security.AccessController.doPrivileged(Native Method)
        at javax.security.auth.login.LoginContext.invokePriv(Unknown Source)
        at javax.security.auth.login.LoginContext.login(Unknown Source)
        at com.abc.ms.rmi.MsLogin.authenticate(MsLogin.java:111)
        at com.abc.ms.rmi.MsLogin.login(MsLogin.java:92)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
        at java.lang.reflect.Method.invoke(Unknown Source)
        at sun.rmi.server.UnicastServerRef.dispatch(Unknown Source)
        at sun.rmi.transport.Transport$1.run(Unknown Source)
        at sun.rmi.transport.Transport$1.run(Unknown Source)
        at java.security.AccessController.doPrivileged(Native Method)
        at sun.rmi.transport.Transport.serviceCall(Unknown Source)
        at sun.rmi.transport.tcp.TCPTransport.handleMessages(Unknown Source)
        at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run0(Unknown Source)
        at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(Unknown Source)
        at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
        at java.lang.Thread.run(Unknown Source)
        at sun.rmi.transport.StreamRemoteCall.exceptionReceivedFromServer(Unknown Source)
        at sun.rmi.transport.StreamRemoteCall.executeCall(Unknown Source)
        at sun.rmi.server.UnicastRef.invoke(Unknown Source)
        at java.rmi.server.RemoteObjectInvocationHandler.invokeRemoteMethod(Unknown Source)
        at java.rmi.server.RemoteObjectInvocationHandler.invoke(Unknown Source)
        at com.sun.proxy.$Proxy0.login(Unknown Source)
        at com.abc.abc.ui.console.Main.attemptLogin(Main.java:488)
        at com.abc.abc.ui.console.LoginDialog$7.run(LoginDialog.java:182)
        at com.abc.util.GrayTimer$GrayTimerTaskWrapper.run(GrayTimer.java:84)
        at java.util.TimerThread.mainLoop(Unknown Source)
        at java.util.TimerThread.run(Unknown Source)

  • Tips on localizing rich client apps

    We are currently using a properties resource file with around 1200 lines of localized
    messages/text. There is also an ApplicationResource class which contains string constants corresponding to the keys in the language file.
    -- client_en_US.properties --
    table.column.name=Name
    table.column.address=Address
    ApplicationResources.class
    public static final String TABLE_COLUMN_NAME="table.column.name";
    public static final String TABLE_COLUMN_ADDRESS="table.column.address";
    -- client app --
    ApplicationResources.getResources().getText(ApplicationResources.TABLE_COLUMN_NAME);
    The biggest disadvantage with this solution is that the ApplicationResources class gets very big and consumes quite a lot of memory, you'll end up with a string instance for each text that you want to localize. The advantage is that client devs don't have to look into the properties file for the proper key name instead they can use code completion(eclipse etc) and use the constant defined to get localized text. We also minimize runtime errors when property names are not found.
    We don't have any restrictions on the memory on the client side but I feel that this solution is definetly not very optimal and quite "ugly".
    Any suggestions on how to do this "properly"?

    The biggest disadvantage with this solution is that the ApplicationResources class gets very big
    and consumes quite a lot of memory, you'll end up with a string instance for each text that you
    want to localize.Actually, you don't create any string instances that you wouldn't otherwise create. Further, the class consumes disk space but not necessarily memory, because the static final fields are inlined into the classes which use them, so if they're the only members of the class there's no reason for it to be loaded.
    I feel that this solution is definetly not very optimal and quite "ugly".There aren't any nice ways of doing this, because you have to have some duplication. Your way of doing it is no worse than any other I've seen.
    If you really want to be sure that you don't hit runtime issues, my advice would be to write a model checker to put into your build process which scans the bytecode for calls to getText, asserts that the parameter is a constant string, and scans the properties files to ensure each has an entry with that string as its key.

  • Session tracking in java client app...*not jsp or servlets*

    Does anyone know of a way to keep a property accessible throughout a user session in a Java app? I'm writing a Java native client app with Apache Axis to access remote .NET services (web services). The service issues a session ticket upon login to implement security...this ticket needs to be accessible to all objects in the client app. In addition, this ticket needs to be "renewed" every 10 minutes or so.
    Any ideas on how to keep this ticket througout the session? And on how to update/renew every 10 minutes?
    ANY help would be appreciated Still relatively new to java...

    Hello.
    I use the following scenario in my project.
    User login to the web application then servlet keeps user data (IP-address, login name, etc) and creates a user ticket with the data. User ticket looks like a XML-element. After that I store the ticket to the Xindice DB.
    http://xml.apache.org/xindice/
    Xindice client API provides the useful methods for the ticket handling (read, update, delete).

  • Recording a thick java client app

    Can eTester record a thick java client application? I've tried using proxy but that doesn't appear to work.

    James
    eTester can record thick client app HTTP requests, you should use:
    A external proxy recorder:
    - Options -> Current Script -> Recording -> Proxy and select record navigations in a external application.
    - Remove the ;application/* from the exclude statement
    - Set the proxy of the thick Java app to point to, localhost on port 7777
    If the thick java app is a Java Applet you will need to set the JVM to point to the porxy at locahost 7777 to do so:
    - Start -> Control Panel -> Double click on Java -> under the general tab select network settings, select use proxy server and enter the proxy settings.
    Happy recording !!!!
    Alex
    Edited by: aamat on Dec 10, 2008 9:42 AM
    Edited by: aamat on Dec 10, 2008 9:43 AM

  • Not having Torrent client apps in blackberry App World

    BlackBerry App World Not having any torrent client apps so when we expect torrent apps been listed in blackberry App World 

    9RAY wrote:
    They don't allow to publish torrent application. Use another appstore.
    Playbook only support App World. app store is for ithings and not compatable.
    You can side load an andriod app of a torrent client though.
    Click here to Backup the data on your BlackBerry Device! It's important, and FREE!
    Click "Accept as Solution" if your problem is solved. To give thanks, click thumbs up
    Click to search the Knowledge Base at BTSC and click to Read The Fabulous Manuals
    BESAdmin's, please make a signature with your BES environment info.
    SIM Free BlackBerry Unlocking FAQ
    Follow me on Twitter @knottyrope
    Want to thank me? Buy my KnottyRope App here
    BES 12 and BES 5.0.4 with Exchange 2010 and SQL 2012 Hyper V

  • Client apps accessing WL 6 services

    Hi All
    This is an addendum to the question I posted :
    Subject: External clients accessing WL(4.5.1 SP13) JNDI
    Date: Thu, 15 Feb 2001 14:07:38 -0500
    (BTW, I heard from only one person till now).
    I would repeat the question. We all have clients (applications) which
    would want to make use of our services (beans, etc). How are they able
    to access the Weblogic server's JNDI space?
    Only by having WLInitialCtxFactory and other related classes in their
    classpath??
    If that IS the case, isnt it defeating the purpose of using JNDI. Where
    is the transparency of location here. Looks like I still need to bundle
    Weblogic server classes to my clients (how many ever they may be).
    Support says there was no other way in WL 4.5.1. Is it any different in
    WL 6?
    If there is another way people are dealing with this situation, I would
    be grateful if you can reply to this post.
    Thanks
    Madhu
    (PS Weblogic engineers, please respond to this)

    Hi
    I wish there was a way that one could access using ANY JNDI implementation
    PROVIDED the credentials could be verified within the Weblogic security
    realm.
    Then I could ask the client to use SUN/Netscape or any other vendor's
    implementation and give the client a generic guest kind of credentials.
    What would be the issues involved if this were to happen?
    In our situation, the client might be another team hosting their own
    applications on Websphere or SilverStream and I cannot ask them to load up
    WL classes too. You know how it works.
    Thanks
    Madhu
    Daniel Hoppe wrote:
    Hi,
    for WL5.1 there is a fourth approach which needs careful investigation
    to work properly but which is successfully used with Java Webstart
    within our development team. I guess this will work for WL6.0 in a
    similar manner. We use java -verbose and utils.verboseToZip to extract
    only the classes needed into one wl specific jar. The advantage is that
    there is an overal jar of about 2MB, so it's realistic to distribute
    from ISDN connections onwards. The disadvantage is that you need to
    follow every code line of your application very carefully - especially
    error situations - to get all the necessary classes.
    Daniel
    -----Original Message-----
    From: K.J. van der Bent [mailto:[email protected]]
    Posted At: Tuesday, February 27, 2001 11:29 PM
    Posted To: jndi
    Conversation: Client apps accessing WL 6 services
    Subject: Re: Client apps accessing WL 6 services
    Yes, dealing with the same problem.
    At the moment we think that there are three strategies:
    1. Deploy all WL classes on the client (weblogicaux, current
    servicepack-jar
    and a jar containing the complete classes directory). This takes about
    20
    MB. Since we will use Java Web Start for deploying our applications we
    install this 'weblogic bundle' along with the installation of JWS. From
    then
    on, only the servicepack jar (~2 MB) will be updated on the server and
    therefore downloaded by JWS to the client. It's not an ideal situation
    but
    it allows 'quick and easy' developing
    2. A second approach is to develop applets and use the plugin to execute
    them on the client. The plugin allows single class loading (JWS only
    loads
    jars!) and requests for a class only when it is needed. This way you
    don't
    need 20 MB of jars on the client but still many weblogic classes are
    loaded.
    (And aren't we tempted to use Java Web Start instead of applets embedded
    in
    a browser!)
    3. The third approach we are currently looking into is develop an
    application totally independent of Weblogic (Thus, no
    WLInitialCtxFactory).
    Disadvantages are that you can't use some of the benefits of WL (like
    optimized t3 connections and maybe easier developing). Advantage however
    is
    that our applications are independent of the type of application server.
    Briefly this is where we are now. We were also a little discouraged
    while
    browsing the newsgroups and noticing that this seems to be an issue for
    many
    developers.
    Maybe someday...
    K.J. van der Bent

  • SAPINST guiengine: login timeout; the client was unable to  establish valid

    sapinstGUI cannnot connect to sapinst. 
    Message :
    <b>guiengine: login timeout; the client was unable to establish a valid connection</b>
    The GUI with selectable install components never shows
    Any idea?  
    I have been trying a lot of alternatives , and did quite some internet investigations, but to no avail.
    <b>Details :</b>
    WIN2003 SP1 with latest patches
    All Firewalling turned off
    sapinst 701  (as provided with Sol Mgr 4.0 ; ERP2005)
    java 1.4.2.12.  JAVA_HOME set to c:\j2sdk1.4.2_12  c:\j2sdk1.4.2_12\bin added to PATH
    <b>Step 1 : Start sapinst without GUI</b>... it gives these messsages
    <i>SAPinst is getting started.
    Please be patient ...
    starting gui server process:
      sapinstport: 21200
      guiport    : 21212
      guistart   : false
      command    : "c:\j2sdk1.4.2_12/bin\javaw.exe" -cp "C:/DOCUME1/ADMINI1/LOCALS1/Temp/sapinst_exe.2156.1168127928\jar\instgui.jar;C:/DOCUME1/ADMINI1/LOCALS1/Temp/sapinst_exe.2156.1168127928\jar\inqmyxml.jar" -Xmx256M -Dsun.java2d.noddraw=true SDTServer config=jar:sdtserver.xml guiport=21212 sapinsthost=localhost sapinstport=21200
    load resource pool F:\51031659_11\DVD_4.0_SAP_Solution_Manager_Inst_Master\IM_WINDOWS_I386\resourcepool.xml
    guiengine: no GUI connected; waiting for a connection on host amms, port 21200 to continue with the installation</i>
    netstat -a shows a.o. ....
    <i>Active Connections
      Proto  Local Address          Foreign Address        State
      TCP    amms:epmap             amms:0                 LISTENING
      TCP    amms:microsoft-ds      amms:0                 LISTENING
      TCP    amms:1026              amms:0                 LISTENING
      TCP    amms:21200             amms:0                 LISTENING
      TCP    amms:21212             amms:0                 LISTENING</i>
    looks fine to me.
    <b>Step 2 : start startinstgui ...</b>
    messages in startinstgui window
    <i>Java Runtime found in JAVA_HOME environment variable
      Path: c:\j2sdk1.4.2_12\bin\java.exe
    Start mode: gui (GUI only)
    Connection parameters:
      GUIServer host: localhost
      GUIServer port: 21212
    Starting...
    <<< frog.jar: version 5.4.5  10/19/05  sap.theme: null >>></i>
    messages in sapinst window :
    <i>guiengine: login in process...............................
    guiengine: login timeout; the client was unable to establish a valid connection
    Exit status of child: 1</i>
    The startinstgui terminates.
    netstat -a reveals no lines anymore for the ports.
    NOTE...  when I start sapinst <b>with</b> GUI  then the same sequence of messages.
    BUT even after the sapinst is terminated netstat -a shows
    TCP    amms:1230              amms:21212             ESTABLISHED
    TCP    amms:1231              amms:21200             ESTABLISHED
    TCP    amms:21200             amms:1231              ESTABLISHED
    TCP    amms:21212             amms:1230              ESTABLISHED
    I cannot get rid of those and need to reboot.

    Hi bart,
    I'm wondering about the output of sapinst.exe ->  "guistart : false"
    When I'm starting sapinst.exe, I'll get following output:
    SAPinst is getting started.
    Please be patient ...
    starting gui server process:
      sapinstport: 21200
      guiport    : 21212
      guistart   : true
      command    : "C:\j2sdk1.4.2_12/bin\javaw.exe" -cp "C:/WINDOWS/TEMP/1/sapinst_exe.7184.1168268864\jar\instgui.jar;C:/WINDOWS/TEMP/1/sapinst_exe.7184.1168268864\jar\inqmyxml.jar" -Xmx256M -Dsun.java2d.noddraw=true SDTServer config=jar:sdtserver.xml guiport=21212 sapinsthost=localhost sapinstport=21200 guistart=true
    load resource pool F:\inst\IM_WINDOWS_I386\resourcepool.xml
    guiengine: no GUI connected; waiting for a connection on host sapphirbwp, port 21200 to continue with the installation
    guiengine: login in process.
    Try to run sapinst from command line with parameter SAPINST_START_GUI set to true
    (e.g. sapinst "SAPINST_START_GUI=true").
    With sapinst -p you will get all possible parameters of sapinst (often usefull e.g. if you need to change port and don't know how).
    Regards
    Daniel

  • Accessing wsdl to build a web svcs client app

    We are users of WebLogic 8.1 but have hit an embarrassing impasse. We were demonstrating
    how good it was using web services by deploying a service and using each of the
    leading market tools to build a client app dynamically by just pointing the tool
    at the published wsdl doc.
    We hit a brick wall trying to do this with WLW.
    For example in 3 mins in both JBuilderX & WebSphereAD5.1 we could tell the tool
    we wanted to build a Web Service THEN WE SELECT 'CLIENT', provide a URL to where
    the *.wsdl for the service is, then generate the code and test the functions published.
    Three experts at work (self included) just can't figure out how to even get started
    when attempting this with WLW. The help in WLW is as below ...
    Creating a Web Service Control from a WSDL File
    This procedure describes how to create a Web Service control if you have a WSDL
    file for the target web service.
    Ensure that the WSDL file for the web service is in your project.
    Browse to the WSDL file in the Application pane.
    Right-click on the WSDL file in the Application pane and select Generate JCX.
    None of us could achieve this.
    Any pointers to if this (dynamic build by pointing to wsdl URL) can be done at
    all will be much appreciated. If not we know which tools to adopt.
    Cheers
    Doug Marker

    Not a problem, I hope you have success with it. There's nothing like
    popping up workshop and dropping in a control to talk with a web service in
    like two minutes flat, I've found that has a nice profound affect when doing
    demos. I also personally try to find a web service written in dot net or
    perl or something totally opposite of J2EE which shows not only speed and
    ease of creation but complete interoperability as well :)
    "Doug Marker" <[email protected]> wrote in message
    news:[email protected]...
    >
    Ryan,
    Many thanks for your post. Will be trying this today. I have sommitted todo
    a live demo within a couple of weeks & want to be 100% sure that myself &other
    demonstrators can show how easy this process is.
    As a demo, it sure gets peoples attention.
    Cheers
    Doug Marker
    "ryan upton" <ryanjupton at learningvoyage dot com> wrote:
    Doug,
    You're thinking is correct in that it should be easy to do this in
    Workshop
    and in fact it is. Grab a WSDL file from somewhere like xmethods.com
    if you
    don't have an internal repository containing your own services. I assume
    you want to incorporate the service into a page flow? Open the .jpf,
    under
    data palette->controls->add select web service. In the wizard that pops
    up
    select a reference variable name in step one. In step two decidewhether
    you want to use an existing .jcx or create a new one (it sounds like
    you're
    going to want to create a new one) In step three enter the uri for the
    WSDL, click create and you're almost done. The only thing left is to
    call
    the methods of the web service and incorporate the results somewhere
    in you
    control or presentation. One cool thing that Workshop does is to provide
    the ability to automagically create a pageflow from the .jcx control,
    simply
    right click the control you've created, select generate pageflow and
    follow
    the wizard. Of course this is good for demos and you'll probably want
    to
    tweak it for real development work :)
    ~RU
    "Doug Marker" <[email protected]> wrote in message
    news:[email protected]...
    We are users of WebLogic 8.1 but have hit an embarrassing impasse.We
    were demonstrating
    how good it was using web services by deploying a service and usingeach
    of the
    leading market tools to build a client app dynamically by just pointingthe tool
    at the published wsdl doc.
    We hit a brick wall trying to do this with WLW.
    For example in 3 mins in both JBuilderX & WebSphereAD5.1 we could tellthe
    tool
    we wanted to build a Web Service THEN WE SELECT 'CLIENT', provide aURL to
    where
    the *.wsdl for the service is, then generate the code and test thefunctions published.
    Three experts at work (self included) just can't figure out how toeven
    get started
    when attempting this with WLW. The help in WLW is as below ...
    Creating a Web Service Control from a WSDL File
    This procedure describes how to create a Web Service control if youhave a
    WSDL
    file for the target web service.
    Ensure that the WSDL file for the web service is in your project.
    Browse to the WSDL file in the Application pane.
    Right-click on the WSDL file in the Application pane and select
    Generate
    JCX.
    None of us could achieve this.
    Any pointers to if this (dynamic build by pointing to wsdl URL) canbe
    done at
    all will be much appreciated. If not we know which tools to adopt.
    Cheers
    Doug Marker

  • Mac Client App Request/Suggestion

    Have an app request/suggestion I'd really like implemented into the Mac Client App. Would really like to be able to "Wake-on-Lan" computers.  I can do this on my iOS device but if I'm on my laptop/desktop I'm forced to go to the web interface.  This is just more time consuming. Thanks LogMeIn!-Tim

    Hey Phorden10,
    Could you use the current case system, and add a form to the display of the last case, so the reply is actually a new case?
    I remember there was a tutorial on making a web app as a voting system, and you could get notified when your request was replied to. You might be able to use some of the information from that. It was the BC Wishlist from a few years ago. I don't think they use it any more, but I guess a search for 'web app wishlist' might find the instructions on how they build it.
    Good luck
    Brendan

Maybe you are looking for