Question
Can you control when passivation occurs?

Answers

The developer, according to the specification, cannot directly control when passivation occurs. Although for Stateful Session Beans, the container cannot passivate an instance that is inside a transaction. So using transactions can be a a strategy to control passivation. The ejbPassivate() method is called during passivation, so the developer has control over what to do during this exercise and can implement the require optimized logic. Some EJB containers, such as BEA WebLogic, provide the ability to tune the container to minimize passivation calls. Taken from the WebLogic 6.0 DTD -The passivation-strategy can be either default or transaction. With the default setting the container will attempt to keep a working set of beans in the cache. With the transaction setting, the container will passivate the bean after every transaction (or method call for a non-transactional invocation).   Your Comment




More Software Questions..
What is the inputsplit in map reduce software?

What is software configuration management?

What Is Java Api For Xml-based Rpc (jax-rpc)?

How can you implement fine-grained auditing?

What is IBM’s simple explanation for Big Data’s four critical features?

What is static synchronized method in JDBC API? Give an example?

What does the NULLIF function do?

What happens if a start method is not invoked and the run method is directly invoked?

Should we override finalize method

what is the difference between mysql_fetch_array and mysql_fetch_object?

How will XML affect my document links?

Why to use Style Sheets?

What are Filters in MVC?

Can you explain Application layer in OSI model?

How to define new testplan attributes?

What are the minimum system requirements to run Photoshop? Is it possible to run Photoshop over linux?

Which oracle package is used to manage the oracle lock management services?

What is Latch Up? Explain Latch Up with cross section of a CMOS Inverter. How do you avoid Latch Up?

What is marker interface?

What types of partitioning are there for BW?



Search
Can you Answer!!
  • Q What is the best method for assessing a casualty?
  • Q Based on the recent approval of the Cabinet Committee on Economic Affairs, the "Mission for Protection and Empowerment for Women" scheme would be expanded for a period 2017-18 to __________
  • Q When a recommended prayer becomes obligatory on account of a ‘Nazr’ (vow) do rules applicable to recommended prayers apply to it, too?
  • Q What are the different deployment models?
  • Q What are the characters of Misodendraceae Fruit?
  • Q How do you read an Excel sheet in C#?
  • Q Does not overriding hashcode() method has any performance implication ?
  • Q Sometimes we say ec/io and sometimes we say ec/no, are they different?
  • Q What is RFC connection
  • Q Write short notes on A character sketch of Grandfather.
  • Q Why do we need nested master pages in a Web site?