Sunil Sahu

Greenhorn
+ Follow
since Feb 18, 2003
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Sunil Sahu

Hi
Beans are Hot deployed only in the Development-Mode. WL server automatically makes the required
entries in config.xml file at the time of Hot deployment.
If your server is in the Production mode then you have to make entries in config.xml by manually or
by deploying been from console.
I belive your server is in Production mode that is why Beans are gets deployed only
after server restart.
Set your server in Deployment-mode (in startWeblogic.cmd ) and you just need to copy u r modified beans
in the deployment directory (..\config\mydomain\applications\). It will be gets deployed
Sunil Sahu
System Architect
sunilsahu007@yahoo.com
Make Transient :
Temporary that do not need to persist across bean activation should be declared transient

Make null :
And non serializable attributes like ResultSet or resources like DBconnection should be made null before passivation (in ejbPassivate method )and then occupied back when activation (in method ejbActivate method)
Use bulk accessor to set and get values using ValueObject or Data bean
If your EJB container supports EJB2.x Specification then you can implement this asynchronous communication using Message Driven Beans. This is the best way to handle such situation.
Answers :
(3)
======
5 The principle associated with role reservationAgent is allowed to call method reserveTrip with one String argument in ReservationSession.
======
(5)
Quesion is not clear Should be first one
1 CMP finders return an EJBObject or a Collection thereof. BMP finders return a primary key or a Collection thereof.
======
(6)
5 EJB context references
=======
(7)
2 <res-ref-name>jdbc/MyDataSource</res-ref-name>
=======
(8)
4 getPrimaryKey()
=======
(10)
3 Stateful session beans
=======
(11)
4 It must be assigned to at least one of the security roles associated with the method.
=======
(12)
1
<resource-ref>
<res-ref-name>jms/QueueFactory</res-ref-name>
<res-ref-type>javax.jms.QueueConnectionFactory</res-ref-type>
<res-auth>Container</res-auth>
</resource-ref>
=======
(14)
1 Stateful session bean
=======
(15)
5 <security-role-ref>
<role-name>admin</role-name>
</security-role-ref>
=======
(16)
1 It marks transaction for rollback. Then, it rethrows javax.transaction.TransactionRolledbackException to remote clients or javax.ejb.TransactionRolledbackLocalException to local clients.
=======
(17)
1 Session Facade

=======
(18)
2 ejbHome methods are exposed to EJB clients through the Home interface; ejbSelect methods can only be used internally in the bean.
========
(19)
2 All employees from company1 are added to company2; they are now employed by both companies.

PLEASE LET ME KNOW IF ANY CORRECTION
THANKS
-Sunil