• 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
  • Ron McLeod
  • Paul Clapham
  • Devaka Cooray
  • Liutauras Vilda
Sheriffs:
  • Jeanne Boyarsky
  • paul wheaton
  • Henry Wong
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Tim Moores
  • Carey Brown
  • Mikalai Zaikin
Bartenders:
  • Lou Hamers
  • Piet Souris
  • Frits Walraven

Best way of learning EJB and EJB-QL!

 
Ranch Hand
Posts: 3404
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
My interest is in EJB-QL in particular! What is the best way of learning EJB-QL ?
Long-hand or with an IDE ?
regards
 
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
Type them manually
 
HS Thomas
Ranch Hand
Posts: 3404
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
And then what ?
regards
 
Ranch Hand
Posts: 1561
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
HS-
download JBoss, open notepad and start writing code. If you haven't done this, start by writing the famouse hello world EJB. This will get you up to speed with the interfaces (remote, home, local home, etc..), it'll familiarize you with session beans, etc.
Deploy the application and test it.
Now put more stuff, create an entity bean and start using JBoss with a DB (mysql, for instance). Insert some records and retrieve them using a session bean.
Once you've mastered this, start looking at ejb ql. There are excelent articles in IBM developer works that you can follow. They help a lot.
good luck
 
HS Thomas
Ranch Hand
Posts: 3404
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thanks Andres. The developer works articles sound like a good idea.
I want to do some complex queries with EJB-QL so I thought an IDE might be quicker.
regards
 
Ranch Hand
Posts: 1327
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
would EJB-QL be easier to learn for one who already knows SQL like triggers, SP, functions etc?
 
Cowgirl and Author
Posts: 1589
5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Originally posted by Billy Tsai:
would EJB-QL be easier to learn for one who already knows SQL like triggers, SP, functions etc?


Yep! EJB-QL is mostly a subset of SQL, but it adds some capabilities for navigating over relationships between betweens. So it has to reflect the object-to-relational aspect of the bean, but yes Billy, people who know SQL have a very easy time with EJB-QL! : )
cheers,
Kathy
 
HS Thomas
Ranch Hand
Posts: 3404
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,
Is there any guidance on how big an EJB query should be ?
Can you have a EJB Query made up of other EJB queries, like you have with SQL views ?

Originally posted by Kathy Sierra:
So it has to reflect the object-to-relational aspect of the bean

I guess the above has something to do with the size of a bean.Whatever works (ie within a millisecond response time)!
regards
[ September 24, 2003: Message edited by: HS Thomas ]
 
A wop bop a lu bop a womp bam boom! Tiny ad:
We need your help - Coderanch server fundraiser
https://coderanch.com/wiki/782867/Coderanch-server-fundraiser
reply
    Bookmark Topic Watch Topic
  • New Topic