Struts and EJB mix up

G

gk

i surfed google a lot but nowhere i found a sample code about how to
integrate Struts and EJB.

all i got is advice of "session facade" , "business delegate" etc etc.

no sample code !!

it seems to me that truts and EJB's can not be mixed.


i opened EJB book and they did not talk about mixing with Struts !
i opened Struts book and they did not talk about mixing with EJB!

i found an article of DEVX article though which is not good and well
-explained.


and did not find in the net about how to mix Struts and EJB.


is there anybody can provide me some resoures/links/book/SAMPLE CODE
recommendation about this mixing ?
 
D

David Van de Voorde

Probably in the EJB books they talked about how to write a client for your
EJB. Could it be that you should look at Struts as a client for your EJBs ?


|i surfed google a lot but nowhere i found a sample code about how to
| integrate Struts and EJB.
|
| all i got is advice of "session facade" , "business delegate" etc etc.
|
| no sample code !!
|
| it seems to me that truts and EJB's can not be mixed.
|
|
| i opened EJB book and they did not talk about mixing with Struts !
| i opened Struts book and they did not talk about mixing with EJB!
|
| i found an article of DEVX article though which is not good and well
| -explained.
|
|
| and did not find in the net about how to mix Struts and EJB.
|
|
| is there anybody can provide me some resoures/links/book/SAMPLE CODE
| recommendation about this mixing ?
|
 
G

gk

yes. they use a JSP as a client.

But i want to use Struts+ tiles .....and i hope you know , Struts
follows MVC. so, i have to write an Action class for that.

so, where and how do i call EJB's ?

should i call it in the Action class as my book shows the way it calls
the EJB in the JSP page itself ?


i dont know , how do i go about . i need an example code for
demonstration.


i want to mix Struts + EJB .

can you show some examples ?
 
T

Tim Terry

gk said:
yes. they use a JSP as a client.

But i want to use Struts+ tiles .....and i hope you know , Struts
follows MVC. so, i have to write an Action class for that.

so, where and how do i call EJB's ?

should i call it in the Action class as my book shows the way it calls
the EJB in the JSP page itself ?


i dont know , how do i go about . i need an example code for
demonstration.


i want to mix Struts + EJB .

can you show some examples ?
you should call your ejbs in your struts actions if they perform
business operations.

Tim
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,744
Messages
2,569,479
Members
44,899
Latest member
RodneyMcAu

Latest Threads

Top