Basic difference between stateful and entity beans???
Could anyone please explain the basic diff between stateful bean and an entity bean.as per my understanding,stateful beans are extensions to clients.they perform a job of a client and they r not persistent.also their state goes off when the server crashes or the machine is reeboted.while in contrast,an entity bean can retain its session coz' they represent a persistent field in the DB.What i have seen in few books(O'reilly,etc)where a session bean can insert some values into the DB,which means it also represents a persistent object in the DB,which contradicts the statement that "stateful session beans dont represent any persistent object in the DB".Could anyone please elaborate on this.Thanks in advance.
Jameel
Thank u very much crackers for ur valuable
suggestions.I'll throw a different one in here for free: clarity of writing is a highly-valued and useful skill in a software professional. This is especially true these days when concepts need to be clearly explained to a variety of technical peoples from all over the world. And then there's the other side of the coin: Management.
You have to get your thoughts across in a very precise manner and, unfortunately for those who have to learn it as a second lanugage, English seems to be the overall preferred medium. Which makes it even more important to use "correct" English in written communications. If you don't, your credibility diminishes and you appear to be (horrors!) unprofessional It's not that much harder to type "you" than it is to use a single letter. Besides, most people that "pay by the byte" appreciate the clarity, as well (as I've seen on Usenet, by way of covering my ass).
Now, back to our regularly scheduled post...
Is this wat u were trying to say if i
understood u correctly.Yes, the EntityBean is directly related to the data being persisted: in this case, a database table. So, using your example from below, the DB table would have two fields: a VARCHAR 'Name' and an INT 'Age.' The EntityBean would have corresponding fields/properties/variables, String name and int age.
"WHICH BEAN (Entity
or Sateful Session) SHOULD I GO 4???"No easy answer. The best one is: it depends. On what? It depends upon what you're trying to do with the data, how it's presented/manipulated, load requirements, environmental requirements, caching strategies, and about another dozen or so other high-level requirements.
My personal preference is if I need caching and the number of EntityBeans actually in existence is pretty "low" (another nebulous and arbitrary value, depending), I'll use a StatelessSessionBean as a Facade (search for "patterns" here in the forum), with the persistence in CMP EntityBeans. Which is influenced by the fact that I like playing with CMP. ;D
Similar Messages
-
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 -
Basic differences between G2 and G3
hey, is there a breakdown anywhere of the basic differences between G2 and G3?
i've tried looking but everything i've read seems to single out the podcast features of g3 which to be honest, don't really do much for me, since i would be using it mostly for music.
Are there substantial differences aside from the podcast features that would justify the upgrade? and if so, any idea where i can read about them?
thanks in advance.
G4 Mac OS X (10.4.6)there also some more differences as compare to gb2 is the ability to do music composition for your edited imovies and one more thing if you change your track to sound efxs you can drag audio files into your onscreen keyboard or your musical typing on your assign key to do music composition which gb2 dont provide last time.
-
Whats basic difference between data and types while declearing the itab
whats basic difference between data and types while declearing the internal tables...
DATA : BEGIN OF t_vbap OCCURS 0,
vbeln1 LIKE vbap-vbeln,
posnr LIKE vbap-posnr,
kwmeng LIKE vbap-kwmeng,
netpr LIKE vbap-netpr,
netwr LIKE vbap-netwr,
werks LIKE vbap-werks,
matnr LIKE vbap-matnr,
arktx LIKE vbap-arktx,
END OF t_vbap.
vs
TYPES : BEGIN OF t_vbap,
vbeln1 LIKE vbap-vbeln,
posnr LIKE vbap-posnr,
kwmeng LIKE vbap-kwmeng,
netpr LIKE vbap-netpr,
netwr LIKE vbap-netwr,
werks LIKE vbap-werks,
matnr LIKE vbap-matnr,
arktx LIKE vbap-arktx,
END OF t_vbap.
and vs
TYPES : BEGIN OF t_vbap,
vbeln1 LIKE vbeln,
posnr LIKE posnr,
kwmeng LIKE kwmeng,
netpr LIKE netpr,
netwr LIKE netwr,
werks LIKE werks,
matnr LIKE matnr,
arktx LIKE arktx,
END OF t_vbap.hi,
like -> used for refering existing data elements in data dictionary or in sap
type -> used for refering existing data types in sap.
types: used for creating used defined structure of tables which has fields from more tahn one table.
diff b/w types and type in creation of internal tables is that when u create a table with types then u can use same for work area creation also.
ex:
TYPES : BEGIN OF t_vbap,
vbeln1 LIKE vbeln,
posnr LIKE posnr,
kwmeng LIKE kwmeng,
netpr LIKE netpr,
netwr LIKE netwr,
werks LIKE werks,
matnr LIKE matnr,
arktx LIKE arktx,
END OF t_vbap.
data: itab1 type t_vbap
wa_itab1 type t_vbap.
when type is used then u have to create a defintion of work area for another time when internal table doesnt have headr line as
ex:
DATA : BEGIN OF t_vbap OCCURS 0,
vbeln1 LIKE vbap-vbeln,
posnr LIKE vbap-posnr,
kwmeng LIKE vbap-kwmeng,
netpr LIKE vbap-netpr,
netwr LIKE vbap-netwr,
werks LIKE vbap-werks,
matnr LIKE vbap-matnr,
arktx LIKE vbap-arktx,
END OF t_vbap.
DATA : BEGIN OF wa_vbap,
vbeln1 LIKE vbap-vbeln,
posnr LIKE vbap-posnr,
kwmeng LIKE vbap-kwmeng,
netpr LIKE vbap-netpr,
netwr LIKE vbap-netwr,
werks LIKE vbap-werks,
matnr LIKE vbap-matnr,
arktx LIKE vbap-arktx,
END OF wa_vbap.
if helpful reward soem points.
with regards,
suresh. -
Basic difference between WAS and Netweaver
I justwant to a know a basic fundamental question. What is the basic difference between web application server and Netweaver. I am always geting confused in these two terms. Can anybody please explain?
Hi,
NetWeaver is:
An application and integration platform that unifies people, information and business processes
New technical foundation for all future SAP applications
A replacement for BASIS framework
A platform that is based on Enterprise Services Architecture (ESA); SAP hopes to release future product offerings in compliance with ESA
NetWeaver is NOT:
A product or a language
A replacement for SAP R/3!
A marketing strategy
The SAP Web Application Server is the technical platform for SAP NetWeaver, providing the complete infrastructure to develop, deploy and run all SAP NetWeaver components, the mySAP Business Suite, customer- developed applications and 3rd-party J2EE 1.3 compliant applications.
SAP Web AS fully supports both the proven ABAP technology and the open source internet-driven technologiesJava and Java 2 Enterprise Edition, also called J2EE. -
What are the Basic Differences between Oracle and MS-SQL server Database?
Hello,
anybody pls Guide me about the Differences between Oracle and MS-SQL server Database.and also IBM Databases also
Regards,
BalaramSQL Server only works on Windows-based platforms, including Windows 9x, Windows NT, Windows 2000 and Windows CE.
In comparison with SQL Server , OracleDatabase supports all known platforms, including Windows-based platforms, AIX-Based Systems, Compaq Tru64 UNIX, HP 9000 Series HP-UX, Linux Intel, Sun Solaris and so on.
The SQL Server advantages:
SQL Server holds the top TPC-C performance and price/performance results.
SQL Server is generally accepted as easier to install, use and manage.
The Oracle Database advantages:
Oracle Database supports all known platforms, not only the Windows-based platforms.
PL/SQL is more powerful language than T-SQL.
More fine-tuning to the configuration can be done via start-up parameters.
Samrat -
Differences between servlet and backing bean
Could anyone please tell me whether everywhere that servlet can be used, backing bean and JSF can be used too? Are JSF and backing beans the new alternatives for JSP and servlets? please clarify the relations between these concepts for me.
Thanks
LauraLaura_Jlover wrote:
Thank you. You mean backing beans can do every thing that servlets can do? Yes.
JSF pages can work with servlets? Strictly speaking, every JSF page gets passed through the FacesServlet which does all the task. The lifecycle, creating the FacesContext, putting the request parameters in backing beans, rendering the response, etcetera.
what are the advantages of servlet and the advantages of backing beans? what's the disadvantages? In general, which one is better?In context of JSF, you should be using backing beans, not Servlets. There is nothing what a Servlet can offer you as an advantage in the JSF context. It is simply not an option/alternative. You can't even call a Servlet (directly) using a JSF h:form. You, however, can access backing beans in any JSP or Servlet outside the JSF context.
Just carefully read the JSF specification or buy a JSF book and the picture will be clear.
JSF spec: [http://jcp.org/aboutJava/communityprocess/final/jsr252/index.html].
JSF book: [http://www.amazon.com/JavaServer-Faces-Complete-Reference/dp/0072262400]. -
What is the basic difference between MM and SRM org structure
Hi
All,
What is the difference between MM org structure and SRM org structure?
to my understanding SRM org structure deals with BP concepts where as MM don't, please correct me if I am wrong
please give your inputs
Regards,
SrinivasHello Srinivas,
what do you call MM organizational structure? Which ECC transaction do you launch to access it?
Regards.
Laurent. -
Difference between RMI and Java Beans
Hello
I have to develop a program that allow the users to have access to the Patient information . The program will also organize appointment between the users and the patients. + extra thing like agenda .....
I will have about 10 to 20 user that will have access at the same time to the same info .
My question is :what is the best solution for such kind of programes
RMI :after searching in google (it is light weight )
java beans:more powerful than RMI
or maybe thread ???
any one can explain the difference please ?
Thank youA little [url http://www.google.ca/search?hl=en&q=rmi+ejb&btnG=Google+Search&meta=]google with keywords: rmi ejb would give all the answers you need.
Specifically you could read [url http://www.devx.com/Java/Article/20843/0/page/1]the article from the first result: EJB and RMI: A Practical Introduction.
Also there are many threads from these forums that already answered your question in the past.
Here is one: [url http://forum.java.sun.com/thread.jspa?threadID=539544&messageID=2613399]Rmi and EJB.
Happy reading!
Regards -
Difference between BI and BW 3.5
10 basic difference between BI and BW 3.5
Hi the following documentation will be helpful to you,
Regards,
SUbha
Pls grant me points if helpful
This documentation provides you with a starting point for administration and optimal maintenance of the Enterprise Data Warehousing IT scenario. It contains business-intelligence-specific information for various tasks, lists the relevant tools and functions, and provides links to the more detailed documentation that you need to carry out the tasks.
The Enterprise Data Warehousing IT scenario supports you in setting up and managing a data warehouse in a company-wide environment. It allows you to integrate, transform, consolidate, clean up, store, and stage data of any origin (SAP and non-SAP sources), or age (historic and up-to-date), to be analyzed and interpreted. It provides flexible structures and layers so that you can react quickly to business developments. It also allows businesses to report in real time and improve the design time and runtime of BI models and processes.
For more information, see Enterprise Data Warehousing.
Administration of this IT scenario is part of the Running the Enterprise Data Warehouse scenario variant. Therefore the tasks described below refer to this scenario variant.
Integration
Enterprise Data Warehousing provides data for the following IT scenarios:
IT Scenario
Description
Information About IT Scenario Administration
Enterprise Reporting, Query and Analysis
This IT scenario shows how business experts can use the reporting and analysis tools available in SAP NetWeaver Business Intelligence (BI) to provide BI information customized for the different categories of user within your company.
Enterprise Reporting, Query, and Analysis
Business Planning and Analytical Services
This IT scenario includes processes that collect data from InfoProviders, queries, or other BI objects, convert them using various methods, and write back new information to BI objects (such as InfoObjects or DataStore objects).
Business Planning and Analytical Services
Tasks
In most cases, running an enterprise data warehouse involves general tasks for managing the Application Server for ABAP (AS ABAP) and the Application Server for Java (AS Java), as well as scenario-specific tasks. For more information, see:
● AS ABAP (Application Server for ABAP)
● AS Java (Application Server for Java)
● Enterprise Data Warehousing: Preparation for EDW Processes
● Enterprise Data Warehousing: Tasks Performed Regularly
● Enterprise Data Warehousing: Tasks on Demand
● Enterprise Data Warehousing: Saving and Recovering Data
For information about the general administration of BI systems, see BI (Business Intelligence). -
Difference between stateful & stateless services
Hi All,
Why OSB is stateless? And what is the difference between stateful and stateless services??? Can anyone explain me on this.
thanks,
ArunAru,
What's OSB? If it is a web service, check link below:
http://docs.oracle.com/cd/B40099_02/books/CRMWeb/CRMWeb_Overview11.html
Hope it helps,
Wilson -
Difference between "Export" and "Export form Fact Table" package
Hi experts!
Could you tell me what is the difference between "Export" and "Export form Fact Table" package?
Tkanks
GabrielHi,
Basic difference between Export and Export from Fact Table is
In standard package "Export" : We can perform this function when we are online and we have adequate amount of data to be exported. We can run this package eg: weekly or monthly. Here we use u201CExport Packageu201D to pull the data
And in the administrative package "Export from Fact Table" Mostly it is used to do the backend data loading basically bulk data , also any formula logic has to be implemented on the data in that case we use the administrative package.
Hope this helps. -
Difference between view and window ?
Hi All,
Can you tell me a basic difference between view and window , maybe you can correlate your answers with concepts of HTML.
RajeevHi Rajeev,
A window is a place for displaying your views. Your view is not available to the outside world. View is available only to your component. However, your window is an interface view, which can be displayed in other components.
A view contains your UI elements. It has a layout (a window does not). A window contains embedded views.
In the window, you can define how navigation between views takes place (by creating navigation links).
Regards,
Neha
<i><b>PS: Reward if helpful</b></i> -
Difference between automatic and non-automatic page attributes
Hi,
Can anyone tell me difference between automatic page attributes and non-automatic page attributes?
and also difference between stateful and stateless mode with examples?
Thanks
NarendraHi Mullapudi,
If you mark a page attribute as u2018automaticu2019 (auto in the system), the attribute automatically gets its values via the calling URL or
via the navigation process from other pages.
This kind of attribute only has to be declared for one page.
It is identified by its name equivalence.
If another page uses a parameter with the same name,
at runtime that parameter automatically
gets the same values as the attribute.
Non-automatic page attributes
If you flag a page attribute as non-automatic, the attribute gets its values from the class attribute.
The visibility of page attributes when parameters are transferred between BSP pages depends on whether the navigation is explicit or implicit.
Explicit navigation
For example, if navigation->goto_page(page.htm)
Implicit navigation
With implicit navigation, the page attributes are transferred automatically from OnInputProcessing to OnInitialization, both in stateful and stateless mode.
The auto page attributes are refilled by the request, both in stateful and stateless mode.
Reward if Useful...
Regards,
Anita. B -
Basic diff between EP6 and EP7
Hi,
Can any body tell me basic difference between EP6 and EP7.
Advance thanks for your information.
Regards,
Ravi.hi Pradeep,
Thanks for your information,but in that thread i didn't get any exact
information.
Kindly send it,if u have any document for the same.
Thanks in Advance,
Regards,
Ravi.
Maybe you are looking for
-
Can I share an iCloud folder with someone outside my immediate family (i.e. grandparents, etc) without sharing iTunes products (music, books, videos, etc)?
-
How can I see movies in original version?
I have access to iTunes in Spain but I want to see the movies in original version.. Can I do that? How?
-
Problems starting Server on OSB 11g
Hi Everybody, I have a problem, I just installed the Service Bus 11g on Red Hat and I have problems when I start the server. I particular first I start the Admin_Server without any exception and then I start the Server but I get this excedption: PATH
-
I am getting APP-FND-00676 error message. The error message is as follows. APP-FND-00676: The flexfield routine FDFGDC cannot read the default reference field specified for this descriptive flexfield. The developer specified a context field (via the
-
IPhone in recovery mode can not be restored
Phone was unplugged from PC while updating software. Now receiving messge "The iPhone 'iPhone' could not be restored. The device cannot be found." Phone displays the connect to iTunes; I have the latest version of iTunes installed. No error codes dis