Simple question here.......

Hi all,
i have an simple question here, might be stupid...
once a user makes a http connection to web sever, how can server send message to client upon some events happened so that the client can update the latest things and do not need to click Refresh button in browser explicitly.
Thanks for any clue..

I don't think you can. After a client gets the response from the server the connection closes. That is the whole concept behind the client/server relationship used by web servers.
The closest thing you can do is have the client timed to reopen the connection (basically automatically click the refresh button) at set intervals.

Similar Messages

  • SIMPLE QUESTION: LYNC 2010 -- AVAYA CS1000 DIRECT SIP: IS THAT POSSIBLE? PLEASE HELP!

    Hello,
    I would like to ask really simple question here: is that possible to establish (configure, setup, create, make etc.) a direct SIP connection between LYNC 2010 and AVAYA CS1000 PBX. On one side I have Lync 2010 Standard Edition acting as Front-End Server
    with co-located Mediation Server. On another side I have AVAYA CS1000 IP PBX Version 7.0. We are trying to make this happen for 1 full year with no luck. The issue is that we do not manage our PBX (external company does).
    Here is what we are basically trying to achieve:
    All I want is that basically LYNC user (phone # 5678) can dial PBX user (phone # 1234) and talk. Also PBX user can call LYNC user and they can talk. I'm pretty sure that all I'm asking is very simple thing. I don't expect magic to happen (e.g. when one user
    calls another user the world will change). All I want is to be able to call between LYNC and PBX users so they can talk.
    Sorry for repeating again but here is my simple question: can direct SIP (or call it SIP trunk if this is the right word) be established so LYNC and PBX users can call each other and talk. Whatever protocol is (G.711, G.722 etc.) I will be happy.
    If you can let me know I would very much appreciate this. I'm sure I'm not alone in this world and many companies out there using AVAYA CS1000 and deployed LYNC and probably have the same question so it may be helpful to other people as well.
    Thanks!

    Hi Thamara for reply. I can see where you are going, but the challenge here is that I have found many threads including in this forums from people who successfully connected CS1000 PBX to Lync 2010 for two-way calling, and even dual-forking (which I cannot
    even dream about at this time).
    If you go to AVAYA WEB site, you can find official AVAYA compatibility MATRIX that is available here:
    http://www.google.ca/url?sa=t&rct=j&q=avaya%20compatibility%20matrix%20lync&source=web&cd=1&ved=0CBwQFjAA&url=http%3A%2F%2Fsupport.avaya.com%2Fcss%2FP8%2Fdocuments%2F100135385&ei=v3-5TsXVKMLX0QGHpdSkCA&usg=AFQjCNG6cmW5izdOASMuW34b8iK0vWnwuw
    According to this document, only CS1000 version 7.5 supports Lync 2010 and only via ACE - starting first quarter of 2011 (which is done deal by now) - see below for details. The problem is that I have a hard time to understand the meaning of the word "Supported".
    I do not really need full support, all I want is to be able to call in both directions using 2 distinct numbers (e.g. 4 digits extensions) that are configured in both systems.
    Another thing is this ACE. Apparently it is a big monster software that you need to buy and pay big bucks and lots of configuration just to make it working. But I'm not even sure what will work. We do have one-way calling (from Lync to PBX) - it just does
    not work other way, and I have no idea why. I'm not sure if this cannot be working, or because it was not setup right. As I mentioned before we have no access and clue about IP PBX - this is one of my issue here. Withoul knowledge how it works on PBX side
    I cannot be sure what is causing this.
    So I was wondering if anybody in this world was able to connect CS1000 PBX to Lync and perform two-way calling using two systems.
    Thanks!
    Microsoft OCS 2010 Lync
    Supported (via ACE) - 1Q11

  • A simple question on random number generation?

    Hi,
    This is a rather simple question and shows my newbieness quite blatantly!
    I'm trying to generate a random number in a part of a test I have.
    So, I have a little method which looks like this:
    public int getRandomNumber(int number){
            Random random = new Random(number);
            return random.nextInt(number);
        }And in my code I do int random = getRandomNumber(blah)...where blah is always the same number.
    My problem is it always returns the same number. What am I missing here. I was under the impression that nextint(int n) was supposed to generate the number randomly!! Obviously I'm doing something wrong or not using the correct thing. Someone please point out my stupidity and point me in the right direction? Ta

    I think the idea is that Random will generate the same pseudo-random sequence over and over if you don't supply a seed value. (The better to debug with, my dear.) When you're ready to put an app into production, the seed value should be the current system time in milliseconds to guarantee a new sequence with each run.
    Do indeed move Random outside the loop. Think of it like a number factory - instantiate it once and let it pump out the random values for you as needed.

  • Load Balancing Directory Servers with Access Manager - Simple questions

    Hi.
    We are in the process of configuring 2 Access Manager instances (servers) accessing the same logical LDAP repository (comprising physically of two Directory Servers working together with Multi-Master Replication configured and tested) For doing this, we are following guide number 819-6258.
    The guide uses BigIP load balancer for load balancing the directory servers. However, we intend to use Directory Proxy Server. Since we faced some (unresolved) issues last time that we used DPS, there are some simple questions that I would be very grateful to have answers to:
    1. The guide, in section 3.2.10 (To configure Access Manager 1 with the Directory Server load balancer), talks about making changes at 4 places, and replacing the existing entry (hostname and port) with the load balancer's hostname and port (assuming that the load balancer has already been configured). It says that changes need not be made on Access Manager 2 since the LDAPs are in replication, and hence changes will be replicated at all places. However, the guide also states that changes have to be made in two files, namely AMConfig.properties, and the serverconfig.xml file. But these changes will not be reflected on Access Manager 2, since these files are local on each machine.
    Question 1. Do changes have to be made in AMConfig.properties and serverconfig.xml files on the other machine hosting Access Manager 2?
    Question 2: What is the purpose of putting these values here? Specifically, what is achieved by specifying the Directory server host and port in AMConfig.properties, as well as in serverconfig.xml?
    Question 3. In the HTTP console, there is the option of specifying multiple primary LDAP servers, as well as multiple secondary LDAP servers. What is the purpose of these? Are secondary servers attempted when none of the list in the primary list are accessible? Also, if there are multiple entries in the primary server list, are they accessed in a round robin fashion (hereby providing rudimentary load balancing), or are other servers accessed only when the one mentioned first is not reachable etc.?
    2. Since I do not have a load balancer setup yet, I tried the following deviation to the above, which, according to me, should have worked. If viewed in the HTTP console, LDAP / Membership / MSISDN and Policy configuration all pointed to the DS on host 1. When I changed all these to point to the directory server on host 2 (and made AMConfig.properties and serverconfig.xml on host 1 point to DS of host 2 as well), things should have worked fine, but apparently Access manager 1 could not be started. Error from Webserver:
    [14/Aug/2006:04:30:36] info (13937): WEB0100: Loading web module in virtual server [https-machine_1_FQDN] at [search]
    [14/Aug/2006:04:31:48] warning (13937): CORE3283: stderr: Exception in thread "EventService" java.lang.ExceptionInInitializerError
    [14/Aug/2006:04:31:48] warning (13937): CORE3283: stderr: at com.iplanet.services.ldap.event.EventServicePolling.run(EventServicePolling.java:132)
    [14/Aug/2006:04:31:48] warning (13937): CORE3283: stderr: at java.lang.Thread.run(Thread.java:595)
    [14/Aug/2006:04:31:48] warning (13937): CORE3283: stderr: Caused by: java.lang.InterruptedException
    [14/Aug/2006:04:31:48] warning (13937): CORE3283: stderr: at com.sun.identity.sm.ServiceManager.<clinit>(ServiceManager.java:74)
    [14/Aug/2006:04:31:48] warning (13937): CORE3283: stderr: ... 2 more
    In effect, AM on 1 did not start. On rolling back the changes, things again worked like previously.
    Will be really grateful for any help / insight / experience on dealing with the above.
    Thanks!

    Update to the above, incase anyone is reading:
    We setup a similar setup in Windows, and it worked. Here is a detailed account of what was done:
    1. Host 1: Start installer, install automatically, chose Directory server, Directory Administration server, Directory Proxy server, Web server, Access Manager.
    All installed, and worked fine. (AMConfig.properties, serverconfig.xml, and the info in LDAP service, all pointed to HOST1:389)
    2. Host 2: Start installer, install automatically, chose Directory server, Directory Administration server, Directory Proxy server, Web server, Access Manager.
    All installed, and worked fine. (AMConfig.properties, serverconfig.xml, and the info in LDAP service, all pointed to HOST2:389)
    3. Host 1: Started replication. Set to Master
    4. Host 2: Started replication. Set to Master
    5. Host 1: Setup replication agreement to Host 2
    6. Host 2: Setup replication agreement to Host 1
    7. Initiated the remote replica from Host 1 ----> Host 2
    Note that since default installation uses abc.....xyz as the encryption key, setting this to same was not an issue.
    9. Started webserver for Host 1 and logged into AM as amadmin.
    10. Added Host 2 FQDN in DNS Aliases / Realms
    11. Added http://HOST2_FQDN:80 in the Platform server (instance) list.
    12. Started Host 2 webserver. Logged in AM on Host 2, things worked fine.
    At this stage, note the following:
    a) Host 1:
    AMConfig.properties file has
    com.iplanet.am.directory.host=host1_FQDN
    and
    com.iplanet.am.directory.port=389
    serverconfig.xml has:
    <Server name="Server1" host="host1_FQDN" port="389" type="SIMPLE" />
    b) Host 2:
    AMConfig.properties file has
    com.iplanet.am.directory.host=host2_FQDN
    and
    com.iplanet.am.directory.port=389
    serverconfig.xml has:
    <Server name="Server1" host="host2_FQDN" port="389" type="SIMPLE" />
    c) If one logs into AM, and checks LDAP servers for LDAP / Policy Configuration / Membership etc services, they all contain Host2_FQDN:389 (which makes sense, since replica 2 was initialized from 1)
    Returning back to the configuations:
    13. On Host 1, login into the Admin server console of the Directory server. Navigate to the DPS, and confgure the following:
    a) Network Group
    b) LDAP servers
    c) Load Balancing
    d) Change Group
    e) Action on-bind
    f) Allow all actions (permit modification / deletion etc.).
    g) any other configuations required - Am willing to give detailed steps if someone needs them to help me / themselves! :)
    So now, we have DPS configured and running on Host1:489, and distributing load to DS1 and DS2 on a 50:50 basis.
    14. Now, log into AM on Host 1, and instead of Host1_fqdn:389 (for DS) in the following places, specify Host1_fqdn:489 (for the DPS)--
    LDAP Authentication
    MSISDN server
    Membership Service
    Policy configuation.
    Verified that this propagated to the Policy Configuration service and the LDAP authentication service that are already registered with the default organization.
    15. Log out of AM. Following the documentation, modify directory.host and directory.port in AMConfig.properties to point to Host 1_FQDN and 489 respectively. Make this change in AMConfig.properties of both Host 1 as well as 2.
    16. Edit serverconfig.xml on both hosts, and instead of they pointing to their local directory servers, point both to host1_FQDN:489
    17. When you start the webserver, it will refuse to start. Will spew errors such as:
    [https-host1_FQDN]: Sun ONE Web Server 6.1SP5 B06/23/2005 17:36
    [https-host1_FQDN]: info: CORE3016: daemon is running as super-user
    [https-host1_FQDN]: info: CORE5076: Using [Java HotSpot(TM) Server VM, Version 1.5.0_04] from [Sun Microsystems Inc.]
    [https-host1_FQDN]: info: WEB0100: Loading web module in virtual server [https-host1_FQDN] at [amserver]
    [https-host1_FQDN]: warning: WEB6100: locale-charset-info is deprecated, please use parameter-encoding
    [https-host1_FQDN]: info: WEB0100: Loading web module in virtual server [https-host1_FQDN] at [ampassword]
    [https-host1_FQDN]: warning: WEB6100: locale-charset-info is deprecated, please use parameter-encoding
    [https-host1_FQDN]: info: WEB0100: Loading web module in virtual server [https-host1_FQDN] at [amcommon]
    [https-host1_FQDN]: info: WEB0100: Loading web module in virtual server [https-host1_FQDN] at [amconsole]
    [https-host1_FQDN]: warning: WEB6100: locale-charset-info is deprecated, please use parameter-encoding
    [https-host1_FQDN]: info: WEB0100: Loading web module in virtual server [https-host1_FQDN] at [search]
    [https-host1_FQDN]: warning: CORE3283: stderr: netscape.ldap.LDAPException: error result (32); matchedDN = dc=sun,dc=com; No such object (DN changed)
    [https-host1_FQDN]: warning: CORE3283: stderr: Got LDAPServiceException code=-1
    [https-host1_FQDN]: warning: CORE3283: stderr: at com.iplanet.services.ldap.DSConfigMgr.getConnection(DSConfigMgr.java:357)
    [https-host1_FQDN]: warning: CORE3283: stderr: at com.iplanet.services.ldap.DSConfigMgr.getNewFailoverConnection(DSConfigMgr.java:314)
    [https-host1_FQDN]: warning: CORE3283: stderr: at com.iplanet.services.ldap.DSConfigMgr.getNewConnection(DSConfigMgr.java:253)
    [https-host1_FQDN]: warning: CORE3283: stderr: at com.iplanet.services.ldap.DSConfigMgr.getNewProxyConnection(DSConfigMgr.java:184)
    [https-host1_FQDN]: warning: CORE3283: stderr: at com.iplanet.services.ldap.DSConfigMgr.getNewProxyConnection(DSConfigMgr.java:194)
    [https-host1_FQDN]: warning: CORE3283: stderr: at com.iplanet.ums.DataLayer.initLdapPool(DataLayer.java:1248)
    [https-host1_FQDN]: warning: CORE3283: stderr: at com.iplanet.ums.DataLayer.(DataLayer.java:190)
    [https-host1_FQDN]: warning: CORE3283: stderr: at com.iplanet.ums.DataLayer.getInstance(DataLayer.java:215)
    [https-host1_FQDN]: warning: CORE3283: stderr: at com.iplanet.ums.DataLayer.getInstance(DataLayer.java:246)
    [https-host1_FQDN]: warning: CORE3283: stderr: at com.sun.identity.sm.ldap.SMSLdapObject.initialize(SMSLdapObject.java:156)
    [https-host1_FQDN]: warning: CORE3283: stderr: at com.sun.identity.sm.ldap.SMSLdapObject.(SMSLdapObject.java:124)
    [https-host1_FQDN]: warning: CORE3283: stderr: at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
    [https-host1_FQDN]: warning: CORE3283: stderr: at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
    [https-host1_FQDN]: warning: CORE3283: stderr: at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
    [https-host1_FQDN]: warning: CORE3283: stderr: at java.lang.reflect.Constructor.newInstance(Constructor.java:494)
    [https-host1_FQDN]: warning: CORE3283: stderr: at java.lang.Class.newInstance0(Class.java:350)
    [https-host1_FQDN]: warning: CORE3283: stderr: at java.lang.Class.newInstance(Class.java:303)
    [https-host1_FQDN]: warning: CORE3283: stderr: at com.sun.identity.sm.SMSEntry.(SMSEntry.java:216)
    [https-host1_FQDN]: warning: CORE3283: stderr: at com.sun.identity.sm.ServiceSchemaManager.(ServiceSchemaManager.java:67)
    [https-host1_FQDN]: warning: CORE3283: stderr: at com.iplanet.am.util.AMClientDetector.getServiceSchemaManager(AMClientDetector.java:219)
    [https-host1_FQDN]: warning: CORE3283: stderr: at com.iplanet.am.util.AMClientDetector.(AMClientDetector.java:94)
    [https-host1_FQDN]: warning: CORE3283: stderr: at com.sun.mobile.filter.AMLController.init(AMLController.java:85)
    [https-host1_FQDN]: warning: CORE3283: stderr: at org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFilterConfig.java:262)
    [https-host1_FQDN]: warning: CORE3283: stderr: at org.apache.catalina.core.ApplicationFilterConfig.setFilterDef(ApplicationFilterConfig.java:322)
    [https-host1_FQDN]: warning: CORE3283: stderr: at org.apache.catalina.core.ApplicationFilterConfig.(ApplicationFilterConfig.java:120)
    [https-host1_FQDN]: warning: CORE3283: stderr: at org.apache.catalina.core.StandardContext.filterStart(StandardContext.java:3271)
    [https-host1_FQDN]: warning: CORE3283: stderr: at org.apache.catalina.core.StandardContext.start(StandardContext.java:3747)
    [https-host1_FQDN]: warning: CORE3283: stderr: at com.iplanet.ias.web.WebModule.start(WebModule.java:251)
    [https-host1_FQDN]: warning: CORE3283: stderr: at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1133)
    [https-host1_FQDN]: warning: CORE3283: stderr: at org.apache.catalina.core.StandardHost.start(StandardHost.java:652)
    [https-host1_FQDN]: warning: CORE3283: stderr: at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1133)
    [https-host1_FQDN]: warning: CORE3283: stderr: at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:355)
    [https-host1_FQDN]: warning: CORE3283: stderr: at org.apache.catalina.startup.Embedded.start(Embedded.java:995)
    [https-host1_FQDN]: warning: CORE3283: stderr: at com.iplanet.ias.web.WebContainer.start(WebContainer.java:431)
    [https-host1_FQDN]: warning: CORE3283: stderr: at com.iplanet.ias.web.WebContainer.startInstance(WebContainer.java:500)
    [https-host1_FQDN]: warning: CORE3283: stderr: at com.iplanet.ias.server.J2EERunner.confPostInit(J2EERunner.java:161)
    [https-host1_FQDN]: failure: WebModule[amserver]: WEB2783: Servlet /amserver threw load() exception
    [https-host1_FQDN]: javax.servlet.ServletException: WEB2778: Servlet.init() for servlet LoginLogoutMapping threw exception
    [https-host1_FQDN]: at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:949)
    [https-host1_FQDN]: at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:813)
    [https-host1_FQDN]: at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:3478)
    [https-host1_FQDN]: at org.apache.catalina.core.StandardContext.start(StandardContext.java:3760)
    [https-host1_FQDN]: at com.iplanet.ias.web.WebModule.start(WebModule.java:251)
    [https-host1_FQDN]: at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1133)
    [https-host1_FQDN]: at org.apache.catalina.core.StandardHost.start(StandardHost.java:652)
    [https-host1_FQDN]: at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1133)
    [https-host1_FQDN]: at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:355)
    [https-host1_FQDN]: at org.apache.catalina.startup.Embedded.start(Embedded.java:995)
    [https-host1_FQDN]: at com.iplanet.ias.web.WebContainer.start(WebContainer.java:431)
    [https-host1_FQDN]: at com.iplanet.ias.web.WebContainer.startInstance(WebContainer.java:500)
    [https-host1_FQDN]: at com.iplanet.ias.server.J2EERunner.confPostInit(J2EERunner.java:161)
    [https-host1_FQDN]: ----- Root Cause -----
    [https-host1_FQDN]: java.lang.NullPointerException
    [https-host1_FQDN]: at com.sun.identity.authentication.UI.LoginLogoutMapping.init(LoginLogoutMapping.java:71)
    [https-host1_FQDN]: at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:921)
    [https-host1_FQDN]: at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:813)
    [https-host1_FQDN]: at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:3478)
    [https-host1_FQDN]: at org.apache.catalina.core.StandardContext.start(StandardContext.java:3760)
    [https-host1_FQDN]: at com.iplanet.ias.web.WebModule.start(WebModule.java:251)
    [https-host1_FQDN]: at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1133)
    [https-host1_FQDN]: at org.apache.catalina.core.StandardHost.start(StandardHost.java:652)
    [https-host1_FQDN]: at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1133)
    [https-host1_FQDN]: at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:355)
    [https-host1_FQDN]: at org.apache.catalina.startup.Embedded.start(Embedded.java:995)
    [https-host1_FQDN]: at com.iplanet.ias.web.WebContainer.start(WebContainer.java:431)
    [https-host1_FQDN]: at com.iplanet.ias.web.WebContainer.startInstance(WebContainer.java:500)
    [https-host1_FQDN]: at com.iplanet.ias.server.J2EERunner.confPostInit(J2EERunner.java:161)
    [https-host1_FQDN]:
    [https-host1_FQDN]: info: HTTP3072: [LS ls1] http://host1_FQDN:58080 [i]ready to accept requests
    [https-host1_FQDN]: startup: server started successfully
    Success!
    The server https-host1_FQDN has started up.
    The server infact, didn't start up (nothing even listening on 58080).
    However, if AMConfig.properties is left as it originally was, and only serverconfig.xml files were changed as mentioned above, web servers started fine, and things worked all okay. (Alright, except for some glitches when viewed in /amconsole. If /amserver/console is accessed, all is good. Can this mean that all is still not well? I am not sure).
    So far so good. Now comes the sad part. When the same is done on Solaris 9, things dont work. You continue to get the above error, OR the following error, and the web server will refuse to start:
    Differences in Solaris and Windows are as follows:
    1. Windows hosts have 1 IP and hostname. Solaris hosts have 3 IPs and hostnames (for DS, DPS, and webserver).
    No other difference from an architectural perspective.
    Any help / insight on why the above is not working (and why the hell does the documentation seem so sketchy / insecure / incorrect).
    Thanks a bunch!

  • Very simple question, how do you configure windows 8.1 to use a SF card as the default install location for software applications?

    Very simple question, how do you configure windows 8.1 to use a SD card / external drive as the default install location for software applications? Primarily interested in apps installed from the windows store. This should be available in the settings
    charm within the windows store. This must have been overlooked in the development of windows 8.1 or is a bug.
    Regards, Bill
    * update
    I've tried modifying this key and the path:
    “HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Appx”
    http://answers.microsoft.com/en-us/windows/forum/windows_8-windows_store/how-do-you-install-apps-in-windows-8-from-the/c4fbe2a8-fd3d-41c1-b9a6-6f881eed374f
    Also tried using symlinks as detailed here:
    http://social.technet.microsoft.com/Forums/windows/en-US/8eee52c2-db0f-4032-8c72-7cd999e8b41a/windows-8-apps-installing-to-secondary-drive?forum=w8itprogeneral

    Here's some links I've used to try to figure this out:
    http://social.technet.microsoft.com/Forums/windows/en-US/2dfc0cd9-7d1b-41de-abce-e03fb6a5a383/metro-apps-not-working-in-windows-8-pro-x64-after-moving-users-and-programdata-folders?forum=w8itproinstall
    http://social.technet.microsoft.com/Forums/windows/en-US/8eee52c2-db0f-4032-8c72-7cd999e8b41a/windows-8-apps-installing-to-secondary-drive?forum=w8itprogeneral
    http://social.technet.microsoft.com/Forums/windows/de-DE/f5e33ac9-beab-4b99-b3ca-7cb5e6f415e4/how-do-you-change-metro-apps-default-install-location?forum=w8itprogeneral
    Regards, Bill
    The registry method does not work with 8.1.  I found this out the hard way.  Doing it on 8.1 will leave you reinstalling the OS if you didn't do a SRP beforehand.

  • This is a very simple question,but I don't know.Please me.Thank you!

    I am a Chinese student in a university.I have a very simple question to ask.
    I have writed a EJB module,and I have deployed to Weblogic8.1 successfully.
    1.Now I want to write a client program.Is it necessary that the client program is packaged in the EJB package.For example ,the EJB package is Beans,is "package Beans " or "import Beans.*" necessary in my client program.
    2.If I only know the EJB interfaces,that means the EJB module is writed by other programer.I want to know how I can write the client program.How can I call EJB module's method writed by other programer.Could you give me a simple example?
    Thank you very much.

    I have writed a EJB module,and I have deployed to
    Weblogic8.1 successfully.:-)
    1.Now I want to write a client program.Is it
    necessary that the client program is packaged in the
    EJB package.For example ,the EJB package is Beans,is
    "package Beans " or "import Beans.*" necessary in my
    client program.You need not package your client with the EJB. It can be a JSP/servlet or a stand-alone application.
    2.If I only know the EJB interfaces,that means the
    EJB module is writed by other programer.I want to
    know how I can write the client program.How can I
    call EJB module's method writed by other
    programer.Could you give me a simple example?
    import java.util.*;
    import javax.naming.*;
    import javax.rmi.PortableRemoteObject;
    import examples.*;
    class TestEJBHello {
        public static void main(String[] args) {
            Context context   = null;
            Object object     = null;
            // Hashtable for environment properties.
            Hashtable env = new Hashtable();
            env.put(Context.INITIAL_CONTEXT_FACTORY, "weblogic.jndi.WLInitialContextFactory");
            env.put(Context.PROVIDER_URL, "t3://localhost:7001");
            HelloHome home            = null;
            HelloWorld hello          = null;
            try {
                context     = new InitialContext(env);
                object      = context.lookup("HelloWorldTest");
                System.out.println(" JNDI Looked up >>> " +object);
                home        = (HelloHome)PortableRemoteObject.narrow(object, HelloHome.class);
                hello       = home.create();
                System.out.println(hello.hello());
            } catch(Exception e) {
                e.printStackTrace();
            } finally {
                close(context);        // Closes the initial context.
        private static void close(Context context) {
            try {
                context.close();
                System.out.println("*** Context closed. ***");
            } catch (NamingException namingException) {
                namingException.printStackTrace();
            } catch(Exception exception) {
                exception.printStackTrace();
    }Here's a sample client app code I use for a HelloWorld EJB. You need to have a EJB client JAR containing the home and remote interfaces in the classpath during compile time and runtime.
    x

  • Simple question about flex and AS 3.0

    Hi, this might sound like a simple question so I apologize...
    I have both a copy of flex 2 and 3, and i want to simply code in AS
    3.0 not mxml. I referred to the help of both flex 2 and 3, and all
    i could come up with is "you can add dynamic behavior to your
    documents using actionscript", which means to me, you only write
    your functions in AS and create instances with mxml (...ugh).
    personally, i find mxml to be ugly (mainly because it looks like
    html to me), and i'd rather not use it. coming from programming in
    an IDE in Java, it seems like it would be nicer to have something
    similar, all the while having the power and cool features of flash.
    I'm not fully educated in this matter so i understand that i could
    be totally wrong.
    i mean, if i have to code in mxml, i will. i'm a web
    programmer for a living, and if a more experience programmer said
    something like "if you don't code mxml in flex, you'll never get a
    job coding in flex", i would trust the advice, and learn the ugly
    code. :)
    yes, i do have Flash cs3, it's great but it seems like a pain
    to me the way you organize classes.... i've only seen a few
    tutorials, ones that explain how you cannot simply import a custom
    class, you have tell your movie to link to it, put it in the same
    directory, or manually name the package, it's sort of confusing.
    my main point here is that i'm very eager to start building
    apps in straight AS 3.0 instead of using flash cs3 (for some
    projects), and it would be cool to get some help or be pointed in
    the right direction.
    to simplify:
    can i write AS 3.0 and only as 3.0 in flex 2 or 3? how? can
    you link me to a tutorial? any advise?
    thanks!

    Hey William, thanks for the post. It's a great coincidence
    because I'm reading that book as well. I'm about half way through
    it, and I love it. I installed mxmlc on my linux box and am writing
    pure AS 3 apps. I think that's the way to go, though I know it's
    not for everybody.
    My problem with mxml is that it has a weird syntax for
    function calls, and it's not as 'intuitive' for a person like me,
    who came from C++ and Java programming in the past. I like writing
    programs in the C++ and Java style syntax, and since so many other
    languages use a similar syntax, I don't see any reason to learn the
    nuances of mxml, unless I was getting paid to do it. As far as I
    can tell there is no benefit.
    I hate using Flash to write flash apps as well, I feel like
    they become messy and confusing, especially when trying to write an
    OOP application. I only use it if I want to move an object in a
    very specific way and can't do it with the Tween methods.

  • A few simple questions

    Hi, the company I work for will soon be doing some work with OS X server and in an effort to familiarise myself with the software I have set it up at my home on an old blue and white G3 (sadly the best hardware I have to spare right now).
    I would like to configure the server to share the internet, serve web pages and an FTP server and a few other basic tasks, but I keep running into trouble, and would appreciate some feedback on these simple questions. My setup is as follows:
    Sympatico connection via ethernet DSL modem (server connects via PPPoE)
    2nd NIC on server connected to a 5 port switch
    Powermac G5 and Windows XP workstations (currently only testing with XP box)
    I have been unable to get the server to share the internet connection, the DHCP server does not seem to be serving IPs (although if I map a static address it works) but either way I cannot browse.
    My questions are:
    Will this setup work with the server connecting via PPPoE or does it require a static IP from my ISP?
    Do I have to configure DNS or can I just enter my ISP's DNS IPs instead?
    Is there anyway to return the server configuration to default settings? I tried using Gateway Setup Assistant which didn't work, and I'm worried that it's dropped in some settings I'm not aware of.
    I've done some reading on here and while I understand it's easier to let a $50 Dlink router handle NAT I'd like to understand this so I can better advise my client.
    Many thanks in advance,
    Toby

    It is entirely possible to run what you describe, but it's hard to tell what state it's in now (and therefore what changes are needed to make it work).
    In general, the steps you should follow are:
    1) Get the public network side working so the server can talk to the outside world.
    2) Get the private network working between the server and the clients.
    3) Run gateway assistant, or manually configure the various parts using Server Admin.
    The system shouldn't care whether you're using PPPoE, DHCP, static addresses, or even dialup for the public link, so that's not an issue, and neither should DNS.
    Other things to check include the firewall on the server (turn it off during this setup to make sure it's not just a firewall configuration issue).
    Also, make sure you're using different subnets on the public and private networks, e.g. don't try to have the server hand out public IP addresses to the clients - that won't work.
    Check that your basic network connectivity (e.g. ping) works between the various systems on the network. if the clients can't ping the gateway system then they're not going to go anywhere.

  • Starting out with a Cintiq in Adobe Flash - A series of frustratingly unfindable simple questions!

    I'm completely new to the Flash IDE, but I have used my Cintiq 13HD with Photoshop in the past. Despite the tablet working well and drawing correctly, so far Flash feels very weird and almost unusable. I've spent hours looking online for answers to these simple questions, and I've found nothing. Please help answer any if you can!
    1. Eraser brush size: I have the wacom pen set to brush, and the eraser set to eraser (fairly standard). I can adjust the pen's brush size in the toolbar, but the eraser is stuck at the smallest size! I have set the eraser tool to the max brush size, and when the pen is set to the eraser tool directly it is larger. How do I set the other side of the wacom pen to a larger brush size? And aren't there any keyboard shortcuts to increase/decrease brush size in Flash? (like [ and ] in Photoshop)
    2. Brush zoom: The brush size changes when you zoom. People online say the brush size is constant, but this is just wrong. When you zoom to 200%, the brush should be twice as big as it is in 100% zoom. Is there any way to make Flash have this (normal) behavior?
    3. Timeline wrapping: Can you make the "step forward one frame" and "step backward one frame" keys (comma and period) wrap the entire timeline, so stepping forward on the last frame goes to frame 1, and stepping backward on frame 1 goes to the last frame? This is crucial for me to animate loops well, and I can't find anything about it online or in preferences. Shift+comma and shift+period are okay workarounds, but they are not ideal, because I have comma and period mapped to buttons on the Cintiq. I need them to wrap!
    4. Numerical Brush Thickness: Is there any way to specify a brush thickness with a number? Do I have to use the pen tool to get stroke thickness properties? At the very least, can I use a keyboard shortcut to specify size, instead of clicking on toolbars?
    Honestly, I'm at the end of my rope here. I'm almost ready to drop Flash entirely and do this in Illustrator, then animate in Flash when I have everything drawn properly. Why is everything so different, and why can't I find any of these simple questions online?

    The long and short of it is no you can't do most of the things you're looking to do as far as the brush is concerned. Flash has ALWAYS increased the brush size as you zoom in and decreased it when it's zoomed out. Why? No clue but it's always been so.  You CAN increase the brush size by number though using the Properties box. The eraser is weird in Flash. so much so that I use the Lasso tool and select what I don't want and delete it. Since you're used to Illustrator you might not realize that selecting areas of a brush stroke will NOT select the entire stroke like in Illustrator. you can select only parts. You can also sort of allow for what you're calling timeline wrapping by installing a Command and mapping it to a custom key command. Just make sure there's a key frame at the end of the cycle.
    Dropbox - Flash_Select_Next_and_Previous_Keyframes.zip
    Also this might do sort of what you want too:
    http://www.toonmonkey.com/frameJumper.fla
    Finally, Flash is no different than it has ever been and you have to take into consideration that while Illustrator was developed by Adobe, Flash was developed by Macromedia and was then acquired by Adobe years later so you' can't really expect it to work the same. Personally I HATE Illustrator's interface and hate the way it works so I'd hate it if Flash worked like Illustrator!
    Anyway, I hope this helps.

  • HT1296 An embarrassingly simple question: having backed up my iPhone calendar on iTunes on my MacBook Pro, how can I view tha calendar on my MacBook? Should there be a tab on iTunes?

    An embsarrassingly simple question: having backed up my iPhone calendar on iTunes on my MacBook pro, how can I view the calendar on the MacBook?
    Shoul there be an access tab on my iTunes

    You don't view your calendar, on your Mac, that way. You sync your calendar to your Mac using iCloud, or iTunes. Read here:
    http://support.apple.com/kb/HT1296

  • WD Abap - simple question (required field)

    hi folks,
    quite a simple question i guess.
    i have a field marked as required (gets a red asteriks). In the actions i have "Standard" so they should have to do all the validations, but i still can execute the action, i did not find a docu for the behaviour of the "required" features? i thought like in r/3 sapgui appl. a default error messages will be shown?
    any ideas?
    kind regards,
    oliver

    Oliver,
    I guess there is no difference between WD ABAP and WD Java in this regard, so I will answer from WD Java developer point:
    "Required" actually means visual hint to user that input is mandatory. What "mandatory" actually means is application-specific.
    For example, in Java string could be either null, or empty, or contains only spaces, or rest. What is mandatory here? Not null? Not empty? Something besides spaces? Ok, even worth, let us assume that we are entering some number (material, order). So string with only zeroes is also "empty".
    Hence WD does not handle "required" flag itself, this is left for application developer.
    Certainly, some data type constraints like minimal text length, or minimal numeric value may be treated as "required", and here WD works well.
    VS

  • Simple Question - attribute alternative text within the same Word doc

    ok. I am having a brain freeze and can't locate the answer in the OPA help. Simple question.
    Is there a simple way to alias an attribute for use in Word?
    For instance the following two conclusions create 2 attributes where I only want 1 attribute.
    the annual percentage rate = 6
    APR = the annual percentage rate
    Is there a configuration option or something to alias APR as the annual percentage rate for use in Word? I want to use either in the same Word document. Something in my head tells me I saw that once before, but all of a sudden I have a brain freeze.
    Sorry for such a simple question, but sometimes I get too deep in the weeds.

    Hi Paul,
    You may be thinking of the OPA legend style. In the Office 2007 OPM ribbon it's called Table Legend, but I believe it works with non-table rules in Word as well - it certainly used to.
    It's an OPA rule style which can be used when you want to refer to a shorthand version of an attribute, e.g. "APR" instead of "the annual percentage rate". I believe it only applies to the rule immediately below where it has been set in the doc, and not the entire doc.
    I did a quick search in the OPM Help and found references to the legend style, but I didn't find a description of the functionality (I didn't search too thoroughly though).
    Here basically how it works...
    Above the rule write the shorthand version, then the word "is", then the full attribute text, e.g.
    APR is the annual percentage rateSide note: I always bold the "is" in the legend line. This is not required, but I like to do it because it makes it clearer at a glance which part is the shorthand and which part is the full attribute text.
    Then apply the Table Legend style to the line, then put your Word table or regular rule below it, e.g.
    [legend]APR is the annual percentage rate
    the result = APR * 10 I use this functionality occasionally. Usually it's when I've got calculations in Word tables and I'm trying to make the left hand column more readable, e.g. using something "APR" in the formula so that it doesn't take up so much space.
    Cheers,
    Jasmine

  • Simple Question - loginblock.ascx

    Hi,
    I apologize in advance for what I'm sure is a simple question!.
    I'm not familiar with C# at all and am pretty new to ASP.NET, therefore I'm keeping the level of customization to a minimum during phase 1 of our website. However, I would like to add a remember me checkbox to the loginblock.ascx. I have followed the normal asp rules for adding this checkbox to the layouttemplate but it makes no difference to whether a user is remembered. Looking at the code it would seem that the remember me value is always passed as false:
    protected void loginMain_LoggedIn(object sender, EventArgs e) {
            NPUser user = new NPUser(loginMain.UserName);
            ((NPBasePage)Page).Login(user.UserID, user.AccountID, false);
    All I would like to do therefore is control that value with a checkbox, so I thought this code would work:
    protected void loginMain_LoggedIn(object sender, EventArgs e) {
            NPUser user = new NPUser(loginMain.UserName);
            ((NPBasePage)Page).Login(user.UserID, user.AccountID, checkbox1.Checked);
    It doesnt, the control no longer loads. As a matter of interest I replaced checkbox1.checked with other controls on the page, and with the exception of the login and main panels, none of the other controls could be referenced either without generating an error. I'm obviously missing something fairly fundamental here, and would appreciate any help.
    Thanks!.

    I have manually changed the value to true, and it triggers the process that automatically logs a user on at the next visit.
    This is currenty where my checkbox resides, although it I have moved it around to see if it made any difference!.
    <asp:Login ID="loginMain" runat="server" OnLoginError="loginMain_LoginError"
        OnLoggedIn="loginMain_LoggedIn"   >
        <LayoutTemplate>
        <table class="nptable" style="width: 265px; border-top-style: none; border-right-style: none; border-left-style: none; background-color: #c8bb89; border-bottom: white 5px solid; padding-left: 5px; ">
            <tr>
                <td class="npbody" style="height: 25px">
                 <asp:Label ID="UserNameLabel" runat="server" AssociatedControlID="UserName" Font-Bold="true" Font-Size="11px">User Name:</asp:Label><br/>
                 <asp:TextBox ID="UserName" runat="server" Width="110px" BackColor="White"></asp:TextBox>
                </td>
                <td style="white-space:nowrap; height: 25px;" class="npbody">
                 <asp:Label ID="PasswordLabel" runat="server" AssociatedControlID="Password" Font-Bold="true" Font-Size="11px">Password:</asp:Label><br/>
                 <asp:TextBox ID="Password" runat="server" TextMode="Password" Width="80px"></asp:TextBox>
                 <asp:LinkButton ID="LoginButton" runat="server" CommandName="Login" Text="Log In"></asp:LinkButton>
                </td>
            </tr>
            <tr>
             <td colspan="2" style="height: 14px">
                <asp:CheckBox ID="checkbox1" runat="server" ></asp:CheckBox>
            </td>
            </tr>
        </table>
        </LayoutTemplate>
    </asp:Login>

  • Pro Tools convert to Logic Newbie some simple question for logic users

    Hey guys, I am a recent convert from Pro Tools! and There were just some simple questions I thought some of you may be able to help me out with. I am using Logic 9.1.1
    1) After I set up a multi timbral software instrument (in this case MOTU Symphonic Library) how do I set up midi channels to trigger the individual sounds in the instrument. (in pro tools I used to create a midi track then send an output of that track to that particular soft synth)
    2) How do I set up a and forgive my Pro Tools vocab but basically I want to set up a reverb channel on an aux track have it receive on a bus so I can send other tracks to that particular bus.
    Thanks for the insight and really looking forward to finally make use of all this ram! lol

    1) I have a nord stage and would like record via midi. In pro tools i would usually need to create a midi track with the output set the the nord and an audo aux track to hear it What would I do in order to record midi from my nord stage?
    To record, just select a non-audio track, hit record and play the keyboard. The notes will get recorded into a region.
    If you want to play it back to the Nord Stage as well, then it makes sense to set the Nord up as a MIDI device in your templates, so you can just add the Nord to a track and not worry about what MIDI ports it's on etc. Open the environment, create a New -> Instrument, called it "Nord Stage", set the MIDI port and MIDI channels it's on, and sav your template.
    Now, when you start a song, to sequence the Nord, you just assign the Nord instrument to a track (by for instance, right clicking on a track and choosing your Nord instrument from the list of environment obects that appears).
    2) The multi instrument trick is quick and easy its great but How would I do that manually?
    Lots of ways, look into your key commands, ther are all kinds of "Create track with same instrument", "Create track with next MIDI channel" and so on. There are too many ways to do this to quickly talk about here. In short, all tracks have an environment object assigned to them, whether it's an audio object, or a MIDI instrument object, and this determines where the data on the track goes.
    3) How do you set up midi so that it doen'ts overwrite notes when recording over them?
    Not sure I understand you here...

  • SIMPLE QUESTION - EXTERNAL iSIGHT CAMERA

    I just have a simple question...
    I was using an older iMac G5 with an external iSight camera and just upgraded to a new 24" iMac. Can the external iSight camera still be used on an iMac with a built-in camera?
    The cable with the external camera allows for more flexible viewing capability.

    Hello rgarros50
    The second part of your question is not quite so simple.
    Plug your external iSight in and turn it on. If you like, you can use the suggestions from How to test your (external) iSight to ensure it is functional to be sure it is working with your new iMac.
    The answer to your question about the "default camera" depends on which application you are using to operate your iSight. Here is how camera selection works in a few example:
    (1) For iChat, you can choose which iSight you use in the "Camera:" choices bar in iChat > Preferences... > Audio/Video that appears when more than one compatible camera is connected. Although your camera choices will be different, the choices bar will look something similar to the Preferences settings shown here:
    Most other applications also have settings that allow you to choose which camera to use. However, they do not all work the same way.
    (2) For instance, iMovie's camera choice is NOT set via Preferences. When you have more than one compatible camera connected, iMovie uses a drop-down menu choice something like this (depending on which version of iMovie you use):
    Note: Because I have no built-in iSight, when my external iSight is disconnected, the drop-down menu shows only "Time Lapse." Because your iMac has a built-in iSight, your built-in iSight will show in the drop-down menu even when no other camera is connected. Connecting your external iSight should allow you to choose either camera.
    (3) Photo Booth is such a simple, basic app that it offers no menu selectable choice. Unless you make your built-in iSight the camera being used by some open application before you launch Photo Booth, Photo Booth will use ONLY your built-in iSight.
    However, you can use the trick from ¶ 4 of http://docs.info.apple.com/article.html?artnum=302781 to let Photo Booth use your Firewire external  iSight:
    • Connect your external iSight and turn it on.
    • Quit Photo Booth (PB) if it is running.
    • Launch any app with a user-selectable camera "Preferences..." menu command.
     (The "tip" suggests that you use iChat, but others should work as well.)
    • Open "Preferences..." and set the camera "Preference" to use your built-in iSight.
    • Now launch PB. PB should now use the external iSight
     because your built-in camera is in use by the other application.
    (4) For apps other than those above, see their Help or other documentation.
    EZ Jim
    PowerBook 1.67 GHz w/Mac OS X (10.4.11) G5 DP 1.8 w/Mac OS X (10.5.2)  External iSight

Maybe you are looking for

  • I can't seem to create my object for my array!!

    I am in school. My project is to create bank accounts for 3 people. I have 2 for loops, one for my account_numbers and the other for the months of the year. This will track each account's transactions for the year. I initialized my array: int[] accnt

  • How do i get rid of apps that are still in my icloud?

    When I am browsing through the app store, and I encounter an app I have deleted, it asks me if I want to download it from the icloud. This bothers me because it makes me feel like those are still taking up space on my icloud. How do I delete them? Li

  • Audio Digital Analog Converter bit resolution

    Hello ! i´m looking if I can use IPHONE to make my investigation project. Someone of you know which is the audio Digital Analog Converter bit resolution for a normal audio conversation? 13bits? thank you very much

  • Commission report Query Question

    The inbuilt Commission Report is run by the following query: SELECT T0.DocNum, T0.DocType, T0.DocTotal, ( T0.DocTotal - T0.VatSum) As "Net Income"  , T1.SlpName, T1.Commission, ( ( T0.DocTotal - T0.VatSum)*( T1.Commission/100)) As "Sum_Commissions" F

  • What do you use to convert DSS to a format that garageband can use?

    Please let me know what you use to convert DSS file format into a format that garageband can use? (DSS is a format used by Olympus. I only have the files - not their software.) for ref: http://www.olympus-europa.com/consumer/2590_software.cfm?categor