Win a copy of Testing JavaScript Applications this week in the HTML Pages with CSS and JavaScript forum!
  • 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

EJB Server

 
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I very confusing when wanna to run EJB application because every different tutorial have different EJB server.
Is the EJB application able to work with different vendor EJB server?
p/s: i have EJB tutorial from Sun and Gopalan.
 
Ranch Hand
Posts: 193
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yes, your EJBs should run in any server. That is after all one of the main strengths of Java, being portable.
What does change between servers, however, is the "deployment descriptor". This is an XML file that you package with your Java classes, that describes to the server how to install your EJB.
 
Ranch Hand
Posts: 140
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Its not quite that simple, there are different versions of the EJB standard, I believe that EJB 1.1 is a fairly safe bet, but some app servers support EJB2.0 or have "exotic" extentions to the existing standards -- so write to a standard, and you should be fine.
Also, you can have JDBC driver problems, the ODBC-JDBC bridge that comes as standard, for example is pretty hopeless. When moving platform, make sure that you have a suitable DB driver.
 
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
EJB is a component model from javasoft to build portable enterprise applications from reaydmade components from the marketplace... if you stick to the specification your application shud be easily portable to any other app server without a single issue... some app servers support non standard things and programmers opt for it because of ease or some vendor specific optimizations.. so you might end up having issues while porting to app other server...

Originally posted by chauryih see:
I very confusing when wanna to run EJB application because every different tutorial have different EJB server.
Is the EJB application able to work with different vendor EJB server?
p/s: i have EJB tutorial from Sun and Gopalan.


[This message has been edited by Priyank RASTOGI (edited September 11, 2001).]
 
Author
Posts: 25
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Writing EJBs for the most part is the easy task, and unless you are doing anything that would particularly tie you to that container, then the bean itself should be easily portable. Where all the demons enter is in the deployment part. All beans have a standard deployment descriptor (ejb-jar.xml) which again should be consistent across whatever container. However, many containers require additional deployment information. This is for things like configuring the datasource and any other reources that the beans use.
The 2.0 spec is a bit more standardised than 1.1 as it introduces the EJB Query Language for defining finder methods (rather than whatever langauge the container had provided). So for example, you'll now find it a bit easier to write the weblogic-jar and weblogic-cmp-jar files.
------------------
Craig Berry
Author of Professional EJB
 
Sheriff
Posts: 9099
12
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
How in-depth is the book regarding the deployment descriptor?
 
There's a city wid manhunt for this tiny ad:
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