• 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

Can anyone advice some good tool that auto-generates EJBs?

 
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
subj?
Thanks!
 
Ranch Hand
Posts: 2713
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
You need to give some more information, there are many tools the generate or help generate EJBs (with various degrees of automation). What exactly are you looking for?
 
Maxim Suponya
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I need some magic tool that will create CMP bean 2.0 with all interfaces and descriptors according to specified database and table, and may be even session bean that will wrap entity bean! i can't beleive people are ready to write up to 10 different interfaces and classes, plus huge amount of XML just to access a database. Well, very probably i ask stupid questions, i'm new to EJB, only made 2 session and 1 entity beans in my life
 
Ranch Hand
Posts: 1561
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Well.. I think you have to write at least the bean class, because it is different for every application, and where your business logic resides. But, you are right, writing descriptors, interfaces is a pain.
I've been using XDocletand it's great. Again, just write the bean implementation and with some javadoc-like comments XDoclet will generate all the other files for you (ejb-jar.xml,web-xml,interfaces -remote,local,localhome, home,and more! -) etc...
HTH
 
Chris Mathews
Ranch Hand
Posts: 2713
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Middlegen, which is based off XDoclet, will do essentially what you are asking for. Basically, you point Middlegen to your database schema and it creates the persistance layer (including relationships) for you. Currently Middlegen supports CMP 2.0 and JDO as persistance layers.
Middlegen does a pretty good job. However, you will find yourself fighting the tool when you want to support complex object models.
 
Maxim Suponya
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thank you Andres and Chris!
XDoclet and Middlegen are really good tools! That's exacly what i need!
 
Greenhorn
Posts: 17
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
You can use SUN ONE studio for the same.
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic