• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Best way of learning EJB and EJB-QL!

 
HS Thomas
Ranch Hand
Posts: 3404
  • Mark post as helpful
  • send pies
  • 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
 
Pradeep bhatt
Ranch Hand
Posts: 8927
Firefox Browser Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Type them manually
 
HS Thomas
Ranch Hand
Posts: 3404
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
And then what ?
regards
 
Andres Gonzalez
Ranch Hand
Posts: 1561
  • Mark post as helpful
  • send pies
  • 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
  • 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
 
Billy Tsai
Ranch Hand
Posts: 1304
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
would EJB-QL be easier to learn for one who already knows SQL like triggers, SP, functions etc?
 
Kathy Sierra
Cowgirl and Author
Rancher
Posts: 1589
5
  • Mark post as helpful
  • send pies
  • 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
  • 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 ]
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic