• 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Bear Bibeault
  • Ron McLeod
  • Jeanne Boyarsky
  • Paul Clapham
Sheriffs:
  • Tim Cooke
  • Liutauras Vilda
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • fred rosenberger
  • salvin francis
Bartenders:
  • Piet Souris
  • Frits Walraven
  • Carey Brown

Local or Remote Client view

 
Ranch Hand
Posts: 118
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I've a requirement that set of Business Services(ejb) will be packaged in xyzEar file and we will build a client which will be packaged in abcEar file.

But both ear files (abcEar and xyzEar) will be deployed in same application server.

My doubt is should is use LocalView or Remote View or no-view?
 
Ranch Hand
Posts: 209
Tomcat Server Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Shankar sanjay wrote:Hi,
I've a requirement that set of Business Services(ejb) will be packaged in xyzEar file and we will build a client which will be packaged in abcEar file.
But both ear files (abcEar and xyzEar) will be deployed in same application server.
My doubt is should is use LocalView or Remote View or no-view?



I think it should be remote view because there are certain requirements for a local view sated in the specs and one of the requirements is that they should be part of same Ear file.
And even i am unclear of why is this requirement stated as such.Because if 2 ear files are going to be place in the same app server , that is same JVM , then why is this rule being implied of being in the same Ear file ??
 
Shankar sanjay
Ranch Hand
Posts: 118
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks for reply and sorry for my delay response :-) The xyzEar file from VendorX(i.e companyX) and abcEar file from VendorA (i.e companyA).

I would like to know whether xyzEar and abcEar resides in same JVM or different JVM. (assume both the ear files deployed in the same application server.)
 
Creator of Enthuware JWS+ V6
Posts: 3348
303
Android Eclipse IDE Chrome
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All,

I would like to know whether xyzEar and abcEar resides in same JVM or different JVM. (assume both the ear files deployed in the same application server.)


They will reside in the same JVM.

Note that the specs say:

Use of a session bean's local client view entails the collocation of the local client and the session. The local client of an enterprise bean must be collocated in the same container as the bean. The local client view is not location-independent


This leaves open the possibility of a Local view between Ear's, but a little bit further on:

Access to an enterprise bean through the local client view is only required to be supported for local clients packaged within the same application as the enterprise bean that provides the local client view. Compliant implementations of this specification may optionally support access to the local client view of an enterprise bean from a local client packaged in a different application. The configuration requirements for inter-application access to the local client view are vendor-specific and are outside the scope of this specification. Applications relying on inter-application access to the local client view are non-portable.


In other words: a local view between ears is possible but not required to be supported.

Regards,
Frits
 
Listen. That's my theme music. That's how I know I'm a super hero. That, and this tiny ad told me:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
https://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton
    Bookmark Topic Watch Topic
  • New Topic