File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

seperate web and ejb servers or same?

 
nir sharma
Ranch Hand
Posts: 72
Eclipse IDE Java Tomcat Server
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
I am working on a web application which is based on struts 2 framework and is deployed on tomcat. Now I have to implement ejb and hibernate for the same application and I'm told that it will be a separate module which will be deployed on jBoss AS 7 server. What I want to know is that is this a good approach or will it be better to deploy the complete project on jBoss and remove tomcat from the picture? (and why?)
Also can you give me a link where I can find the way to make a remote call from tomcat(web service) to jBoss (ejb).
Thanks

P.S. : Mods, I wasn't sure about where to post my question because its also related to jBoss so if I have posted in the wrong forum then please move it to the appropriate one.
 
nir sharma
Ranch Hand
Posts: 72
Eclipse IDE Java Tomcat Server
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Can anyone give me any suggestion on this as I'm unable to find anything over the internet.
If you can provide any link related to this will also be very helpful.

Thanks
 
Gaurav Gupta Ser
Greenhorn
Posts: 6
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
To separate ejb module from web , you have to use Remote Interface .
Remote interfaces paramters are passed by value and
Local interface paremeters are passed by reference there are fundemental semantic differences between the two cases .

you can call Remote EJB by two way-
1- JNDI lookup to call


2- (For GlassFish , may be it will provide you way on jboss) Configure Remote EJB JNDI lookup in sun-web.xml and jar file ( appserv-rt.jar , gf-client.jar , glassfish-naming.jar)

 
nir sharma
Ranch Hand
Posts: 72
Eclipse IDE Java Tomcat Server
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I tried the first option, it still isn't working. I'm getting this:

I think here the ip and port are important, can you tell me what to use.
First tried the same thing as you have mentioned.
Then I tried with localhost and the same port.
and then with localhost and port 4447.
None of these worked.
Can you tell me whether I need to make any changed in JBOSS xml files.



See here is the socket binding list, and there no socket for IIOP. (not whether this is the problem area.)

Can you provide further guidance or any suggestion on further changes I need to make.

regards
nir
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic