What is stateful and stateless message processing

What is stateful and stateless message processing ?
When it is used ?

Hi
Before going to Statefull or Stateless...u have to know about java and EBJ and what is session as well.
Basically we are using 2 S in EBJ.It is nothing but persistance of data.
Statefull: It means data are persists in multiple sessions.
Stateless: It means data are persists in single session.
in simple terms
if you use BPM in your integration scenario then it is stateful.
without BPM can be considered as stateless.
Business Process Management provides SAP Exchange Infrastructure with functions for stateful message processing: The status of an integration process is persisted on the Integration Server. This means that you can specify how long an integration process must wait for further messages to arrive, for example. Furthermore, this enables you to process messages within an integration process further still; for example, you can collect certain messages and then send them in a particular order.
This basically means SAP XI as a EAI tool without the BPM provides stateless message. this means that one message coming in SAP is not dependtent on another message.
BPM in SAP XI is used to make messages stateful and this allows us to do functionalities like collecting message , splitting message, waiting for a message etc.
Refer
https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/5c656a9d-0901-0010-bcaf-fed14210c991#q-16
http://help.sap.com/saphelp_nw04s/helpdata/en/93/33b504f33cb9468bf35f8fbda11294/frameset.htm
https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/5c656a9d-0901-0010-bcaf-fed14210c991
thanks
Swarup

Similar Messages

  • How to get stateful and stateless session bean in second jsp

    I create stateful session bean in the first jsp, then how can I get the stateful session bean in the second jsp? I find that somebody store the bean in HttpSession.
    If I store the stateful session bean in HttpSession, then I can get it in the second jsp. My problem is that I can store the stateless session bean in HttpSession, and get it in the second jsp. Then, both stateful and stateless can maintain the state in the second jsp. What is the difference between stateful and stateless session bean in this case ?
    I understand the definition of stateful and stateless session bean, but I'm confuse how to use session bean. Can anyone provide sample jsp to show difference of stateful and stateless? How the stateful session bean can maintain the state for the client?

    Greetings,
    I create stateful session bean in the first jsp, then how can I get the stateful session bean in the
    second jsp? I find that somebody store the bean in HttpSession.Which is the correct scope for sharing client-specific data when 'request' scope is insufficient.
    If I store the stateful session bean in HttpSession, then I can get it in the second jsp. My problem is
    that I can store the stateless session bean in HttpSession, and get it in the second jsp. Then, bothWhy is that a "problem"? Does your application not require the stateless bean to be shared? If so, then don't store the EJBObject reference in the session...
    stateful and stateless can maintain the state in the second jsp. What is the difference betweenWhat do you mean by this exactly?..
    stateful and stateless session bean in this case ?Statefulness of session beans is in regard to maintaining client state (er, in all cases). If your "stateless" bean is receiving information from the client (i.e. its caller) - either through a create method or a business method - and that information is available (retrievable from the bean) on subsequent method calls, then that bean is, in fact, stateful - regardless of how it is deployed.
    I understand the definition of stateful and stateless session bean, but I'm confuse how to use
    session bean.The correct question, it here seems, is "when" to use which type... Use a "stateful" bean when information about (from) the client (i.e. the caller) must be maintained across method calls of the bean. Use a "stateless" bean for general business methods that do not depend on "prior knowledge" of the client (i.e. the caller).
    Can anyone provide sample jsp to show difference of stateful and stateless? How the statefulA "sample JSP" would yield nothing additional... The semantics of calling, using, and "persisting", bean references are always the same - regardless of type or class. However, the reason(s) for using one over the other depends entirely on the needs of your application.
    session bean can maintain the state for the client?I recommend that you spend more time learning about EJBs generally. In particular, it seems you require more fundamental understanding of their scope and lifecycle. Refer to sections 4, 6, and 7 of the EJB 2.0 Specification.
    Regards,
    Tony "Vee Schade" Cook

  • Difference between stateful and stateless session beans

    can any body explain simply what is the difference between stateful and stateless session beans? also in what kind of situations we can use these.

    Hi
    This is the classificatio os Session Bean.
    (1) Statfull
    (2) Stateless
    Stateful means u will persists the state of the object.
    USESE:
    In a Banking system u can use the statful session just for maintaing the
    state.
    (2) STATELESS: that's mean u do't want to persists any state of the object. that's mean a single Request is coming ,do the desire and give the output.
    EX: A Credit Card System is the Example of Stateless.
    May it will helpfull to understands u. if any need write here
    saM

  • GetUserPrincipalName() and mixing between stateful and stateless

    I am using VPD, BC4J and the Struts version included in JDEV 9.0.3 final version.
    When I am calling
    String userName = getUserPrincipalName();
    from ApplicationModuleImpl it works fine as long as I am using stateful for all BC4J viewobjects, but when I am mixing between a stateful and stateless application module, getUserPrincipalName() will return the previous users principal.
    An Example that will cause this problem:
    User 1: Goes to a web page using a stateful AM
    User 1: Goes to a web page using a stateless AM
    User 2: Goes to a web page using a stateful AM
    when user 2 goes to a stateful page he will retrieve
    user 1's principal.
    My questions are:
    1) Does getUserPrincipalName() only work under stateful?
    2) Does a struts application using stateful application module lose stateful state after calling a stateless application module?

    Ahhh forgot to add something...
    if you want to keep your existing exception hirarchy (ABCException extends RemoteException).
    then make sure that in your statefull session bean the order of the catch block is first the catch(ABCException) and then the remote exception.
    If the catch block for remote exception comes first, then the ABCException will be sent to that block itself because ABCException is a sub class of remote exception.
    However, IMHO, business exceptions should not extend the remote exception... as the RemoteException is used to report technical errors and not business errors.
    hope this helps ....
    regards,
    Abhishek.

  • Stateful and Stateless BSP Application

    Hi Experts,
    I would like to know what a stateful/Stateles BSP Applicaiton means. I read the description given in help file but couldn't get the full idea behind it. Could anyone give a practical example for the same and explain. Thanks.
    Regards,
    Prabaharan

    Hi,A stateful BSP application is executed like a normal SAP transaction, – independent of all user interactions - in one single context (roll area). This means that data specified by the user during the application execution or data determined by the application itself is available potentially throughout the entire execution duration of the session.
    Since the HTTP protocol itself operates in stateless mode and knows no implicit mechanism to assign independent requests to a common logical session, the BSP runtime uses Session Cookies to group requests into one common session. The name of the cookie is sap-contextid, the validity area is restricted to the URL of the BSP application. This means that a BSP application can be executed within a browser only once at any one time. Different BSP applications can operate in parallel in the same browser. Multiple users/browsers can execute the same BSP application in parallel as often as required.
    Advantage
    The main advantage of stateful BSP applications is that they are simple to program. As usual, you have access to data determined previously and reading or re-calculating data can often be omitted. For database-intensive applications, this can lead to considerably better system performance compared to a procedure where identical read operations have to be executed for every request.
    Disadvantage
    This significant advantage is at the same time however a disadvantage – the improved runtime is offset by a larger memory requirement. The number of possible parallel sessions in an SAP Web Application Server is restricted not least by the amount of available memory space. When this space is exhausted, no further sessions can be started and users cannot log on
    Stateless BSP applications only block resources on the SAP Web Application Server during the time one single request is being processed. When the request has been processed, all resources in particular the application context are returned to the system for use in other requests.
    Stateless applications allow - at least from the viewpoint of the memory resource – optimal scaling regardless of the number of users. On the other hand, releasing the application context after every request may mean that identical data is read from the database and formatted multiple times. In this respect, the runtime may offset the memory saving. This should be evaluated and analyzed on a case by case basis.
    Rule of Thumb: Stateful or Stateless?
    As a rule of thumb, it is recommended that Internet scenarios used at the same time by a large number of users operate in stateless mode. Stateful programming is recommended for more complex applications that are used by a limited number of users in parallel and that operate with data that is expensive to determine.
    hope this helps.
    regards,
    keerthi.

  • Stateful and stateless firewall

    ASA5505 has a feature of "Stateless Active/standby" HA? What is the meant of stateless? And what is the meant of "stateful firewall". Thanks

    Hi Eric
    To answer the 2nd part of your question.
    A stateful firewall keeps track of the "state" of connections based on source/destination IP, source/destination port and connections flags. It can really only keep state for TCP connections because TCP uses flags in the packet headers. eg
    When a client telnets to a server.
    Client address = 192.168.5.1
    Server address = 172.16.5.2
    The client picks a random port eg 33212 and sends a packet to the server
    source IP = 192.168.5.1
    source port = 33212
    destination IP = 172.16.5.2
    destination port = 23 ( 23 is telnet port )
    TCP Flag = SYN
    Server responds
    source IP = 172.16.5.1
    source port = 23
    destination IP = 192.168.5.1
    destination port = 33212
    TCP FLAG = SYN/ACK
    Client responds
    Same as original client packet except
    TCP FLAG = ACK
    The above is called the TCP 3 way handshake.
    Now lets say there is a stateful firewall in between the client and the server.
    When the firewall sees the initial packet from the client it records all the info above.
    When the server responds the firewall looks up it's state table to see if it has a matching entry for the connection and finds it does. What's more because the firewall expects to see a SYN/ACK from the server because it recorded a SYN from the client. So the packet is allowed.
    Now lets say the client hasn't sent an intital packet and the server sent a packet with the same info as above. The TCP FLAGS are SYN/ACK but the firewall has no record of a SYN packet sent from the client. So the packet is dropped.
    In essence this is how stateful firewalls work . They keep track of each connection and allow the traffic to flow through only if there are corresponding entries in it's state table.
    For non-TCP protocols eg UDP there are no flags so the stateful firewall sets a timer ie. if it sees a DNS query go out it records the IP source/destination and the Port source/destination. If within a certain amount of time a packet is received back with the same IP'S and port number, although obviously the source and destination are flipped, the packet is allowed through.
    Hope this makes sense
    Jon

  • What are Swift_payload and Swift_par messages?

    Hi All,
    I want to know why there are two messages in Swift interfaces Swift_payload and Swift_par?. In standard file act interface Swift_payload_par gets splitted into these two messages.
    Can anyone please tell me the significance of this splitt? Also why payload is genrated first follwing it the par?
    Thanks
    Jayesh

    No Sriram, the file from ECC to PI will not be encrypted.
    After Splitting the file, the payload file will be PGP encrypted before sending to SWIFT.
    I have created one sender File communication channel to pick input file generated by SAP BCM which they place in our system landscape directory.
    Have used the adapter module: localejbs/swift/FileActConversionToSWIFTModule
    Parameters: DetachParameters - true
    I have created two receiver FILE communication channels, one for payload file and the other for .par file to send these files to SWIFT.
    Payload receiver channel
    Have used the adapter module: localejbs/swift/FileActConversionToSWIFTModule
    Parameters: DetachParameters - true
    Parameter receiver chanel
    Have used the adapter module: localejbs/swift/FileActConversionToSWIFTModule
    Parameters: DetachParameters - true
                       UseLocalSecurity - true
                       KeyId - the one maintained in the Key manager application (due to this Loca authetication                    is working fine and the algorithm and the key value is populated in the .par file but due to                      splitting issue overrides are missing).

  • Stateful message processing for async scenario

    Dear all,
    my async scenarios:
    1. RFC -> PI -> File
    2. File  -> PI -> RFC
    Following facts:
    - The second message is a response to the first one. Both message are separted and async.
    - Scenario 2 can be send some hours after Scenario1.
    - A response should only be send if  a specified field in the message of first scenario is filled. 
      For example: Message in scenario has a field <ResponseNeeded>YES</ResponseNeeded>
      This field does only exist in message of scenario 1.
    - Both message have an ID field (e.g. <ID>4711</ID>) which can be used to identified the
      corresponding message.
    Questions:
    - Is it possible to use stateful message processing for this scenario? Or do I need BMP + Correlation?
    - A service interface with pattern "stateful" can only be used synchronously. So is it
      possible to use this stateful for async message processing at least?
    I would assume that I will need a BPM that sends the messsage and keep alive until a
    response will be sends with same ID. After this I would check message of scenario1 and
    send (or even not) the message of scenario2 to receiver depending on <ResponseNeeded>.
    Thanks in advanced.
    Chris

    Hi Chris,
    Although BPM is possible here, I would not recommend you to use one here for the reason,
    >>Scenario 2 can be send some hours after Scenario1.
    This means you are keeping a process alive for so long which is not a good thing to do.
    You could end up with a lot of open/live process instances.
    Having said that, if you still wish to go ahead with BPM, the steps would be
    1. Receive async (RFC req) - start process, correlation based on ID.
    2. Switch step (Evaluate ResponseNeeded)
    branch 1(True): a.  Send asynch step - File
                               b. Receive async - File correlation - ID.
                               c. Send async - RFC call.
    branch 2(false) a. Send async -File
    3. Stop process.
    Regards
    Jai

  • Stateful vs Stateless

    Hello,
    I am trying to understand the difference between a stateful and a stateless bean. I have read the J2EE tutorial and the whole ejb concept is great! One problem though, I don't understand what a client-bean session is or how it works. Could someone please explain this and possibly give me a qualitative example of how it fits into both the stateful and stateless bean? This should be easy duke dollars for any ejb expert! Thanks.
    Chris

    hi,
    stateless session cannot maintain the state of the client i.e between the method calls no client inforamation is retained. once the request is processed the container may remove the bean from the memory or it maintain the bean in the pool in order to process the requests that are coming from other clients for the same.
    eg. Assume you have a business method in bean class.
    public class ConvertBean implements SessionBean
    public int convertCurrency(int dollars)throws RemovteException
    ....code
    This method is just for converting one type of currency into another type. For that we need not bother about the client. For this stateless session is sufficient.
    Stateful session bean maitains the state of the client i.e it retains the information between method calls.
    the object exists in the memory as long as the client is communicating with the server. Its state is not permanent.
    eg . shoping cart
    public class CartBean implements SessionBean
    protected Vector v;
    public void ejbCreate()
    v = new Vector();
    public void addItemToCart(Object item)
    v.addElement(item);
    No two clients share the same stateful session bean.

  • Prioritized Messages in combination with Event-Driven Message Processing

    Hi,
    our Scenario (EO): Sender A sends large IDocs to Receivers X and Y (> Split)
    1.
    What we did first:
    Prioritized Message Processing
    Sender A sends large Messages, therefore we prioritzied Messages in the IE with EO_MSG_SIZE_LIMIT > 4000.
    This works fine: Messages are queued in XBTL and XBTM and afterwards they are send to Receiver X and Y.
    2.
    What we did next:
    Event-Driven Message Processing
    Now we want to send the Message from Sender A to Receiver X directly and to Receiver Y at night time.
    We add Event-Driven Message Processing, Sender- and ReceiverID for A and Y,Job and so on...
    On it's own (without Prioritized Message Processing), this works fine: The messages are send at night time.
    But in combination (Event-Driven + Prioritized Message Processing) the messages only passes the Prioritized Message Processing and the Event-Driven is ignored.
    Our "Hop-List" for Split A to Y was:
    1. XBTL
    2. XBTJ2008...
    3. XBTM
    But actually all Messages passes:
    1.XBTL
    2.XBTM
    Why are the messages not filtered for the Event-Driven Message Processing (in combination with the Prioritized Message Processing)?

    It was an error in the SourceCode and is now corrected by SAP:
    Hinweis 1295746 - XI Runtime: Fehler in Ereignisgesteuerte Messageverarbeitung
    Olaf

  • TS3140 I tried to order a book on iPhoto but got the following message from apple :  the file contains text with drop shadows. As a result, Apple is unable to process your order"  Does anyone know what this means and how to fix it?   Thanks!!

    I tried to order a book on iphoto but got the following message from Apple  : "the file contains text with drop shadows.  As a result Apple is unable to process your order"  Does anyone know what this means and how to fix it?  Thanks!! 

    Hello Katiebell62
    Check out the troubleshooting steps to try and resolve your issue with purchasing a book through iPhoto.
    iPhoto: Difficulty submitting a book, card, or calendar order
    http://support.apple.com/kb/TS2516
    Thanks for using Apple Support Communities.
    Regards,
    -Norm G.

  • SunMC - Process is forking and reaping child processes. What's that?

    Hey folks,
    Im really new to the sysadmin world, and I think maybe my company really didn't think things well when they've decided to put me doing this, hehehe.
    I work with a general queue for which my team receives tickets with different kind of problems, among them, Automation Alerts (I think you all know what Im talking about).
    Recently (maybe 2-4 days) we've started to receive an Automation Ticket with the following message:
    Solaris Process Monitoring Process Monitoring Base03 CPU
    time for reaped children 107.1 30.0 Process is forking and
    reaping child processes.
    I've found almost nothing about this, and even when I think what's this ticket about (I've closed 2 or 3 of them stating no issues were found), I really want to understand and know where to look and if something can be done about this, because processes on the server and general state of it seems in good condition and nothing looks bad, apparently. The server is a Solaris 10 with zones.
    Can you shed some light on this? I'd appreciate all the help you can give me.
    Thank you and regards all.

    The same thought occurred to me, except I started seeing "failure" logs in JAMF the morning after we run maintenance policies. All of these failures were due to the Mac not restarting, which isn't really a failure - more of an inconvenience - since the second part of the policy (removing eTrust antivirus and restarting is part 1, installing SEP 12.1 and restarting is part 2) runs immediately on restart no matter what time of the day it is.
    In some cases the macs did not restart because the user had unsaved work or something else that would cancel logout. In this case, Casper prompts the user to restart and waits until the OK button is clicked, then counts down 1 minute and restarts. In the other case, nothing would have prevented logout yet the computer still did not logout and then restart, leading me to believe that the reason the Mac did not log out was a locked desktop, and since I am telling System Events to simulate a gui log out, this would be blocked by a locked desktop.
    The problem basically stems from the following two issues: 1. I am not to force a logout or restart when a console user is logged in and 2. Casper will not automatically log a console user out on it's own OR restart the computer if a console user is logged in - and then I have to rely on the end user to follow on screen instructions since the Casper restart prompt can be moved to the side and effectively ignored.
    When no restarts are required for the various policies we run, this is not an issue. And anyway, I originally just wanted to know what process is running when a desktop is asleep and locked, but no screen saver is active...

  • Hi Experts , I am currently facing problems while running restricted version copy .. The log says 0 location products copied and that the process has has timed out. the error message is /SAPAPO/MVM_INT_SVC_CO_VER_LCW reported exception in task DP00014, th

    Hi Experts , I am currently facing problems while running restricted version copy in sap apo .. The log says 0 location products copied and that the process has timed out. the error message is " /SAPAPO/MVM_INT_SVC_CO_VER_LCW reported exception in task DP00014 " , then ending in time limit exceeded. could anyone explain why this happens. please note even if the log says 0 location products copied , in reality they have have been partially copied.
    Regards
    Jerel

    Hi, thank you for your replies, I found out few things about my servlet, and its portability
    and i have few questions, although i marked this topic as answered i guess its ok to post
    I am using javax.servlet.context.tempdir to store my files in that servletcontext temporary directory. But i dont know how to give hyperlink
    of the modified files to the user for them to download the modified files.
    What i am using to get the tempdir i will paste
    File baseurl = (File)this.getServletContext().getAttribute("javax.servlet.context.tempdir");
    System.out.println(baseurl);
    baseurl = new File(baseurl.getAbsolutePath()+File.separator+"temp"+File.separator+"files");
    baseurl.mkdirs();so i am storing my files in that temp/files folder and the servlet processes them and modifies them, then how to present them as
    links to the user for download ?
    and as the servlet is multithreaded by nature, if my servlet gets 2 different requests with same file names, i guess one of them will be overwritten
    And i want to create unique directory for each request made to the servlet , so file names dont clash.
    one another thing is that i want my servlet to be executed by my <form action> only, I dont want the user to simply type url and trigger the servlet
    Reply A.S.A.P. please..
    Thanks and regards,
    Mihir Pandya

  • HT1926 Trying to re-install iTunes and the message "Apple mobile device failed to start. Verify that you have sufficient privileges to start system services." But I don't know what to do? Please can someone help, I'm not the most technologically advanced

    Trying to re-install iTunes and the message "Apple mobile device failed to start. Verify that you have sufficient privileges to start system services." But I don't know what to do? Please can someone help, I'm not the most technologically advanced person.

    Go to Control Panel > Add or Remove Programs (Win XP) or Programs and Features (later)
    Remove all of these items in the following order:
    iTunes
    Apple Software Update
    Apple Mobile Device Support (if this won't uninstall move on to the next item)
    Bonjour
    Apple Application Support
    Reboot, download iTunes, then reinstall, either using an account with administrative rights, or right-clicking the downloaded installer and selecting Run as Administrator.
    The uninstall and reinstall process will preserve your iTunes library and settings, but ideally you would back up the library and your other important personal documents and data on a regular basis. See this user tip for a suggested technique.
    Please note:
    Some users may need to follow all the steps in whichever of the following support documents applies to their system. These include some additional manual file and folder deletions not mentioned above.
    HT1925: Removing and Reinstalling iTunes for Windows XP
    HT1923: Removing and reinstalling iTunes for Windows Vista, Windows 7, or Windows 8
    tt2

  • "up and running  no message processing until now"

    Hi,
    I am doing a multiline scenario with File Content Conversion. In Adapter Monitor, Message is processed in the sender CC and in the Receiver CC it shows "up and running  no message processing until now"
    Whats mean by this ?. What is the status of my message ? Where I can monitor the message send from sender communication to the Receiver communication channel (If not in SXMB_MONI ?)
    Thanks,
    Ram

    hi,
    check adapter message monitor:
    http://hostname:portnumber/MessagingSystem/monitor/monitor.jsp
    you should see all message over there
    Regards,
    michal
    <a href="/people/michal.krawczyk2/blog/2005/06/28/xipi-faq-frequently-asked-questions"><b>XI / PI FAQ - Frequently Asked Questions</b></a>

Maybe you are looking for

  • I have a huge amount of songs on my Mac in files that aren't in iTunes.  what is the best method to import them all into iTunes easily?

    When I got my 1st MacBook Pro I was coming to the Mac world from a PC.  When importing all the files from my PC to Mac the files got scattered bad, and now I am faced with the dubious task of getting my music library all into iTunes so I can organize

  • Mcbook connection to TV

    Hi all, new Macbook user, very much an X windows user now and happy to admit it. OK enough compliments, my question. I have a new Macbook that has a small DVi connection. I purchased a dvi to vga connector to connect to a vga tft monitor, this works

  • Drag and Drop in List

    Hi All, Am using List control to display the data and also the itemRenderer .I set the attributes, DragEnabled,DropEnabled,DragMoveEnabled to true and also have the Trash icon to remove the Items from the list. In the ItemRenderer am displaying the d

  • Access SAP BW from Java

    Hello, I need to build a Java web application that can collect and display data from various SAP BWs. Write operations are not required. What is the easiest way to do that? I found that SAP Open Hub Service lets you extract the data to a CSV file or

  • Opening with external editor always makes new version

    i am a fine art figure photographer and portrait artist. almost every photo that i want to finish has to be round tripped to photoshop for retouching. in Aperture 1.5, i could select a photo, open in external editor (photoshop cs3), make my retouches