Implementing my own realm

2005-07-05 Thread Laurent FALLET
Hi everybody,
I'm planning to write my own realm, because the JDBCRealm doesn't suit
me very well. I would like to implement something else which only
needs 3 more lines.
The problem is that I don't know if I have to:
- add this new realm in Tomcat sources (create my own java file)
- then recompile all Tomcat
- and eventually use my new catalina.jar library into my running Tomcat
or
if it is possible to implement it outside the library and use it
either in it own jar file or directly in the webapp.

Any idea?
Tell me if I wasn't clear, or if you need details.
Regards,
Laurent

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: plugin-like structure

2005-07-04 Thread Laurent FALLET
There is a way to do this in Tomcat. I'm a beginner in Tomcat's
administration but I know there are some ways to do this.
In tomcat conf file, server.xml, create some host / tags (there is
already one by default for localhost). Then I would say that if the
content of your webapp is depending of the domain name, create
multiple webapps.

host name=org.toto.common appBase=directoryWhereYourWebappIs1 /

host name=org.toto.domain appBase=directoryWhereYourWebappIs2 /

host name=org.toto.ui appBase=directoryWhereYourWebappIs3 /

More info here: http://jakarta.apache.org/tomcat/tomcat-5.5-doc/config/host.html

Hope this helps,
Laurent


2005/7/5, Xavier Méhaut [EMAIL PROTECTED]:
 Hello,
 I would like to build a Tomcat application which can be accessed through
 http://myWebAddress:8080/MyAppli/index.jsp  but which the directory
 structure should be (as we used to have in eclipse) like the following
 one :
 
 MyAppli/
  org.toto.common/
  WEB-INF/
   classes/
   lib/
   src/
  org.toto.domain/
 WEB-INF/
   classes/
   lib/
   src/
  org.toto.ui/
 index.jsp
 jsp/
   
 WEB-INF/
   classes/
   lib/
   src/
 
 Is there a means to do this easily in Tomcat (through web.xml files for
 instance) and how?
 
 Thanks in davance
 Xavier
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]