• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

few questions

 
Ranch Hand
Posts: 218
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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?
 
Ranch Hand
Posts: 8945
Firefox Browser Spring Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic