cancel
Showing results for 
Search instead for 
Did you mean: 

problem while importing the ejbean jar file as model

Former Member
0 Kudos

hi

i created one sample ejb appication and jar the same and then trying to import the same as model(using option like Import JavaBean Model) in my webdynpro,but is giving error there are no java beans to import.

is it possible to import ejbbean like normal javabean?

if yes,why the above problem is coming?

can anyone give the solution?

thanks in advance

Vasu

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi,

You can't import Ejbs using simple JavaBean importer.

You need to create simpleBean not EJB.

Regards, Anilkumar

Former Member
0 Kudos

Anil

thanks for reply,then how to use ejbcomponent in our webdynpro?

is there any alternative?

thanks

Vasu

Former Member
0 Kudos

Hi Vasu,

One alternative is to expose this ejb as a webservice and import the corresponding webservice model in the web dynpro application.

There might be other alternatives. I am not sure.

Hope this help u a bit.

regards

Satish

Former Member
0 Kudos

Satish,

thank you for reply.

this way i already implemented and it was worked fine.

we can not suggest to publish our own ejb component as webservice right?

and i am thinking one more way of doing that is, we can implement one value bean(normal java bean to communicate ejb component internally)and import that jar as our model class in webdynpro.

is this scenario will work?

if this works,then how to make jar file which is maintain the both javabean and ejbcomponent as one thorugh NWStudio.

Thanks

Vasu

Former Member
0 Kudos

Hi Vasu,

As far as I know there is no harm in exposing ejbs as webservices with a bit of concentration on security and authentication.

Regarding the second alternative, I am not sure how it works. I know only 2 alternatives,

EJB>WebService>WebDynpro

EJB>Bean>JSP

regards

Satish

Former Member
0 Kudos

what is the second option you mentioned like

EJB>Bean>JSP

?

Former Member
0 Kudos

I mean using pure Java technology avoiding web dynpro.

As you WAS 6.40 supports both personalities!!

regards

Satish

Former Member
0 Kudos

Hi

I think u can make this bean as part of EAR application, or u can create new project with this bean, export it to jar file, and include to webdynpro application. I suppose that this is implementation of model

ejb -> bean -> webdynpro

I have tried something like this and that works

Regards Bogdan

Message was edited by: Bogdan Rokosa

Former Member
0 Kudos

Hi Rokosa,

can you explain in detail?

Former Member
0 Kudos

With my englisch that will dificult a little

but I can try

I have a application with ejb in persistant leyer. The ejb communicate themselve with the rest of the world via DTO's (DataTransportObject's) That are normal bean's and this bean have i imported as model.

Bogdan

Message was edited by: Bogdan Rokosa