CF8: Cluster session-based ColdFusion Components

Using CF8:
Is it possible to store ColdFusion components in the session
scope when using clustering and session failover?
Is it possible to replicate their state across a ColdFusion MX
cluster?
I remember that with cf6 and cf7 it wasn't possible (
http://www.adobe.com/devnet/coldfusion/j2ee/articles/endtoend.html).
I think that the CFC serialization is the answer: but I'm not sure.
thanks in advance
federico

quote:
Originally posted by:
Grizzly9279
My understanding is that CF8 supports CFC serialization now,
which implies that CFCs stored in session should successfully
replicate across cluster nodes.
yes! Finally it's possible!
http://livedocs.adobe.com/coldfusion/8/htmldocs/help.html?content=clustering_6.html
federico

Similar Messages

  • Access to a logged-in user's information via a session based object

    I am in the process of putting together a design for the security layer of a given
    application I am working on. The requirements for authentication demand that
    the framework take advantage of digital certificates and username/password verification.
    The digital certificate end is relatively straightforward in terms of configuration
    within WebLogic 6.1. I am planning on implementing a RDBMS security realm for
    the username/password verification piece and again, from the documentation I have
    seen, it seems relatively straightforward in setting that up as well.
    The question I do have is in regards to once the user has successfuly logged in
    to the application. Is there anyway to manage and have access to a set of user
    info or credentials once they successfuly log in - aka some sort of session based
    object that WebLogic Server facilitates? Or is this something that will have
    to be explicitly built from our end if requirements do arise that necessitate
    user information to be readily available as such?
    Any feedback would be helpful....thanks!!

    Use the cfquery tag to query the database. If you don't know
    how to write sql, I have heard good things about the book, Teach
    Yourself SQL in 10 Minutes by Ben Forta.

  • How to invalidate a session based on the session id

    How to invalidate a session based on the session id

    You have to write your own support for this.
    It used to be in the API, but was deprecated as a security hole.
    The best way to do it is implement a session listener (javax.servlet.http.HttpSessionListener) which notifies you when sessions are created/destroyed.
    You can then keep a map of sessions in your own code, indexed by session Id, and access any/all of them to invalidate as you choose.

  • Trace session based on CLIENT_IDENTIFIER

    Hello all,
    i am on 11.2.0.1....we have a sap application and trying to trace a session from DB end....and seems like the job that the end user runs jumps from one session to another....in this senerio...how would i trace a session ??? i read article about dbms_monitor package to trace it...but as i mention, sap keep chaning the session from one to another.....
    i read the below article...
    http://ocsurabaya.wordpress.com/2007/07/18/tracing-sql-in-oracle-database-10g/
    in which it suggest to set the service name and module name....but the problem is its hard to get the module name as its doing quite a few things....it jumps from one module to another....is there anyway to trace a session based on its CLIENT_IDENTIFIER (from v$session)....as this looks like the domian user account for that user who is running the job....
    as i mentioned during that time(when job is ran)...the sid changes, modeule changes...the only thing consistent is the CLIENT_IDENTIFIER ( which seems to be the domian user name )...
    so how can i trace a session based on CLIENT_IDENTIFIER ??

    user8363520 wrote:
    Hello all,
    i am on 11.2.0.1....we have a sap application and trying to trace a session from DB end....and seems like the job that the end user runs jumps from one session to another....in this senerio...how would i trace a session ??? i read article about dbms_monitor package to trace it...but as i mention, sap keep chaning the session from one to another.....
    i read the below article...
    http://ocsurabaya.wordpress.com/2007/07/18/tracing-sql-in-oracle-database-10g/
    in which it suggest to set the service name and module name....but the problem is its hard to get the module name as its doing quite a few things....it jumps from one module to another....is there anyway to trace a session based on its CLIENT_IDENTIFIER (from v$session)....as this looks like the domian user account for that user who is running the job....
    as i mentioned during that time(when job is ran)...the sid changes, modeule changes...the only thing consistent is the CLIENT_IDENTIFIER ( which seems to be the domian user name )...
    so how can i trace a session based on CLIENT_IDENTIFIER ??is application 3-tier?
    does application utilize connection pooling?

  • CSS 11503 Stickyness session based

    Need assistance comming up with a soulution for session based Stickyness.
    1.can this be based on the J-Session ID?
    2.Can the CSS send a cookie and the clients stick to the same servers until the session expires and the cookie os removed?
    3. Also can we set a timeout value for the cookie?

    If servers are setting the cookies then you need something like this
    Service webserver1
    ip address 10.10.10.1
    string server1 <-- server cookie value
    active
    Service webserver2
    ip address 10.10.10.2
    string server2 <-- server cookie value
    active
    Service webserver3
    ip address 10.10.10.3
    string server3 <-- server cookie value
    active
    content mycontent
    vip address 12.12.12.12
    add service webserver1
    add service webserver2
    add service webserver3
    string prefix "JSESSIONID="
    protocol tcp
    port 80
    url "/*"
    advanced-balance cookies
    sticky-inact-timeout 60 <-- Inactivity timeout value for cookie
    active
    The string prefix (that goes on the Content Rule) would need to match be the name of the
    cookie string prefix "JSessionID="
    Then the string on the services would need to match the value that is inserted on each
    server:
    Example:
    Service webserver1
    ip address 10.10.10.1
    string server1
    active
    Then the cookies injected from server1 would need to look like this:
    JSessionID=service1
    That is how the CSS would then identify which server the cookie belongs to and how to send
    it to it. If the JDSessionID values are random, then the CSS would not be able to match the values to a service.

  • Sharing ColdFusion Components (CFC)

    I have several ColdFusion Components in a Flex Library Project which I would like to share with several Flex / FB projects. is there a practical way of being able to to this?
    Right now I includ the CFCs directory in the 'Flex Build Path/Additional source folders outside the main source folder' of each project, this is OK except that Flex puts the CFC's in the root directory of the debug folder which becomes a mess. Does anyone know of a better way of doing it, so that I can share my CFC components in a well organized way and maybe put them in a folder like 'cfc_components'.
    Any ideas, suggestions, or tips would be greatly apreciated!!!

    Thanks for the input and insight, it's very much apreciated!!!
    You're quite right that you don't really share CFC's, I misused the word. I was hoping that I could've kept the CFC's in a library project and Flex (Ecclipse) would've been able to create links as it seems to do if you include their directory in the source path, but keep them in the same folder they're in and put them under the src folder instead of the root directory which is what it seems to do. I was hoping I had missed something and be able to do what I wanted to do.
    The reason I was hoping to keep the CFC's in a library project is that eventually I want to shared them with others.
    What I've been doing is put the CFCs in a main project application and the other applications, which are sub-modules, compile to the main applicaton's debug folder. clunky... messy... perhaps but it's been doing the work.  Like I said I would like to find a way to shcare my CFC's without also sharing my main app's files.
    Again thanks for the input.

  • WS2012R2 - Session Based Printing Issues

    So several months ago (four?) my organization moved and we upgraded all of our servers to 2012.  We are a medical organization that uses terminal services aka RDS to rdp into a session based server to access our main clinical app.  From this session,
    the users need to print out various documents from that application.  For printing, we have a print server that has all of the printers installed on it.  Both users that use the remote session and users who do not access the printers through the
    print server.  The printers are deployed to each user via several GPOs so that they only get the printers that need access to.  We do this mainly so people do not get confused with which printer to print to and so they do not send print jobs to our
    other locations (connected through a WAN.) The main trouble we are having is with users on terminal server sessions.   When I right click on a printer in the control panel of someone who is in a session, there are multiple copies of the same printer that
    show up.  It appears that our PDF application will not show these printers when this occurs.  
    I guess my main question is:  in my organization's setup, what is the best way to set up the printers on the session server?
    I was also wondering about the "Easy Print" driver?  Is that something I need to enable/disable?
    Lat me know of any clarifications I may need to make.
    Thanks in advance.

    Hi,
    Thank you for posting in Windows Server Forum.
    Here providing you basic understanding to use Easy print driver.
    RD Easy Print is a proxy for every print action that simply redirects all printing-related work to the user's local machine without the need to install any print drivers on the TS server. This system provides several benefits, such as being able to redirect
    any printer from the user's client machine without having to reconfigure the server while still allowing the user to configure the print job as though he were printing on his client machine.
    For your environment, you can use Easy print driver option also by which you don’t have to install printer driver on server.
    For more information, you can refer beneath articles for detail.
    Using Remote Desktop Easy Print in Windows 7 and Windows Server 2008 R2
    http://blogs.msdn.com/b/rds/archive/2009/09/28/using-remote-desktop-easy-print-in-windows-7-and-windows-server-2008-r2.aspx
    How to configure Microsoft RDS Universal Printing
    http://www.virtualizationadmin.com/articles-tutorials/vdi-articles/microsoft-hyper-v/how-configure-microsoft-rds-universal-printing.html
    Hope it helps!
    Thanks.
    Dharmesh Solanki

  • You shouldn't use Coldfusion Components because...

    Are there any good answers to this question? My boss refuses
    to let me use Coldfusion Components because, according to our
    sys-admin:
    "using the components allows you to extend internal
    ColdFusion functions. This has been identified as a security
    issue."
    And because of this, he believes that he would have to either
    not allow them or:
    "Define a security Sandbox for each developer. The Sandbox
    defines which components can be used and which cannot."
    I have tried to read up on this issue over the past few days
    but am just not finding the information that I need to address his
    problems.
    Any suggestions?

    >>My boss refuses to let me use
    Coldfusion Components because, according to our sys-admin:
    "using the components allows you to extend internal
    ColdFusion functions.
    This
    has been identified as a security issue."
    Your boss has no clue , your sys admin even less.
    There is NOTHING you can do in CFC that you can't do in a
    cfml page. CFC's
    are more a logical division for the developer and offer no
    more or less
    security risk. By your boss/sys-admins logic, you shouldn't
    even be using
    CFML pages. If you can do damage to security with a CFC, then
    you can also
    do it with a standard page.
    Ask your boss what particular function or action can be
    performed in a CFC
    that can't be performed in standard page. There are none. A
    cfml page and
    CFC are really the same thing (even compile down to the same
    thing)
    The only thing I can think of is that are being misled by the
    word
    'component' and are thinking more along the lines of MS
    components that were
    used with traditional ASP. Some of these components caused
    security
    concerns. But CFC's are not the same kind of component - this
    is just an
    unfortunate naming coincidence. They should just of called
    them CF Objects
    or CF Classes. Then your boss/sys-admin would never have
    blinked an eye or
    been concerned about using them.
    Educate them.
    "quaidbrown2" <[email protected]> wrote in
    message
    news:[email protected]...
    > Are there any good answers to this question? My boss
    refuses to let me use
    > Coldfusion Components because, according to our
    sys-admin:
    > "using the components allows you to extend internal
    ColdFusion functions.
    > This
    > has been identified as a security issue."
    >
    > And because of this, he believes that he would have to
    either not allow
    > them
    > or:
    > "Define a security Sandbox for each developer. The
    Sandbox defines which
    > components can be used and which cannot."
    >
    > I have tried to read up on this issue over the past few
    days but am just
    > not
    > finding the information that I need to address his
    problems.
    >
    > Any suggestions?
    >

  • Killing a Session based on Session ID

    Is it possible to kill a Session based on Session ID ?
    The Scenarioo is when Same user logs in two different browser, the second user should not be allowed to login. But at the same tiome, the first user's session has to be killed . How to do this ?

    How to prevent duplicate posts?
    http://forum.java.sun.com/thread.jspa?threadID=632857&tstart=0

  • How can I use the same session for different components acroos application ?

    I am trying to include the components(chat, filesharing, whitboard) in different parts of my application. User should be able to access any of the component. We would like to have a single "ConnectSessionContainer" so that we don't see same user creating a seperate session for each component.
    Is there a better way of dealing with this other than declaring the "ConnectSessionContainer" in the main application ? Is there a way to check if we have a "ConnectSessionContainer" session already established ? Please help . Thanks.

    Thanks for the response. Let me explain what I am trying to do..
    I am trying to create components at different places(screens) of the flex application (not in the same .mxml file).
    Each time I create a component, I am using a "AdobeHSAuthenticator" and "ConnectSessionContainer" which is resulting a new participant in the room.
    For example
    screen1.mxml -
    <mx:Panel>
    <rtc:AdobeHSAuthenticator id="auth" authenticationSuccess="onAuthSuccess(event);" authenticationFailure="onAuthFailure(event);" />
    <rtc:ConnectSessionContainer id="mySession" >
            <rtc:Roster id="myRoster" width="100%" height="100%" />
            <rtc:Chat id="mychat" width="100%" height="100%" />
    </rtc:ConnectSessionContainer>
    </mx:Panel>
    screen2.mxml (in the same application) -
    <mx:Panel>
    <rtc:AdobeHSAuthenticator id="auth" authenticationSuccess="onAuthSuccess(event);" authenticationFailure="onAuthFailure(event);" />
    <rtc:ConnectSessionContainer id="mySession" >
            <rtc:SharedWhiteBoard id="wb" width="100%" height="100%" />
    </rtc:ConnectSessionContainer>
    </mx:Panel>
    Here, I open a screen1 and authenticate as UserA and when I try to open screen2 flex is considering me as another user though I am in the same application.
    1) How can I use different components which are in different flex files as a same User ?
    2) Should I place my <rtc:AdobeHSAuthenticator> and <rtc:ConnectSessionContainer> in the main application which calls the screen.mxml?
    3) What is the best way to do it ?
    Thanks for your time !

  • Weblogic 7.0 sp1 cluster - session replication problem

    Hi,
              I have installed Weblogic 7.0 sp2 on Win NT. To test clustering
              feature, I have installed one admin server and added two managed
              servers. All are running on same box. I could deploy web application
              to the cluster. Connection pools and every other resource is working
              well with the cluster. However I couldn't get session replication to
              work. I have modified web app descriptor, and set 'persistent store
              type' to "replicated".
              I accessed application from one managed server, in the middle of
              session I modified the port number in the URL to point to other
              managed server. It looks like second managed server has no idea of
              that session, my app fails because of this.
              Could you please help me out in this, Do I need to do any thing in
              addition to the above. I couldn't find much in the BEA manual..
              Thanks
              Rao
              

              For Web application like servlets/JSP, it is better to put one web server as proxy
              plugin before your two managed servers and access your application through web
              proxy. (You need set session as in-memory replicated either in weblogic.xml or
              by console editor). Otherwise, you need record the session cookie from the first
              serevr and send the cookie to the second server (not sure if it works). To access
              EJB/JMS, use cluster URL like t3://server1:port1,server2:port2.
              [email protected] (Rao) wrote:
              >Hi,
              >
              >I have installed Weblogic 7.0 sp2 on Win NT. To test clustering
              >feature, I have installed one admin server and added two managed
              >servers. All are running on same box. I could deploy web application
              >to the cluster. Connection pools and every other resource is working
              >well with the cluster. However I couldn't get session replication to
              >work. I have modified web app descriptor, and set 'persistent store
              >type' to "replicated".
              >
              >I accessed application from one managed server, in the middle of
              >session I modified the port number in the URL to point to other
              >managed server. It looks like second managed server has no idea of
              >that session, my app fails because of this.
              >
              >
              >Could you please help me out in this, Do I need to do any thing in
              >addition to the above. I couldn't find much in the BEA manual..
              >
              >
              >Thanks
              >Rao
              

  • Session based load balance + Prepared statements

    Experts,
    From the docs I understand that there are 3 load balancing techniques. One is client side and two are server side. Of the two, one is session count based load balancing, and as per docs, it is recommended for connection pool setting.
    My question is if I have prepared statements originally created using connection to node1, and say if listener re-directs the conneciton to another node node2, will the prepared statement work on node2 ?.
    Thanks
    Vissu

    Just to clarify, the question is:
    Are the prepared statements usable when we use session count based load balancing.

  • Cluster session replication

    Hi,
    CFMX 7.01 MULTISERVER:
    I am facing a problem, session are not replicating on two CF
    instances on same server. Below is Jrun log file error detail
    30/05 17:18:10 error Setup of session replication failed.
    [1]java.rmi.RemoteException: The web application
    'cfusion.ear#cfusion.war' could not be found to accept sessions for
    replication.
    at
    jrun.servlet.session.SessionReplicationService.replicate(SessionReplicationService.java:8 0)
    at sun.reflect.GeneratedMethodAccessor51.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 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.run(Unknown
    Source)
    at java.lang.Thread.run(Unknown Source)
    CFMX 7.01 MULTISERVER:
    My set-up, installed as multiserver. create new instance from
    CF Admin. Cluster them from Jrun Admin. I followed almost all
    instructions from live doc, and also help from other blogs.
    So far i could not findout why session can not replicate on
    same machine.
    Is any body have idea about above error.
    Thanks for your help in-advance

    In my config.xml, I have:
    <cluster>
    <name>MyCluster</name>
    <cluster-address/>
    <default-load-algorithm>round-robin</default-load-algorithm>
    <cluster-messaging-mode>unicast</cluster-messaging-mode>
    <frontend-host>192.168.6.6</frontend-host>
    <frontend-http-port>80</frontend-http-port>
    <frontend-https-port>443</frontend-https-port>
    </cluster>
    I already posted my weblogic.xml

  • Session based variable

    i have a project wich is based on online Testing System i want
    a increament in int type variable related to the user session, I have
    tryed session.setAtrribute();and session.getAtrribute(); methods but they are not working properly plz sugest me some right idea to solve my this problem
    its urgent
    thax
    ThePals

    what's not working?
    session.setAttribute("counter", new Integer(0));
    Integer counter = (Integer)session.getAttribute("counter");
    counter = new Integer(counter.intValue()+1);
    session.setAttribute("counter", counter);

  • Cluster session replica on solaris

              Hi,
                   I had made a cluster on two solarises, I want the servlet session can be replicated,
              But if I set weblogic.httpd.session.persistentStoreType=replicated , sometimes the browser will
              display message "inconsistent cookie, primary key != me " when I access a session servlet,
              and the call is failed. In other ways, session replica is O.K. If I disable this property, nothing
              occured, but session can't be replicated. who can explain it ? thanks for your help.
              Best regards,
              Zhanlu
              

              You might check:
              1. two clustering machines must have the same cluster name configured
              (weblogic.cluster.name) and port #
              2. using MulticastTest utility to check the communication is ok
              between clustering nodes
              3. there should have add server name/ip to cluster view something
              right before WL startup on each clustered nodes
              4. ping multicast adddress to see 2 nodes ip returned
              Hope this works. Brian
              "Sreenivas Gadila" <[email protected]> wrote:
              >
              >Hi,
              >
              >We are testing our environtment with weblogic5.1 sp8.
              >and we want
              >to migrate
              >to the new environment. rightnow i am using the trial
              >version of
              >your
              >software.
              >
              >
              >I have a cluster setup in my environment. i have 2 solaris
              >8 machines
              >running with weblogic 5.1 SP 8. also i have an iplanet
              >4.0 webserver
              >running
              >at the front end (I installed the NSAPI plugin for iplanet
              >webserver
              >as per
              >your instructions in the docs). now my problem is i could
              >not able
              >to get
              >the session information upon failover to the second server.
              >can
              >you let me
              >know what are all the properties do i need to setup in
              >my
              >weblogic.properties files. do i need to set up any of
              >the httpd
              >properties
              >also for clustering, cos i am not using weblogic as my
              >web server.
              >I am
              >using your simple example of SimpleSession.jsp to test.
              >here the
              >information
              >is not replicated in the cookie. Initially i get the page
              >hit from
              >1st
              >server and then the from the 2nd server but both the hits
              >are not
              >same they
              >differ in number? is this the general behaviour of the
              >example
              >or do i need
              >to tweek my weblogic.properties files on my servers.
              >
              >Here are the cluster properties in my weblogic.properties
              >file
              >which i am
              >using in my cluster servers.
              >
              >weblogic.cluster.enable=true
              >weblogic.cluster.dnsName={dns name of the server
              >weblogic.cluster.multicastAddress=224.0.0.0
              >weblogic.cluster.multicastTTL=1
              >weblogic.cluster.defaultLoadAlgorithm=round-robin
              >weblogic.system.perclusterPropertiesfile=/weblogic/mycluster
              >weblogic.httpd.clustering.enable=true
              >weblogic.httpd.session.persistance=true
              >weblogic.httpd.session.persistentStoreType=replicated
              >
              >Please let me know if i need to add / delete any of the
              >properties.
              >
              >Any help is highly appreciated
              >Thanks
              >Sreeni..
              >
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     

Maybe you are looking for

  • Firefox seems to crash all the time, when I open it, go to any page, or just seemingly whenever, and an uninstall/re-install failed. What can I do?

    It's just annoying. I've submitted all the reports, but nothing still. So, I think it might be my computer or something, please help me. :(

  • UCCX Integration with ITSM Tool

    Dear We are running Cisco UCCX 8.5 in our environment. We are in process of integrate the ticketing system with Contact Centre. Our developer needs to develop connector between Agent and Heat Service Management to get data depend on Caller ID When ph

  • DPM 2007/2010 Health Check Tools

    Hi there, I've had a look through the existing forum threads, but am unable to find an answer to my query. I am looking to find a range of DPM health check tools, or Powershell Scripts, that would help me perform a Health Check on a 2007 environment,

  • Secure connection failed is a

    secure connection failed error msg pops up about every 3-4 minutes. it's driving me nuts- i don't have the time to keep removing this window every time it appears. i'm getting this msg for websites like yahoo, google, - hey, come on - these websites

  • OSS 650345 . Error : Enter Numeric Value

    Hi All, I had applied the OSS Note 650345. With this OSS Note we can Upload Data in Background for Transaction's KP06 & KP46. While using Excel Upload in KP06 Transaction to upload the data it is working fine. When I use the same file from Applicatio