• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Two packages, one Interface ?????

 
Greenhorn
Posts: 16
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
author
Posts: 3892
5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Ok, thank you very much Kyle
Hrvoje
 
Ranch Hand
Posts: 130
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic