I think the thing I am looking for here is the same "ease of development" of
servlets. I have a single project like so:

com
com/path
com/path/core
com/path/ejb
com/path/ui
com/path/ui/beans
com/path/ui/actions
com/path/ui/servlets
com/path/ui/tags

This is one project file (using Kawa 4.10). I then build the whole project
and it all compiles to WEB-INF/classes. This is how we develop all of our
code. So, Orion, using a web-app deployed to it, knows that all the classes
are in WEB-INF/classes and finds them (with no classpath setting in the
environment I might add!). What I am hoping to achieve is to somehow get the
ejb deployment stuff to point to WEB-INF/classes/com/path/ejb to find all
the ejbs, so that I can edit my code, compile the package (or the whole
project) and Orion will pick up on them right away (or with a restart). This
would all be done without me having to do anything extra, such as packaging
the ejb into a .jar file, or having to specially compile the ejb package to
a different dir, or having to move the ejb classes into a different folder!
For the hell of it, I put a META-INF folder below the WEB-INF/classes where
I put the ejb-jar.xml file, and Orion seems to be looking for the classes in
the right place..which is what I want. I just get this error that I reported
in a previous response to this list about this subject, and it appears it
wont find the ejbs.

Now, I used the Orion Primer and the Orion CMP Primer as examples, and the
Orion Primer had nothing in the web.xml but the Orion CMP Primer did..it had
an ejb-ref tag in it. I don't have this in my web.xml, so I am wondering if
this is required, or why it is in the Orion CMP Primer, but not the Orion
Primer web.xml example.

Thanks.



> -----Original Message-----
> From: Juan Lorandi (Chile) [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, October 19, 2000 2:03 PM
> To: Orion-Interest
> Subject: RE: EJB Help..
> 
> 
> I acomplish this by simply:
> 
> Creating a directory (in orion\applications) with the same 
> name than the ear
> (directory: Test.ear)
> then there I put the contents of my .ear, then repeat the process for
> ejb-jar and war files...
> 
> then, simply put your updated classes there(below your 
> ejb-jar dir, like say
> orion\applications\Test.ear\ejb-jar-ic.jar
> to update the descriptor, use earassembler and open your .ear 
> dir within
> orion\applications.
> 
> Works great for me!
> 
> HTH,
> 
> JP
> 
> -----Original Message-----
> From: Duffey, Kevin [mailto:[EMAIL PROTECTED]]
> Sent: Jueves, 19 de Octubre de 2000 16:37
> To: Orion-Interest
> Subject: EJB Help..
> 
> 
> Hi all,
> 
> I am trying my hand at EJB with Orion, and I am wondering if 
> there is any
> way to avoid the hassle of always having to package the ejb 
> classes into a
> .jar file, and so on. Is there any way at all to develop and 
> deploy ejbs
> using an expanded dir structure, much like in the development 
> of a .war
> file..where you have the whole www dir, WEB-INF, etc 
> expanded..but then jar
> it up and rename it to .war for deployment? It seems rather 
> tedious on ejb
> development every time a change is made, the whole thing has to be
> repackaged and deployed. I know there are some tools, such as 
> JBuilder,
> VisualCafe, etc that do this for you somewhat nicely..but 
> even those take a
> little bit of time to do it. So, for the purposes of 
> development, where many
> changes are happening on any regular basis, how can I quickly 
> develop and
> test ejb, with Orion, or any app server for that matter. I do want the
> ability for the context.lookup() call to work. The reason 
> is..I have two
> computers, networked. I want to develop the ejbs on one 
> computer, and have
> my www stuff on the other hitting them over the network so 
> that i can get
> some kind of feel of the performance. I have a 4-way switch, so I can
> develop www stuff, then switch over to the other computer and 
> do some ejb
> stuff. I will run one instance of Orion on each computer. 
> However, I don't
> mind also being able to run www and ejb stuff in the same on 
> instance on one
> computer, as long as the lookup stuff is used the same way, 
> even though the
> ejb's are running locally.
> 
> Any pointers on how to set up Orion to do this, including the
> application.xml <module> tag (how to point it to the right 
> place instead of
> the ejb.jar file, for example so that the ejbs will get 
> picked up by the
> server), web.xml, orion-web.xml, server.xml, etc..anything 
> that needs to be
> done to get this to work.
> 
> Thanks so much for any help.
> 

Reply via email to