cancel
Showing results for 
Search instead for 
Did you mean: 

Return type of a Model (EJB or WS) in WD (Java)

Former Member
0 Kudos

Hello, guys.

I have an EJB that returns me a List of an entities. When I am trying to import that EJB as a model in WD, I must specify a return type of "response" object. But there is no "List" or "Collection" or my entity class option(( So how can I use EJB properly in that situation?

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi Borodin,

give string return type for entity bean.

and when u create methode in session bean then you can specify return type as "collection" or "Response".

Regards,

Khushboo

Former Member
0 Kudos

Can't understand your advise.

I have

EJBxx

public List<MyEntity> findAll(){

//retrieving entities using JPA

}

What shall I do to import EJBxx and call that method from WD? Methods with return type String or int are called fine from WD.

Former Member
Former Member
0 Kudos

Hmm, thanks a lot, but I didn't solve the problem. There is no entity class available during creating the EJB model ("todo" in that article). I have done all operations on DC's, but still no success((

Former Member
0 Kudos

Thanks, after few rebuilds/redeployments all works fine.

Answers (0)