[JBoss-dev] [EJB on JBoss] - Building Ear file

2004-05-04 Thread Annapurna
Hi all,

I am new to the concept of EAR. We have a EJB application with contains ejb-jars, 
utility jars and web.war files. Till now we deployed them individually in jboss deploy 
directory.Now we are asked to create one single ear to deploy these files.

I understand that I have to write application.xml deployment descriptor file with 
ejb-jars and web.war details. Should I also mention utility jars in it. Also the same 
utility jars are used both by ejb-jars and by the web app. What is the most efficient 
way of deploying these utility jars.

Any help is greatly appreciated.

Thanks,
Anna.

View the original post : 
http://www.jboss.org/index.html?module=bbop=viewtopicp=3833594#3833594

Reply to the post : 
http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3833594


---
This SF.Net email is sponsored by: Oracle 10g
Get certified on the hottest thing ever to hit the market... Oracle 10g. 
Take an Oracle 10g class now, and we'll give you the exam FREE. 
http://ads.osdn.com/?ad_id=3149alloc_id=8166op=click
___
JBoss-Development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development


[JBoss-dev] [EJB on JBoss] - Re: ejbStore every time a EJB is accessed (only read)

2004-05-04 Thread Annapurna
ejbstore is called every time a new transaction starts . So we cannot avoid calling 
it. One way to avoid it is to specify the bean as read only which means we are saying 
the bean will never write to the database. This can be done in the deployment 
descriptor. 

If the bean has to write to the database we can use  a flag which is made false if all 
finder methods and in ejbstore we can write code like this

 ejbStore{
if(flag) {
//write to database
}
}

Make sure the flag is turned to true at the right time(in setmethods etc). 

Hope this helps.

Anna.

View the original post : 
http://www.jboss.org/index.html?module=bbop=viewtopicp=3833596#3833596

Reply to the post : 
http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3833596


---
This SF.Net email is sponsored by: Oracle 10g
Get certified on the hottest thing ever to hit the market... Oracle 10g. 
Take an Oracle 10g class now, and we'll give you the exam FREE. 
http://ads.osdn.com/?ad_id=3149alloc_id=8166op=click
___
JBoss-Development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development