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

Two packages, one Interface ?????  RSS feed

 
Hrvoje Canzek
Greenhorn
Posts: 16
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi together,
i have implemented a J2EE application.
there are three packages
-package Front_Controller
-package Business_Delegate
and
-package Session_Facade
i want to run this application on two machines
'A' and 'B'
On machine 'A' is the "PresentationTier" with
-package Front_Controller
and
-package Business_Delegate
On machine 'B' is the "BusinessTier" with
-package Session_Facade
My QUESTION::::
-------------------------------------------------
when i use a DTO to send data between the two machines (tiers),
-where is my dto-interface (in wich package)
-where is my dto-class (in wich package)
-must i import a package
-when i must import, how can java find the
import package
i would be deeply grateful, if someone could tell me this :-)
Hrvoje Canzek
 
Kyle Brown
author
Ranch Hand
Posts: 3892
5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Put the DTO interface and implementation class in its own JAR file and include that JAR file in both the WAR and EJB-JAR file (in the lib directory).
Kyle
 
Hrvoje Canzek
Greenhorn
Posts: 16
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Ok, thank you very much Kyle
Hrvoje
 
Dhananjay Inamdar
Ranch Hand
Posts: 130
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello Hrvoje,
does this activity of making a jar file solved your problem?
If yes then you have to mention that in your answer, so it is better for the person to understad who enter in your forum therd.
 
Consider Paul's rocket mass heater.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!