cancel
Showing results for 
Search instead for 
Did you mean: 

EJB and Web Services

Former Member
0 Kudos

Hi,

I have created a EJB project with Stateless Session Bean having just one method, Java persitence (connnection to MS SQL). I have added this project to the Enterprise project as well.From the context menu when I select to create Web Service. The method is not selectable.

What is going wrong?

Can somebody please help?

Best regards,

Dharmi

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi Dharmi,

How did you do that? Create an EJB which connects to MS SQL?

Are there specific jars or something that have to be added to the EJB?

Did you also have to install a SQL server driver and such?

Can you provide a step-by-step for the creation of an EJB which gathers data from MS SQL?

Kind regards

Allan

Former Member
0 Kudos

Hi Allan,

Sorry for the delayed reply. Are you still looking for the answer?

Best regards,

Dharmi

Former Member
0 Kudos

I think you need to give a little more information here about the process you are following. I tend to:

1. Create an Local interface with my bean.

2. Write my bean method(s)

3. Right-click my methods in the outline view -> EJB Methods -> Add to Local Interfaces

4. Right-click my Bean in Project Explorer -> Web Services -> Create a web service

5. Follow the wizard and specify your local interface as the service endpoint.