aspose file tools*
The moose likes EJB Certification (SCBCD/OCPJBCD) and the fly likes Best way of learning EJB and EJB-QL! Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Certification » EJB Certification (SCBCD/OCPJBCD)
Bookmark "Best way of learning EJB and EJB-QL!" Watch "Best way of learning EJB and EJB-QL!" New topic
Author

Best way of learning EJB and EJB-QL!

HS Thomas
Ranch Hand

Joined: May 15, 2002
Posts: 3404
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

Joined: Feb 27, 2002
Posts: 8919

Type them manually


Groovy
HS Thomas
Ranch Hand

Joined: May 15, 2002
Posts: 3404
And then what ?
regards
Andres Gonzalez
Ranch Hand

Joined: Nov 27, 2001
Posts: 1561
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


I'm not going to be a Rock Star. I'm going to be a LEGEND! --Freddie Mercury
HS Thomas
Ranch Hand

Joined: May 15, 2002
Posts: 3404
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

Joined: May 23, 2003
Posts: 1297
would EJB-QL be easier to learn for one who already knows SQL like triggers, SP, functions etc?
Kathy Sierra
Cowgirl and Author
Ranch Hand

Joined: Oct 10, 2002
Posts: 1572
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

Joined: May 15, 2002
Posts: 3404
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 ]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Best way of learning EJB and EJB-QL!