• Post Reply Bookmark Topic Watch Topic
  • New Topic

few questions

 
Laxmi Raghu
Ranch Hand
Posts: 218
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I've few questions on EJB which were asked during an interview for which i don't know the answers. If anyone know them, pls answers the following. It will be a great help to me. Thanks in advance.

1. How will you access EJB from one domain to another domain
2. In statefull session bean, can you define ejbActivate() and ejbPassivate() methods
3. How will you call shell script from Java and how will you maintain
transaction in this scenario
4. what is the transaction attribiute of MDB
5. Can One MDB listen to multiple messages
6. Can you access servelt usiing JNDI?
 
Pradeep bhatt
Ranch Hand
Posts: 8933
Firefox Browser Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Laxmi R:
I've few questions on EJB which were asked during an interview for which i don't know the answers. If anyone know them, pls answers the following. It will be a great help to me. Thanks in advance.

1. How will you access EJB from one domain to another domain
2. In statefull session bean, can you define ejbActivate() and ejbPassivate() methods
3. How will you call shell script from Java and how will you maintain
transaction in this scenario
4. what is the transaction attribiute of MDB
5. Can One MDB listen to multiple messages
6. Can you access servelt usiing JNDI?


Please pick up some J2EE/EJB book and start reading

1. Looks like domain means weblogic domain. I dont see any problem in accessing EJB across the domains.
2. ejbActivate and ejbPassivate are part of session bean interface.
3. You can call a shell script from java. I am not clear about the transaction question.
4.Trasaction attribute controls how the transaction should work when the on message of MDB is invoked. for eg.requiresNew specified that a new Tx must be started when MDB is invoked.
5.Should n't it be mutiple queues or topic ? The answer is NO.
6.Servlets are not accessed through JNDI but through HTTP protocol.
 
Laxmi Raghu
Ranch Hand
Posts: 218
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
tHANK YOU SO MUCH FOR THE ANSWERS. Sure to read some books. I googled web, but couldn't find answers. So, posted here.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!