Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Configuration of EJB2.0 with struts1.2.4  RSS feed

 
S.R.K.Vivek Raju
Ranch Hand
Posts: 58
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all

I am using struts1.2.4, where should i write the EJB home interface and other java files in the struts framework.

I have tried writing them in the actions package, but i am not sure whether it is correct or not.

Please give me a suggestion.

With Regards
S.R.K.Vivek Raju.
 
Jeanne Boyarsky
author & internet detective
Sheriff
Posts: 36417
454
Eclipse IDE Java VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The EJB classes should go in a new package, preferably with "ejb" in it. For example, "com.javaranch.ejb". That way they are conceptually separate from the actions.
 
S.R.K.Vivek Raju
Ranch Hand
Posts: 58
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi
Thank you for your reply.

If i create the pages in a seperate directory then i would they get instantiated, i sorry if i am being silly. Could please tell the complete directory structure.

With Regards
S.R.K.Vivek Raju.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!