ejb-jar.xml and java annotations

hi all

i'm converting a project from jboss 3.2.1 to jboss 4.2.2, and it's not working !

I've narrowed it down and it's not connecting to the database.  it's using ejb to connect. to the database.  Do i need to change the ejb-jar.xml in jboss 4.2.2?  this is the first time i've worked with ejb and so i not sure what needs changing

i have a datasource-ds.sml file which specifies the username/password server etc.  

it's getting to a peice of code where it needs to get an id from the database and this is where it's failing

public interface getIId extends EJBObject
{ public long getNextId(String sequence) throws RemoteException; }

is anyone able to help me make ejb-jar.xml work with jboss 4.2.2 or is the way to go to use java annotations?

is anyone able to lead me to a java annotations tutorial or give any help with removign ejb-jar.xml and moving to java annotations

any help much appreciated
daleconAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

NelliosCommented:
An interesting tutorial:
http://www.regdeveloper.co.uk/2006/04/25/ejb3_migration/

I think that in your case the best help is your IDE.
If you are using one make a small project from scratch using annotations. It will help to understand how to use annotations. In my case netbeans did the trick.

Good luck
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
J4M3S_UKCommented:
You probably want to convert your EJB2 Entity beans to use JPA, it'll make things a lot easier in the long run!
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Java App Servers

From novice to tech pro — start learning today.