Music Store Bean example
I try to deploy the music cd bean example to J2EE with MySQL. Everything was fine until choose to deploy. It had an error:
C:\j2sdkee1.3.1\repository\aqueous\gnrtrTMP\MusicStore\musicstore\MusicCDBean_PM.java:69: unreported
exception javax.ejb.CreateException; must be caught or declared to be thrown
return (musicstore.MusicCDPK) partition.afterEjbCreate(this);
Shows in J2EE
Any Help?
[425 byte] By [
sungana] at [2007-9-19]

Hi there,
First, did you remember to declare the CreateException to be thrown at the ejbCreate method?
Second, when you are calling the ejbCreate method be aware of the throw clause on the ejbCreate method, meaning that you have to catch the CreateException ...
I need some more details before I can give you a more concrete answer on this. Could you paste in the method where the error occurs?
Regards,
Jess