Call Total Current Connections/Users in Flex

Hello,
I realize this can be answered a number of ways and i've tried searching for it.
I'm trying to find out how I can tell how many users are connected to the same FMS application in a flex application:
public function totalConnectedUsers():void{
lblText1.text = "There are a total of " + bindableUserVariable + " Users Connected to the Stream Now";
Thanks for the assist.

I'll reply on both with this answer but point back to this forum from the other one:
First up, you're very welcome of course. Glad it has helped you on your way.
The only way to do that is to setup a timer on the server side that will call the clients connected. You can call all clients connected with the application.broadscastMsg() method. But essentially it can get called every time a client connects or disconnects. Why would you want to call it every 5 minutes?

Similar Messages

  • Show Current Connected User in SQL Developer

    Hello,
    Is there a way to make SQL developer display the user that is currently connected?
    For example, in the Connection tab, instead of just the database name show something
    of the lines of "USER@DATABASE" or "DATABASE -- USER"
    or in the SQL Worksheet Page?
    Sometimes you connect and you don't know with which user you connected.
    Thanks

    We do have this listed in our task database with the other connection requests. These will not be addressed in the next update, but in a future release.
    Regards
    Sue

  • Display all connected user (application)

    Hi there,
    I'm searching for a solution how to display all currently connected users.
    In a session I can use :APP_USER to geht the actual user.
    Is there an array of APP_USERS or something like this?
    Greetz
    Florian

    Florian - With APEX, users are only "connected" for the duration of a page request during which period a database session is obtained and used to execute the page and return the results to the user's browser. This connection usually lasts less than one second. You may be wanting to know which users (with or without named accounts) who have issued requests "recently" actually plan to issue another request "soon". That criteria is pretty fuzzy. Search this forum for "active sessions" for other posts about this topic.
    Scott

  • Execute BAPI Using Current User ID, Not JCo Connection User ID (v7.0)

    Currently when I call a BAPI, it executes under the username of the JCo Connection. User management is done via ECC, and not portal, so the User IDu2019s are identical.
    Is it possible to call a BAPI from Web Dynpro using the current portal user User ID?

    Hi,
        Select the model which is created for the Bapi (in the webdynpro content Administrator),  edit the JCO connection(modeldata) and select user method - Ticket, for the metadata you ca use a common communication userid.
    By this the BAPI is executed with the current logged in portal userid.
    Note:  For using this your portal as to be configured with SAP ECC with SSO.
    Hope this solves your issue.
    Regards,
    Manjunath

  • Trace Users Currently Connected to Application

    Hi,
    I want to see the list of users who are currently connected to Application.
    I had set the Profile Option "Sign-On Audit" at "Form" level.
    Now I am monitoring the database using "Security:Users -> Monitor" option and throuth the sql query mentioned below. I am getting different output from both the ways.
    select distinct fu.user_name User_Name,fr.RESPONSIBILITY_KEY Responsibility
    from fnd_user fu, fnd_responsibility fr, icx_sessions ic
    where fu.user_id = ic.user_id AND
    fr.responsibility_id = ic.responsibility_id AND
    ic.disabled_flag='N' AND
    ic.responsibility_id is not null AND
    ic.last_connect like sysdate;
    Please let me know how to check the users currently connected to the application and their logged in time.
    Thanks and Regards
    Amith

    After successfully completing the request "Purge Signon Audit" i tried to monitor the users, it shows all the users connected to the Application today. It does't display the users who are currently connected to APPS Server. This is an expected behavior since you have "ic.last_connect like sysdate;" in your query. If you want to check the users who are connect in the last in the past (15/30 minutes or 1 hour) please refer to:
    Note: 295206.1 - How to Count Total Number of Users Connected to ORACLE Application
    https://metalink2.oracle.com/metalink/plsql/ml2_documents.showDocument?p_database_id=NOT&p_id=295206.1

  • Hi All,i am currently working on a flex application that will allow the user to change the language

    Hi All,i am currently working on a flex application that will allow the user to change the language within the application from english to Japanese and vice versa. And everything works fine.
    I am using flex 4.5
    We allow the user to save records with english or japanese texts.
    problem
    When the user manually enters Japanese text and tries to save it the record defaults back to the default name (which is in english). But if you copy the entered text and paste it and then save it.It works fine.
    Any idea , why this is happening?
    Please let me know if the question is not clear.
    Looks like there was already a bug
    https://issues.apache.org/jira/browse/FLEX-28894?page=com.atlassian.jira.plugin.system.iss uetabpanels:all-tabpanel
    Not sure why does it say , Resolved .
    -KB
    Message was edited by: bKartik.b

    By Payal integration , you mean paypal button html ? or payment gateway setup etc ? If its a gateway configuration for your site domain then single page for all layout will work , but if you are using button code for all renditions then you would need to create separate pages for all.
    Thanks,
    Sanjit

  • How to use the current connection when calling db procedure ?

    dear all,
    Am using Jdevleoper 11.1.1.3 ,
    I have a java class that call a database procedure , now everything is going fine with me but a bit slow bcoz am openning a new connection I think it would be definitely faster if am using the current connection
    so how can i re-write my code so i can use the current connection istead of defining a new connection to the DB :
    public void DeleteApp (int PAppNo){
    String username,password,thinConn;
    username = "ACC";
    password = "ACC";
    thinConn = "jdbc:oracle:thin:@..."
    try {
    DriverManager.registerDriver(new OracleDriver());
    Connection conn = DriverManager.getConnection(thinConn, username, password);
    CallableStatement cs = conn.prepareCall(" { call myprocedure(?,?,?) } ");
    cs.setInt(1,PAppNo);
    Thanks for all,
    Lama

    Delta,
    You shound NOT be doing JDBC calls from your UI project. You should put the code as a service method in your application module, expose the service method to the client, and then call it through the binding layer from your UI http://download.oracle.com/docs/cd/E14571_01/web.1111/b31974/bcservices.htm#sm0212
    thx John & timo but u always post the same reply at the same time for my questionsTimo and I have been around long enough that we recognize the questions that have been posted 9,461,293,811 times before and know the stock answers, and know where in the documentation the answers are given. As you appear to be new to ADF, I'd strongly recommend reading the Fusion Developer's Guide (skim it once and then read in detail the parts that interest you). As I've said before, so many of the basic (and not-so-basic) concepts are covered in there. Once you've skimmed it in enough detail, then the next time you have a problem, you might not know the answer, but you'll remember, "ah, I think I read something about that before, let me check..."
    John

  • Get users currently connected to iFS

    Hello!
    How can I get list of users who currently connected to iFS( not via SMB)?
    Best regards

    Elvira,
    Unfortunately I don't think there is. We wrote our own to manage concurrent users.
    Regards
    Chris Mayhew

  • EPM 10 NW Report showing error - No Current connection

    Hi Team,
    We are using EPM NW 10 Version SP 15 Patch 1.NET 4
    When we Open the report from offline , The report is showing Error : " Error - No Current Connection"
    And also some reports showing Value error , While opening the report in the offline . In this report we used EPM retrieve formula
    This issue facing for one user machine
    Please suggest whether we need to change settings in the user machine

    Hi Andy,
    No Offline Mode.
    After refresh the EPM report , We saved the report locally in the desktop
    The problem is User send this report to another user
    So receiving user , When ever he opening that report , Its showing this Value error
    He using the Excel 2010 Version
    Please suggest

  • Lync to Lync calls not working when users outside of network. But calls from Lync to external numbers do work.

    Hello,
    We are having the following issue: when our lync users are outside of our network, just connected to their home internet or a public WiFi  and not on VPN, they cannot place calls to other
    Lync users inside our network. They get a poor network connection message on the call window. But they are able to make calls from Lync to external numbers without a problem.
    Inside our network, Lync to Lync calls work perfectly fine, the same for calls from Lync to external numbers.
    Does anybody know what could be the cause of our issue? Perhaps I'm missing a setting on our Edge server. What should be the first thing I should check on my Lync servers?
    Thanks for any help!

    Have you opened up ports on your firewall from your internal clients to the edge on UDP/3478 and TCP/443?  This sounds like you might have a problem there.  Can you internal clients properly route to this subnet and resolve the pool name of your
    edge pool? 
    Ports and protocols poster, check out in A/V section client traffic to edge showing UDP/3478 and TCP/443:
    http://www.microsoft.com/en-us/download/details.aspx?id=39968 
    Please remember, if you see a post that helped you please click "Vote As Helpful" and if it answered your question please click "Mark As Answer".
    SWC Unified Communications
    This forum post is based upon my personal experience and does not necessarily reflect the opinion or view of Microsoft, its employees, or other MVPs.

  • How to track current online users in OID?

    Hello,
    Is there any way to track the number of current online users in OID?(or 10Gas) therefore, I could find out who is online and how many people are online. Does OID provide the feature? Or, I have to write a Java class to record it when a user logon? what if the user doesn't logout and the seesion is timeout?
    Thanks for your help

    PL/SQL code to get number connected users since the beginning of the day :
    DECLARE
    cpt_user integer := 1;
    BEGIN
    select count(distinct(user_name)) into cpt_user from PORTAL.WWCTX_SSO_SESSION$
    WHERE (USER_NAME <> 'PUBLIC')
    AND to_char(PORTAL.WWCTX_SSO_SESSION$.LOGIN_TIME,'dd/mm/yyyy') = to_char(sysdate,'dd/mm/yyyy')
    AND IP_ADDRESS IS NOT NULL;
    htp.p(' <font color="#006699" size="1" style="font-family:Arial, Helvetica, sans-serif" > ' ||cpt_user|| ' connections</font> ') ;
    EXCEPTION
    WHEN NO_DATA_FOUND THEN
    htp.print('No connection !');
    END;

  • How to Use  Connected-User DBLink in a trigger??

    In the trigger body,I need to call a remote procedure through a Connected-User dblink.But error occurs when the trigger is compiled.
    ORA-01005:null password given;logon denied
    Can't a Connected-User dblink be used in a trigger?
    Thanks.

    Hi,
    I don't know if this helps, but you can create a DBLink with the username and password and the SID to connect to. Then try using this DBLink in trigger.

  • Open/total jdbc connections

    With Oracle9iR2 AS installed, I notice that there are always open JDBC connections. I explicitly close them from all my JSP files (and the statement and the resultset objects as well). Actually, the total JDBC connections are always 2 times the open JDBC connections.
    The DataSource class I use is com.evermind.sql.DriverManagerDataSource. Is this a problem? Will this be corrected in any future release?
    Thanx

    Interesting thread. Have also had problems with the connection pool (903 standalone).
    One problem in particular is that if min-connections is used, then those pool-connections are really never closed "physically". This means that a lot of open cursors are never released in the db (even though the "connections" used by the code from the pool are closed). Not so good under heavy load.
    Posting a snippet from a connection pool entry we have. Maybe it will help some of you guys.
    <data-source
    class="com.evermind.sql.DriverManagerDataSource"
    name="SomeDS"
    location="jdbc/SomeDBCoreDS"
    xa-location="jdbc/xa/SomeDBXADS"
    ejb-location="SomeDB"
    connection-driver="oracle.jdbc.driver.OracleDriver"
    username="user"
    password="pwd"
    url="jdbc:oracle:thin:@127.0.0.1:1521:SOMESID"
    inactivity-timeout="300" <-- Will close connections after 300 sec of inactivity
    min-connections="0"
    max-connections="20" <-- Larger on prod machine of course
    stmt-cache-size="100"
    />
    I have experimented wildly with these settings and this is the most stable. Sure, it's nice to always have connections ready in the pool. But as I said. Open cursors WILL accumulate in your db if you use the min-connections set to a positive number (check your v$). This is our experience anyway. These settings have stopped us from getting db errors such as maximum open cursors exceeded and too many connections open using 903.
    Regards,
    Jonas

  • Total JDBC Connections

    I have deployed an application to Apps Server 9.0.4.
    I am using oracle.jdbc.pool.OracleConnectionPoolDataSource. I have closed all the connections, however Open JDBC Connections is always 0 and Total JDBC Connections is increasing.
    My inactivity time out is 60 seconds.
    Is this normal or something wrong somewhere?
    Any help is highly appreciable.
    Thanks

    The Total number of connections figure indicates the total number of connections that have been opened since OC4J was started.
    The Open number of connections figure indicates the total number of connections currently open.
    Since you say that the open connections figure stays below 10, this suggests that you do not have a connection leak, but your inactivity time out is too low, and therefore your connections are being closed before they can be reused - hence the large total number of connections.
    Good luck.

  • ORA-01940: cannot drop a connected user... No entries in v$session.

    Hi DBAs,
    Its on Linux Ubuntu... I want to drop a user. Getting error as below. When I check for connected sessions, I find no entries in v$session. Any other alternative? Please help!!!
    EGOVDBA@qadb> select * from v$version;
    BANNER
    Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - Prod
    PL/SQL Release 10.2.0.1.0 - Production
    CORE     10.2.0.1.0     Production
    TNS for Linux: Version 10.2.0.1.0 - Production
    NLSRTL Version 10.2.0.1.0 - Production
    EGOVDBA@qadb> drop user egov_integrated cascade;
    drop user egov_integrated cascade
    ERROR at line 1:
    ORA-01940: cannot drop a user that is currently connected
    EGOVDBA@qadb> select username, osuser, machine, terminal, sid, serial# from v$session where username='EGOV_INTEGRATED';
    no rows selected
    EGOVDBA@qadb> drop user egov_integrated cascade;
    drop user egov_integrated cascade
    ERROR at line 1:
    ORA-01940: cannot drop a user that is currently connected

    oracle@hp2:~$ ps -ef | grep oracle
    oracle 7011 1 0 Mar31 ? 00:03:18 /orclins/u01/app/oracle/bin/tnslsnr LISTENER -inherit
    oracle 7166 1 0 Mar31 ? 00:00:08 ora_pmon_qadb
    oracle 7168 1 0 Mar31 ? 00:00:00 ora_psp0_qadb
    oracle 7170 1 0 Mar31 ? 00:00:16 ora_mman_qadb
    oracle 7172 1 0 Mar31 ? 00:01:32 ora_dbw0_qadb
    oracle 7174 1 0 Mar31 ? 00:01:47 ora_lgwr_qadb
    oracle 7176 1 0 Mar31 ? 00:00:08 ora_ckpt_qadb
    oracle 7178 1 0 Mar31 ? 00:00:42 ora_smon_qadb
    oracle 7180 1 0 Mar31 ? 00:00:00 ora_reco_qadb
    oracle 7182 1 0 Mar31 ? 00:00:09 ora_cjq0_qadb
    oracle 7184 1 0 Mar31 ? 00:00:06 ora_mmon_qadb
    oracle 7186 1 0 Mar31 ? 00:00:13 ora_mmnl_qadb
    oracle 7188 1 0 Mar31 ? 00:00:00 ora_d000_qadb
    oracle 7190 1 0 Mar31 ? 00:00:00 ora_s000_qadb
    oracle 7275 1 0 Mar31 ? 00:00:00 ora_qmnc_qadb
    oracle 7277 1 0 Mar31 ? 00:00:00 ora_q000_qadb
    oracle 7280 1 0 Mar31 ? 00:00:00 ora_q001_qadb
    oracle 7765 1 0 Mar31 ? 00:00:01 oracleqadb (LOCAL=NO)
    oracle 7767 1 0 Mar31 ? 00:00:00 oracleqadb (LOCAL=NO)
    oracle 7769 1 0 Mar31 ? 00:00:00 oracleqadb (LOCAL=NO)
    oracle 7771 1 0 Mar31 ? 00:00:00 oracleqadb (LOCAL=NO)
    oracle 7773 1 0 Mar31 ? 00:00:01 oracleqadb (LOCAL=NO)
    oracle 17325 1 0 Mar31 ? 00:00:00 oracleqadb (LOCAL=NO)
    oracle 17327 1 0 Mar31 ? 00:00:00 oracleqadb (LOCAL=NO)
    oracle 17329 1 0 Mar31 ? 00:00:00 oracleqadb (LOCAL=NO)
    oracle 17331 1 0 Mar31 ? 00:00:00 oracleqadb (LOCAL=NO)
    oracle 17333 1 0 Mar31 ? 00:00:00 oracleqadb (LOCAL=NO)
    oracle 17337 1 0 Mar31 ? 00:00:00 oracleqadb (LOCAL=NO)
    oracle 17339 1 0 Mar31 ? 00:00:00 oracleqadb (LOCAL=NO)
    oracle 17341 1 0 Mar31 ? 00:00:00 oracleqadb (LOCAL=NO)
    oracle 17343 1 0 Mar31 ? 00:00:00 oracleqadb (LOCAL=NO)
    oracle 17345 1 0 Mar31 ? 00:00:00 oracleqadb (LOCAL=NO)
    oracle 20219 1 15 Mar31 ? 02:07:49 oracleqadb (LOCAL=NO)
    oracle 20221 1 16 Mar31 ? 02:11:16 oracleqadb (LOCAL=NO)
    oracle 20227 1 15 Mar31 ? 02:00:44 oracleqadb (LOCAL=NO)
    oracle 20229 1 13 Mar31 ? 01:46:38 oracleqadb (LOCAL=NO)
    oracle 20376 1 0 Mar31 ? 00:00:00 oracleqadb (LOCAL=NO)
    oracle 20378 1 0 Mar31 ? 00:00:00 oracleqadb (LOCAL=NO)
    oracle 20380 1 0 Mar31 ? 00:00:00 oracleqadb (LOCAL=NO)
    oracle 20382 1 0 Mar31 ? 00:00:00 oracleqadb (LOCAL=NO)
    oracle 20384 1 0 Mar31 ? 00:00:00 oracleqadb (LOCAL=NO)
    oracle 21336 1 0 00:00 ? 00:04:15 ora_j000_qadb
    oracle 24611 1 0 07:50 ? 00:00:00 oracleqadb (LOCAL=NO)
    root 25225 6477 0 08:37 ? 00:00:00 sshd: oracle [priv]
    oracle 25227 25225 0 08:37 ? 00:00:00 sshd: oracle@pts/0
    oracle 25228 25227 0 08:37 pts/0 00:00:00 -bash
    oracle 25273 1 0 08:41 ? 00:00:02 ora_j001_qadb
    oracle 26011 1 0 09:27 ? 00:00:00 oracleqadb (LOCAL=NO)
    oracle 26012 25228 0 09:27 pts/0 00:00:00 ps -ef
    oracle 26013 25228 0 09:27 pts/0 00:00:00 grep oracle
    oracle@hp2:~$

Maybe you are looking for