I have read your book thru safari books and used the companion book.
It is a great book. And by now I believe I understand the way a J2EE app should be written - Bean, Remote and Home Interface and soon.
What I don't get it is: How do I write xml config files?
For example I have a simple bean called MathStuff wich implements a single method: int fatorial(int n).
I have compiled MathStuff (remote interface), MathStuffHome and MathStuffBean sucessfully and saved the class file at JBOSS_HOME/server/default/deploy/myapp.ear
I believe that I just need to write ejb-jar.xml and jboss.xml at META-INF. Is that correct?
Do I need an application.xml too? If not why I always got:
org.jboss.deployment.DeploymentException: No META-INF/application.xml found
Is the following ejb-jar.xml near of correction?
<ejb-jar>
<enterprise-beans>
<session>
<ejb-name>ejb/MathStuff</ejb-name>
<home>MathStuffHome</home>
<remote>MathStuff</remote>
<ejb-class>MathStuffBean</ejb-class.
</session>
</enterprise-beans>
</ejb-jar>
Thank you,
Valter
From: "Bill Burke" <[EMAIL PROTECTED]>
Reply-To: [EMAIL PROTECTED]
To: <[EMAIL PROTECTED]>
Subject: RE: [JBoss-user] Maybe it is me
Date: Mon, 17 Feb 2003 15:57:53 -0500
Sacha Labourey and I have written a companion workbook to Oreilly's EJB 3rd
edition by RMH. It will be published sometime this spring, but you can
obtain the 1st draft of it online for free, (but you'll have to buy the EJB
book.)
More info here:
http://www.oreilly.com/catalog/entjbeans3/workbooks/index.html
Bill
> -----Original Message-----
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED]]On Behalf Of Corbin,
> James
> Sent: Monday, February 17, 2003 3:00 PM
> To: [EMAIL PROTECTED]
> Subject: RE: [JBoss-user] Maybe it is me
>
>
>
> Sorry you are having some much trouble with the technology.
> There are many books available that step you through the creation of EJBs
> using the J2EE framework. Since JBOSS is a standards compliant
> platform you
> should be able to get it up and running on JBOSS without too much trouble.
> There is quick start documentation on the web site (www.jboss.org) that
> steps you through the process of creating EJB from the ground up including
> laying out your directory structures.
>
> J.D.
>
>
>
> -----Original Message-----
> From: Valter Nogueira [mailto:[EMAIL PROTECTED]]
> Sent: Monday, February 17, 2003 12:35 PM
> To: [EMAIL PROTECTED]
> Subject: [JBoss-user] Maybe it is me
>
> As a experienced software developer I have never facing such
> dauting task as
>
> learn j2ee/jboss.
>
> Ok. Maybe it is me - but after been around jboss, reading J2EE and JBOSS
> books I am still unable to build a simple Hello World Session
> Bean from the
> ground up and put it to run.
>
> I have seen magic xdoclets templates and ant build scripts, but I
> didn't see
>
> a straight doc that told me - write Hello.java, HelloRemote.java,
> HelloHome.java, plus 2 or 3 xml descriptors and voila!
>
> And just to mention - nor I have found a good explanation about
> DD's, nor a
> good sample of J2EE client file set - including jndi config files.
>
> Everything is convoluted and need expertise just to startup.
>
> As I told before, maybe it is me, but the ASP/COM stuff I have started
> coding in a snap.
>
> I wrote this to spread my perception and to hear some other's
>
> Valter
>
> PS. I won't give up before I finish my JBoss proof-of-concept application.
>
>
> _________________________________________________________________
> MSN Hotmail, o maior webmail do Brasil. http://www.hotmail.com
>
>
>
> -------------------------------------------------------
> This sf.net email is sponsored by:ThinkGeek
> Welcome to geek heaven.
> http://thinkgeek.com/sf
> _______________________________________________
> JBoss-user mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/jboss-user
> This electronic message transmission contains information from
> the Company that may be proprietary, confidential and/or privileged.
> The information is intended only for the use of the individual(s)
> or entity named above. If you are not the intended recipient, be
> aware that any disclosure, copying or distribution or use of the
> contents of this information is prohibited. If you have received
> this electronic transmission in error, please notify the sender
> immediately by replying to the address listed in the "From:" field.
>
>
>
> -------------------------------------------------------
> This sf.net email is sponsored by:ThinkGeek
> Welcome to geek heaven.
> http://thinkgeek.com/sf
> _______________________________________________
> JBoss-user mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/jboss-user
-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user
_________________________________________________________________
MSN Messenger: converse com os seus amigos online. http://messenger.msn.com.br
-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user
