NetBeans Forums

 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
  

deploying multi-tier application

 
Post new topic   Reply to topic    NetBeans Forums -> Java EE Users
View previous topic :: View next topic  
Author Message
senderj



Joined: 10 Oct 2008
Posts: 22

PostPosted: Mon Nov 01, 2010 8:14 am    Post subject: deploying multi-tier application Reply with quote

I have been learning java and JEE by myself for some times. I use NetBeans and Glassfish. I have no problem developing and deploying JEE applications. They are multi-tier apps but all the way I only run them on a single hardware. Now it's time for me to put different tiers onto different hardware, and then I found that I don't know how. It is not as simple as put the war in web server and the ear in app server. Searching the web, I found a lot of samples on multi-tier apps but they are either run in the same box or too simple. Please point me to the direction where there are sample apps or tutorial that teaches how to deploy web and ejb to different boxes.

I did tried to do it myself, but encountered some problem that I couldn't find any sample good enough to guide me to resolve them:
1. In my multi-tier project, I have a main project with 2 sub-project, war and ejb. The main project produce an ear file. The ejb project produce a jar file and the war project a war file. When target to run on single instance of glassfish, I simply put the ear file in the autodeploy of gf can it'll work. But how can I deploy the war to one instance and the ear/jar to another?
2. Servlet only use remote interface of ejb, so servlet package can be separated from ejb packages. But what if the remote interface refers some entity beans (e.g. a facade's remote interface with method that returns an entity object). Do I need to include the entity package into the library of the web tier? I did tried to include the ejb jar into the war library, but then when I deploy to a single gf instance, it declines with duplicate ejb found (ok in GFv2 but not in GFv3).

Please help.
Back to top
Display posts from previous:   
Post new topic   Reply to topic    NetBeans Forums -> Java EE Users All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum


Powered by phpBB
By use of this website, you agree to the NetBeans Policies and Terms of Use. © 2012, Oracle Corporation and/or its affiliates. Sponsored by Oracle logo