Earlier days when I used to do coding, I used mostly Stateless Session Beans and all the info needed to traverse across pages was put in HTTP Session object. Back then(and even now) I never understood the "USP" of EJB being "transparent" and "safe" for "business layer" implementation with its round about ways of dealing with Skeleton and Stub and other jargons which were an overkill masquerading in the name of ease of use/secure. I was just wondering why exactly one would have used Stateful Session EJB, if the same can be accomplished via a SLSB + HTTPSession? Please dont give me the high level example of Shopping cart or bank app, as I already know that. I am looking for some answer that would be detailed on why coders chose SFSB over SLSB+HttpSession. Plus how are these session related stuff handled in your experience recently?
Session info across EJB (Stateful Session Beans ) vs HTTP Session vs modern frameworks
240 views Asked by Spear A1 At
1
There are 1 answers
Related Questions in HTTP
- Handling both JSON and form values in POST request body with unknown values in Golang
- Why can't I use PUT requests?
- nginx set up reverse proxy from subfolder to a port
- Async Web Server RP2040 returning ERR_CONNECTION_REFUSED?
- Getting `FormatException: Missing extension byte (at offset 6)` exception for accessing `response.body` from a server deployed in Vercel
- Retrieving list of values from MYSQL data base based on input value(LARAVEL 10 )(GET HTTP METHOD)
- Unable to add request headers via CHttpFile - C++/MFC
- Why do we call all http services 'Web Api/Web Service'?
- How to correctly read POST REQUEST body on ESP32?
- on linux gitclone issue remote server error showing fatal error with proxy n port
- Elasticsearch - cascading http inputs from Airflow API
- How to clean the html pages opened in a session?
- UTF-8 is not a valid encoding name
- I dont get the Result i expected when i want to get my Telegram Chatbot id
- NextJS 14 SSE with TransformStream() sending messages in a single response
Related Questions in EJB
- entity classes are not showing when trying to create new session beans for entity classes in netbeans 9.0
- How can I calculate the number of matches of a jakarta.ejb.ScheduleExpression within a time interval in Java?
- Migrating TomEE 7.1.2 to 9.1.2 throws javax.naming.NameNotFoundException: Name "nullDatabasePropertiesServiceImplLocal" not found
- LockType.READ at class vs method level
- How to see the transaction a method is in, in JBoss?
- Weblogic: The Message Driven Beans in the war file are not reflecting in Weblogic 14.1.1
- EJB transactions behaving differently on Wildfly 8 between Windows and Linux deployments
- Does Infinispan TransactionManagerLookup support WebSphere Liberty?
- WebSphere Liberty BASE transaction failure
- Java: Lazy object storage with auto key from stack trace
- Handle transactions with BMT
- Creating EJBContainer with glassfish embedded
- Remote EJB server shutting down
- Deploying EJB 2.0 in wildfly 30.0.0 error: Could not find method public abstract boolean javax.ejb.EJBObject.isIdentical
- XDoclet-based Stateless Session Bean Compatibility Issue: ClassCastException in WebSphere 9.0.5
Related Questions in HTTPSESSION
- Error: Cannot invoke "jakarta.servlet.http.HttpSession.getAttribute(String)" because "session" is null
- spring security + form login + redis session storage -> keep coming out anonymous User
- session.invalidate() is sometimes not working and not destroying the session object. What should I do?
- How to maintain Session Management in Servlets
- How to share HttpSession between pages with Playwright Java
- session not invalidated properly getting error UT000010: Session is invalid
- How to create persistent Cookie in servlet (Java) difference between the non-persistent cookie and HttpSession
- transfer of an HttpSession with some non-Serializable attributes between cluster nodes
- Field httpSession in required a bean of type 'javax.servlet.http.HttpSession' that could not be found
- ASP.NET Core 6.0 / Razor pages / add info about currently logged in user to the Session
- Swift HttpSession decode arrays
- Returning response data from HttpSession post
- Can a python requests.Session break? If yes, what should I do?
- Check Keycloak SSO session presence from another domain
- Spring Boot creates new JSESSIONID on each request
Related Questions in STATELESS-SESSION-BEAN
- Why Stateful bean is showing the opposite behavior
- Stateless Bean is null
- Usage of @Stateless and @Transactional on a POJO class - when and why?
- @TransactionAttribute( TransactionAttributeType.NEVER ) on SSB seem to change timeout. On JBOSS EAP 7 (and Wildfly?)
- How to implement an interceptor in a timer in jakarta EE9
- Wildfly 13 ejb stateless session bean not removed from pool
- When does a stateless session beans gets a database connection?
- Error In JPQL Data inside a stateless bean
- How Do I Correctly Deploy A Bean - JNDI, Weblogic 12C
- JSF converter fails to intialize
- EJB with @TransactionManagement(javax.ejb.TransactionManagementType.BEAN) : Only session and message-driven beans allowed to access UserTransaction
- Cannot creating Session Beans in Netbeans 11.1
- JMS messages sent from JavaEE with container managed transactions not sent until container commits the transaction
- Error while Creating JMS Message Producer in jboss EAP 7
- What is the default type of a Session Bean?
Related Questions in STATEFUL-SESSION-BEAN
- Why Stateful bean is showing the opposite behavior
- Is there any reason to use stateful EJB in a CDI session scoped bean
- Getting javax.servlet.ServletException: javax.naming.NamingException: Lookup failed for 'java:global/ShoppingCart-1.0-SNAPSHOT/ShoppingCartRemote'
- Common resource (almost stateful) object (bean) (no HTTP session related) in Play Framework?
- Understanding EJB Architecture and Implementation
- EJB Stateful bean doesn't have previous state
- Why is the container sharing my EJB stateful session bean across various sessions?
- Spring MVC Continue user's Form (Dto) when traversing an app until explicit cancel - Controller @SessionScope Component
- javax.naming.NamingException: Lookup failed for 'com.stateful.ejb.ListItems'
- EAP 7: EJB state not replicated between stateful session beans in cluster mode
- What is the default type of a Session Bean?
- Session info across EJB (Stateful Session Beans ) vs HTTP Session vs modern frameworks
- Multiple remote EJB interfaces?
- How to use userbean in controller-service-dao architecture?
- Recover session EJB
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
Popular Tags
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
You are supposing that the view layer always is a http client. But the view layer can be architected in other ways. For example a Java Swing client application (Where the client server communication is done only with ejbs.
A question that helps diff SFSB vs HttpSession. Stateful Session Bean and HTTP Session