I did it. But I think there is no "miracle" solution.

The first step is to set loggin level to DEBUG to have a correct come-back.
Then, I deploy my EJB's (EJB's and servlet are in different .JAR / .WAR
files)
I check the default-event and default-out file and look for exceptions.
Normally, you must see your EJB's deployed in default-event.log.

Then, check default-event.log to see on which port it listens to : for me,
it's 2333.

I attach a sample ejb-jar.xml file, have a look at it. It is minimalistic,
less than this and it doesn't work...

Then, You need to try to lookup for a Home. Here is a sample that works for
me (and with the attached ejb-jar...). Don't hesitate to write your catched
exception in a log file (LOG4J is a good way to do this).
I was obliged to include my EJB classes both in the .JAR I use with the EJB
deployer AND in the WAR used for my web-app... some CLASSPATH problems, but
no solved.

It was a half-day work to do this... Hope this help.

Attached files are :
-------------------
 HomePooler.java : a class that looks-up and pool home references to ejbs
 homePooler.properties : its properties file
Please do not use them directly... try to rewrite code (at least, change
names ;-)) )
 ejb-jar.xml : I think you know what is it... The name you should look up
are the ones defined between <ejb-name> tags.


----- Original Message -----
From: <[EMAIL PROTECTED]>
To: "JRun-Talk" <[EMAIL PROTECTED]>
Sent: Wednesday, October 10, 2001 6:47 PM
Subject: An example of a Servlet and EJB


> Does anyone have a working example with COMPLETE, DETAILED instructions on
> how to deploy both the EJB and the Servlet with JRun?  I am working on a
> solution that does not deploy a new application.  It must place the EJB in
> the deploy directory and the Servlet in the default-app/.../classes
> directory.  If anyone has a complete application example with COMPLETE,
> DETAILED instructions on how to deploy it with JRun, I would be interested
> in that, also;  However, the former example is more important at this
time.
>
> Jack
> 
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to