Session management or Managing State

Hi,
How does one manage sessions or maintain state between a web service client ( client could be any platform .NET or Java), and a web service using session beans?? (EJB 2.1 spec for web services insists on stateless session beans). I have not been able to get any convincing mechanism in weblogic docs.
Thanks

Thanks for your response Don. What kind of information (about the app) do
you need? I'll provide as much as I know. Thanks again.
Peter
"Don R" <[email protected]> wrote in message
news:3984bf2e$[email protected]..
You need to give a little more information about the application.
Yes you can use Stateful session beans to maintain state, however, youneed
to have some place to store the handle. With out any more info on your
application, I can't really tell you how to proceed.
Don Reamey
www.ibexone.com
www.reamey.com
"Peter Ephron" <[email protected]> wrote in message
news:3981dd29$[email protected]..
I need some help!!! I am new to WLS so please keep the description as
descriptive as possible.
My project includes building EJB-based security application that talks
to
LDAP. The application will be used by all kinds of system such as
powerbuilder, C app, Microsoft app, and of course java app. The problemwith
this is that we cannot maintain Session by using HTTP Session (thatservlet
provides) due to the nature of a lot of different systems using this
"common" security module. So my question is: what does Helen mean bysession
key (see below message)? is there a way Weblogic keep the connection, or
managing session and state if you will within EJB side of things not
servlet? Is there more information/documentation about this? any API? If
yes, could you point me to the right direction? is it through Stateful
Session Bean?
I really thank you for taking your time to read my email, and I reallywould
appreciate your kindness to take your time answering. If you're not
clear
with some of the questions, please let me know.
Sincerely,
Pete

Similar Messages

  • How to open multiple Sessions in Solution Manager

    Good Day Gurus,
    I am currently working on Solman 7.1 Sp12.My question is :Is it possible to open multiple sessions in Solution Manager? Here is the scenario: The client is working on multiple incidents and instead of logging on to the system again to access the 2nd incident he would like to open another session within the current call he is working on.
    Is this functionality possible in Solman? I have seen the functionality working before  in CRM interaction center not sure if it applies in Solman.
    Your help is highly appreciated.
    Thanks
    Maria

    Hi Maria,
    Options to Call a Function in an SAP System, by entering transaction codes in the command field, the transaction in bold is the one your want for opening multiple sessions.
    You can use the F1 key on the command field to display the following possible entries:
    /N to cancel the current transaction
    /NXXXX to call transaction XXXX directly from another transaction. Without the prefix, you can only call XXXX from the SAP Easy Access screen.
    /O to display the overview of the SAP GUI sessions on your computer
    /OXXXX to call transaction XXXX in a new window directly from another transaction
    /NEND to end the log on session with a confirmation dialog box
    /NEX to end the log on session without a confirmation dialog box
    /I to delete the window you are currently using
    Regards,
    Ruth

  • Access session values in Managed Bean

    I want to acces session attribute values in my Managed Bean class.
    This is my code in SecurityPhaseListener.java class,
    HttpSession session = (HttpSession)facesContext.getCurrentInstance().getExternalContext().getSession(true);
    String isAuthorized = "false";
    session.setAttribute(isAuthorized, isAuthorized);
    This is my configuration for My managed bean in faces-config.xml class
    <managed-bean>
    <managed-bean-name>setNewDayBean</managed-bean-name>
    <managed-bean-class>com.hli.vipstar.uswm.setnewday.managedbean.SetNewDayBean</managed-bean-class>
    <managed-bean-scope>request</managed-bean-scope>
    </managed-bean>
    Now i want to access the attribute "isAuthorized" in my managed bean SetNewDayBean.java.
    How to do this?
    Any one help me...........

    The same way, but then using getAttribute() instead of setAttribute().
    Another -more clean- way is to use the ExternalContext#getSessionMap(). It will make your code independent from the session implementation used. You may find this article useful as well: http://balusc.blogspot.com/2006/06/communication-in-jsf.html

  • ConfigMgr 2007 Management Point Health: State

    I am getting this, how to fix this issue. SCOM 2012
    Any body knows the triage to fix this issue
    Manjish

    Hi,
    Verify that the SMS Agent service is running.
    Check the MPControl.log file and component status for MP_CONTROL_MANAGER for more details.
    ConfigMgr 2007 Management Point Health: State Rule
    http://mpwiki.viacode.com/default.aspx?g=posts&t=119435
    Note: Microsoft provides third-party contact information to help you find technical support. This contact information may change without notice. Microsoft does not guarantee the accuracy of this third-party contact information.
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact [email protected]

  • View forms sessions like Enterprise Manager

    I have exactly the same question as one here:
    View forms sessions like Enterprise Manager
    But that was archived so I can't reply. Basically, I want to find the client IP associated with a given frmweb process on the Fusion Middleware server running Oracle Forms. Other than checking EM, can this be done on command line, or find this info in any file? I've checked lots of log files and /proc (I'm on Linux), ran lsof and various other commands. None helped.

    Solution:
    http://yong321.freeshell.org/oranotes/FormsServerSessionMonitor.txt

  • Wiring managed beans - managed-property not updated.

    I have a search page with a text field for entering a substring search.
    Upon clicking submit, a list will be displayed below based on the given substring.
    I wired two managed beans together: one was a substring of type String,
    the other a facade that has a getSubstring and setSubstring method.
    The Facade also has a getList method that returns a list.
    Session:<h:outputText value="#{substring}"/>
    List: <h:outputText value="#{Facade.list}"/>
    What happens is that the session variable is being updated everytime I submit the form
    but the list is the one that was displayed the very first time the form was submitted.
    Subsequent changes to the substring has no effect on the list.
    I tried this because I read somewhere that this is an alternative to putting the
    properties of the form together with the facade.
    However, upon reading the documentation of the struts-config,xml,
    The managed-property will only be set at the creation of the managed bean.
    and not everytime the tag referencing the bean is evaluated.
    Any workaround to making this work?
    Given the scenario above, what is the best design for it?
    I'm thinking of putting an action field in the commandButton
    and then set the list as a session variable,
    which will be accessed by the jsp after the action forwards to the page.
    Is this strategy any good?

    Sure... here it is...
    <faces-config>
    <managed-bean>
    <managed-bean-name>substring</managed-bean-name>
    <managed-bean-class>java.lang.String</managed-bean-class>
    <managed-bean-scope>session</managed-bean-scope>
    </managed-bean>
    <managed-bean>
    <managed-bean-name>Facade</managed-bean-name>
    <managed-bean-class>com.Facade</managed-bean-class>
    <managed-bean-scope>session</managed-bean-scope>
    <managed-property>
         <property-name>substring</property-name>
         <value>#{substring}</value>
    </managed-property>
    </managed-bean>
    </faces-config>
    public class GroupingFacade {
         private String substring;
         public void setSubstring(String substring;
              this.substring=substring;
         public String getSubstring(){
              return substring;
         public List getList(){
              ArrayList list=new ArrayList();
              //Get list from DAO
              //DAO.getList(substring);
              return list;
    }

  • Problem with non-container managed entity manager

    i am working on a project, in which i am using entity beans.i use netbeans, glassfish as application server and toplink as persistence provider .
    i created a java class that handles all the operations with the entitys, which means i using non-container managed entity manager.
    in the constructor
    try{
                EntityManagerFactory emf = Persistence.createEntityManagerFactory("voidPU");
                entityManager = emf.createEntityManager();
            catch(Exception ex){
                throw new EJBException(ex.getMessage());
            }then i call a function in this class from a servlet
    the code of the function
    List users = null;
            try {
                ProgLanguages progLanguage = entityManager.find(ProgLanguages.class, languageId);
                users = (List) progLanguage.getUserIdCollection();
            catch(IllegalStateException illegalStateException){
                throw new EJBException(illegalStateException.getMessage());
            catch(IllegalArgumentException illegalArgumentException) {
                throw new EJBException(illegalArgumentException.getMessage());
            }i got an IllegalArgumentException saying Unknown entity bean class: class vanguard.server.entity.ProgLanguages, please verify that this class has been marked with the @Entity annotation
    what confuses me is that sometimes it works and most of the time it does not work, have i made anything wrong?, or there is a problem with any of the tools netbeans, glassfish, or toplink?

    Is it always the same entity that is reported as 'unknown' ? You mention that it works sometimes but is it the same deployment and the same code that works? The first thing I would verify is that the ear is being created as expected by netbeans. Check the persistence.xml file and verify that all of the classes are listed that will be used as entities.
    --Gordon                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

  • How to use application managed entity manager in EJB?

    I finish reading The EntityManager Interface in JEE tutorial.
    I know I can use container manager entity manager in EJB, but I want to explore how to use application managed entity manager in EJB.
    Can I use application managed entity manager in EJB (container management JTA transaction is used)? Where do I should close entity manager if can?
    The following is an example from JEE tutorial, but didn't find where to calose entity manager. and can I create mutiple EntityManagerFactory objects and Entity Manager objects to use them in a JTA transaction?
    @PersistenceUnit
    EntityManagerFactory emf;
    EntityManager em;
    @Resource
    UserTransaction utx;
    em = emf.createEntityManager();
    try {
      utx.begin();
      em.persist(SomeEntity);
      em.merge(AnotherEntity);
      em.remove(ThirdEntity);
      utx.commit();
    } catch (Exception e) {
      utx.rollback();

    Seems like a very poor example, the whole power of EJBs is to use Container Managed Transactions so you don't NEED to manage the transaction and the entity manager yourself. What you posted is code I would expect in a non-JEE application, or in a piece of code which requires fine-tuned transaction boundaries such as batched data importing logic.
    If I were you I'd research JPA in steps.
    a) learn about JPA as an API outside of the scope of EJBs (recommended reading: the book 'Pro JPA 2')
    b) learn about Container Managed Transactions in EJBs
    c) learn about Bean Managed Transactions in EJBs
    Right now you're rushing into c). I can understand that it raises many question marks at this point.

  • Disabling Action Button for only manager in Manager Self Service

         Hi people,
    I have a requirement in SSHR. I created one SIT for training assessment and added this function to Manager Self Service. So, if a manager logs into the system and clicks this function, he will be able to see the subordinates reporting to him. He can choose Action button against any of them to fill the assessment form. But the Action button is also visible against the manager name. My client Wants the Action button to be hided for Manager (as manager should not be allowed to fill his own form) and only wants action button to visible for subordinates reporting to him. Is there any way to achieve this through any profile option or personalisation
    Thanks

    Hi,
    I am not sure if it is possible through personalization please, give a try.. If this doesnt work I think you can go for user hook and put validation like if selected person is same as initiator then throw an error.
    Thanks,
    Avinash

  • Looking for "Window Manager\Window Manager Group" SID

    Hi. I am trying to find the SID for "Windows Manager\Window Manager Group". If anyone has that, I'd appreciate it. I am trying to build my "base build" Security Template for Server 2012, and I need to assign the default User Rights to that group, as it is
    out-of-the-box. Problem is that the GUI does not accept that group name as valid, but I can see that the group is assigned user rights in the Local Security Policy. I typically just use a file ACL to do this (add the ACE and then run
    icacls to get the SID), but that group name is not valid within that tool either. My guess if that this new "Windows Manager\Window Manager Group" group is a well-known SID. Thanks.

    Ironically the SID is not listed on Microsoft's web page for well know
    SIDs. I also noticed that when I dump the local users using powershell, every group and user is listed that I would expect to see, but this one is not in that list. It seems like it should be pretty easy for Microsoft to say what this does and when it can
    be safely removed...
    I figure one of two possibilities. Either this only matters when a specific feature is installed / active, or it is some remnant from development for a feature or implementation that didn't make it into the release to manufacturing. What ever the case it
    would be nice if we could get clarification.

  • Can't connect to Configuration Manager Service manager

    So after a failed upgrade to R2, I've had to restore the database as the R2 upgrade corrupted the DB.
    I am now working though the minefield of component errors. However I can't connect to the configuration manager service manager, I get this error:
    Error communicating with the specified Configuration Manager Site Server
    So I have done a site reset and I still have the same issue.
    I have tried several accounts, all with full permissions on the site server and in configuration manager.  I'm stumped now.
    Anyone experienced this before and found a solution?

    Hi,
    Any useful information in your ConfigMgrSetup.log and windows event log?
    Best Regards,
    Joyce Li
    We
    are trying to better understand customer views on social support experience, so your participation in this
    interview project would be greatly appreciated if you have time.
    Thanks for helping make community forums a great place.

  • How find manager's manager in hr report

    hi,
    i want to find manager's manager in hr report...Suppose there is organization A having organization unit B and C.
    In organization unit B there is Manager and Assit Manager and Some other employee.
    Now other employee report to Assit manager and Assit Manager report to Manager. And Manager report to director.
    Error :-- But i am getting all employee reporting to manager...and manager is enable to report to director..
    Pls help in the above

    hi raja, thanks for ur reply..still i have same problem ...i had used below code...kindly can u tell what goes  wrong below....
    SELECT SINGLE sobid INTO w_sobid FROM hrp1001 WHERE otype EQ 'P' AND objid EQ p_pernr AND plvar EQ '01'
    AND rsign EQ 'B' AND relat EQ '008' AND sclas EQ 'S'.
    IF sy-subrc EQ 0.
    w_objid = w_sobid.
    CLEAR w_sobid.
    *gets organisation 'O'for the position 'S'
    SELECT SINGLE sobid
    INTO w_sobid
    FROM hrp1001
    WHERE otype EQ 'S'
    AND objid EQ w_objid
    AND plvar EQ '01'
    AND rsign EQ 'A'
    AND relat EQ '003'
    AND sclas EQ 'O'.
    IF sy-subrc EQ 0.
    w_objid = w_sobid.
    CLEAR w_sobid.
    *gets Managerial Position 'S' for the organisation 'O'
    SELECT SINGLE sobid
    INTO w_sobid
    FROM hrp1001
    WHERE otype EQ 'O'
    AND objid EQ w_objid
    AND plvar EQ '01'
    AND rsign EQ 'B'
    AND relat EQ '003'
    AND sclas EQ 'S'.
    IF sy-subrc EQ 0.
    w_objid = w_sobid.
    CLEAR w_sobid.
    *gets the Personnel Number 'P' holding the Managerial Position 'S'
    SELECT SINGLE sobid
    INTO w_sobid
    FROM hrp1001
    WHERE otype EQ 'S'
    AND objid EQ w_objid
    AND plvar EQ '01'
    AND rsign EQ 'A'
    AND relat EQ '008'
    AND sclas EQ 'P'.

  • Recovery_mode managed vs managed real time apply

    Hello All,
    I am using Oracle 11.2.0.3
    My primary database is an Oracle RAC 2 nodes database with ASM and my standby database is a single instance physical standby database on file systems.
    My protection mode is MAXIMUM PERFORMANCE
    What is the difference I do :
    alter database recover managed standby database using current logfile disconnect; (managed real time apply)
    and
    alter database recover managed standby database  disconnect; (managed)
    Does managed real time apply have any performance impact or disadvantage?
    Regards,

    Does managed real time apply have any performance impact or disadvantage?
    Performance i don't think will not be..
    For the rest of the queries you have to deside what is real use of it..? I will so you path of pros and cons of it
    Difference between real time apply and active dataguard
    What are the pros and cons using Active Data Guard vs Data Guard?
    redo apply Vs real time apply

  • Implementing Finanacial Supply Chain Management - Collections Managment

    Dear all
    We are in the process of Implementing Financial Supply Chain Management - Collections Management. We are also looking at business content in BI 7.0 as reporting solution.
    While 0CLM_MC1 and 0CLM_MC2 are providing most of the data related to call worklist (like amount due, amount disputed, amount promised,dunning level etc etc) , an important piece of information that is crucial for debt reviews which is the text information stored in promise to pay and customer contact is missing.
    Is there any way to upload this information (Long Text)  is BI.
    Thanks & Regards
    Sachchida Nand Dubey

    Hi,
    U can go for BDC to upload ..
    i.e.
    'GUI_UPLOAD'
    In general BDC and BAPI's are used to upload the data...mainly BAPI s are used to upload the bulk data...
    if it screen flow then go for BDC upload...otherwise go for the BAPIs FM's
    Regards
    Kiran
    Edited by: Kiran Saka on Feb 9, 2009 10:52 AM

  • Content Switching Module (CSM): Sessions stuck in closing state

    Hi guys,
    I'm troubleshooting a CSM with 4.3(1).
    We migrated a real server from windows to linux, since then lot's of sessions stuck in closing state until the idle timer expires.
    I traced the traffic from the client to the csm and from the csm to the real server what I saw is the following behaviour at the end of a session:
    windows real server: client sends FIN -> real server acks the FIN -> real server sends FIN -> client sends RST -> real server sends RST -> CSM deletes session from session table
    The linux real server mostly behaves like the windows real server but sometimes behaves as follows:
    client sends FIN -> real server sends  FIN, but does not ack the FIN sequence number of the client -> real server sends RST -> client sends RST -> CSM does not delete  session from session table, it stucks in closing state
    Does anybody know how I can solve this problem of half-closed sessions other than decreasing the idle timeout?
    Is it possible to configure CSM to close and delete sessions not only on FIN-ACK packets but also on RST packets?
    Or to use a different fast idle timeout when sessions are half-closed?
    Many thanks in advance,
    Thorsten

    Hi Fabrizio,
    CSM_FAST_FIN_TIMEOUT is already set to 10 seconds.
    What I found out while testing is that CSM_FAST_FIN_TIMEOUT works with configurations where idle timeout is configured > 0.
    But when idle timeout is configured to 0 (what meas no idle timeout) the csm seems not to use CSM_FAST_FIN_TIMEOUT: Half closed sessions will stuck in closing state.
    Any idea why cms behaves this way?
    Regards,
    Thorsten

Maybe you are looking for