Win a copy of Learning OpenStack Networking: Build a solid foundation in virtual networking technologies for OpenStack-based clouds this week in the Cloud/Virtualization forum!
  • 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Liutauras Vilda
  • Campbell Ritchie
  • Tim Cooke
  • Bear Bibeault
  • Devaka Cooray
Sheriffs:
  • Jeanne Boyarsky
  • Knute Snortum
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Ganesh Patekar
  • Stephan van Hulst
  • Pete Letkeman
  • Carey Brown
Bartenders:
  • Tim Holloway
  • Ron McLeod
  • Vijitha Kumara

Creating EJB 2.1 application and deploying on websphere  RSS feed

 
Greenhorn
Posts: 29
Eclipse IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I have a requirement where i need to write an EJB which should check a JMS message queue(developed in websphere 6.0) for every minute and do some operation. Can anybody tell me which EJB should i use like stateless session bean or MDB etc because I need timerservice too and where can I find a good example for the above. I tried to do a stateless session bean and deploy on websphere server but it didn't work. since i am unable to create an .ear file as i faced problem in ejb-jar.xml entries, if anybody knows the complete process of developing an EJB 2.1 application and deploying on websphere 6 please help me.

Thanks,
Vighnesh
 
author & internet detective
Sheriff
Posts: 38564
654
Eclipse IDE Java VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Vighnesh,
There's a number of questions in there.

For reading from a queue, you need an MDB. It can delegate to a stateless session bean once it reads the message.

For the ejb jar xml problem, what error did you get? Posting what problem you have is more likely to yield a solution.

As far as documentation, see an IBM redbook. They walk through how to create/deploy EJBs to WebSphere using RAD/RSA.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!