Question about EJB 3.0
4 Message(s) by 2 Author(s) originally posted in java beans
| From: cold80 |
Date: Wednesday, February 07, 2007
|
Just to understand better...I'm studying EBJ 3.0,
session bean s,
entities and JBoss to
write web and distribuited
application s for my
University coruse of Web Architecture. I'm studying a lot of
documentation and as a
reference I'm reading the book "Mastering EJB
4th Edition". The problem is I can not understand the
goal of
entities...I mean...am I supposed to use them always in the same VM
that is hosting the sessions beans, my jsp pages and servlets? Because
if I want to develop a
client application that use the session beans
in order to interact with the
server I need to let the entities
serializable and I've to give the .class files of the entities to
the client too! And this isn't very good because if I change these
entities I'm supposed to deploy the new .class files to all the
clients...
I hope I made myself clear
Thanks in advance for your help
Cold
| From: Per Newgro |
Date: Thursday, February 08, 2007
|
| From: cold80 |
Date: Thursday, February 08, 2007
|
Still it does not answer to my question...I understand that an entity
bean can be shared beetween different clients, but if I've to change
something in the
data base (and reflecting the changes on some
entities) I need to recompile these entitites and to deploy them to
all the users...this can be very annoying, do not you think? I mean,
maybe a better scenario is when I've a web application where all the
stuff is deployed in the same application server (therefore in the
same VM as well). Or am I not grabbing something about this
technology? Is that true that I've to deploy all the entities .class
files to all the clients every time I need to change something on my
data?
Thank you for your help
Cold
| From: Per Newgro |
Date: Thursday, February 08, 2007
|
Hallo cold80@xxxxxxxxxxx,
Still it does not answer to my question...I understand that an entity
bean can be shared beetween different clients, but if I've to change
something in the database (and reflecting the changes on some
entities) I need to recompile these entitites and to deploy them to
all the users...this can be very annoying, do not you think? I mean,
maybe a better scenario is when I've a web application where all the
stuff is deployed in the same application server (therefore in the
same VM as well). Or am I not grabbing something about this
technology? Is that true that I've to deploy all the entities .class
files to all the clients every time I need to change something on my
data?
It depends. If your bean do not care about the datamodel (is generic) it's
not required. But normally yes (in bean for BMT or in deployment descriptor
for CMT). Do you change your data model periodically often? Otherwise if
you change it maybe 2 times a year the delivery of a new
version seems not
a big problem to be for me.
There is a
feature called hot deployment. This manages the new deployments
on customer side. So normally its enough to build a good
installer without
restarting the server.
Cheers
Per
Next Message: JBoss - .Net interoperability
Blogs related to Question about EJB 3.0
Free Java EBooks Download
Includes more than
30 percent revised material and five new chapters, covering the new 2.1 features such as
EJB Timer Service and JMS as well as the latest open source
Java solutions Mastering Enterprise JavaBeans 3rd Edition
...
java中文编码[转]
于是我给出此篇文章,内容包括对控制台运行的class、Servelets、JSP及
EJB类中的中文问题我剖析和建议解决办法。希望大家指教。 Abstract:本文深入分析了
Java程序设计中
Java编译器对
Java源文件和JVM对class类文件的编码/解码过程,通过此过程的解析透视出
...
Techdays 2007 - Day 1
Later there as a session on
Java Glassfish, usual
EJB 3.0 explanations, new JAXB, JAX-WS APIs and etc. But the hilarious part was the
question time. People were asking
questions like how can I install galssfish into IIS (MS-IIS) ?
...
[Indiafreshers] [Bangalore_freshers] ==>HR Interview Questions ...
Hardware and Software Design Interview
Questions. Hardware Design Interview
Questions. Intel Interview
Questions. X86 Interview
Questions. J2EE INTERVIEW
QUESTIONS.
EJB Interview
Questions.
Java Interview
Questions ...
[it_jobs_india] 30-Sep::Jobs For All:: TCS, Deftsoft, Religare ...
Net Interview
Questions; BlueTooth Interview
Questions; C/C++ Interview
Questions ... Interview
Questions; Database Interview
Questions;
EJB Interview
Questions; HR Interview
Questions; J2EE Interview
Questions;
Java Interview
Questions ...
JDBC Interview Questions - FAQs
On the other hand, Pure
Java JDBC drivers work well with applets.
... The
EJB should be tx-requires, which means it will start a transaction
... 30. Why do I get a SystemException failure when trying to enlist my XAResource in a client?
...