Re: Re: Design Question: JPublish as container of more than one JPublish-App

Anthony Eden <[email protected]> Wed, 26 Mar 2003 09:18:17 -0500
Newsgroups gmane.comp.java.jpublish.devel
Message-ID <[email protected]>
I think this would have to be part of the core.  Specifically I think that there would need to be code in the JPublishServlet class which would check the path and see if there is a registered subapp and then pass off processing to that subapp.  I may need to move the actual processing logic which is currently in the servlet into another class and then have one instance of that processing logic for each subapp.  On the other hand it may be possible to just have a new SiteContext for the subapp since that is where all of managers come from.

If I understand you correctly you want to be able to drop these applications in at runtime (i.e. while the servlet engine is running) so there are also issues of class loading and reloading which are made more difficult because it is inside of a container.

Sincerely,
Anthony Eden

Andreas Kapp wrote:
> Anthony, 
> 
> coud you provide some advice how and where such an extension of Jpublish
> would be accomplished?
> 
> Thanks.
> 
> Regrads,
> Andreas
> 
> 
> Andreas Kapp wrote on Wednesday, March 19, 2003 5:15 PM:
> 
> 
> 
>>Yes, you got exactly the idea. 
>>
>>The context of the design question is the management of e-Learning content.  
>>We would like to 'mount' JPublish pages, content, actions of  i.e. an online assessment that would be packaged in a zip file to a certain place / URL in an "Container JPublish"-Environment. 
>>
>>Regards,
>>Andreas
>>
>>Anthony Eden wrote on Wednesday, March 19, 2003 2:00 PM:
>>
>>
>>>Right now that is not possible although I believe it could be added in 
>>>the future.  If I understand correctly you would like something like this:
>>>
>>>/myapp is the base JPublish application.
>>>/myapp/anotherapp would be handled by another JPublish application which 
>>>is spawned by the first JPublish application
>>>/myapp/moreapps would be handled by another JPublish application which 
>>>is spawned by the first JPublish application
>>>
>>>And so on...
>>>
>>>Does this sound accurate?
>>>
>>>Sincerely,
>>>Anthony Eden
>>>
>>>Andreas Kapp wrote:
>>>
>>>
>>>>I am thinking about a way how to use JPublish as a container of more than one
>>>>JPublish applications. Essentially this would mean that you had a mount point
>>>>where you could add another JPublish Sitecontext or parts of it like
>>>>- content
>>>>- pages
>>>>- actions
>>>>- repository
>>>>without compiling or restarting of the J2EE Webcontainer.
>>>>
>>>>What do you think? Is this possible with JPublish?
>>>>
>>>>Regards
>>>>Andreas
>>>>
>>>>
>>>>
>>>>----- Original Message ----- 
>>>>From: "Anthony Eden" <[email protected]>
>>>>To: "jpublish-developer" <[email protected]>
>>>>Sent: Friday, March 07, 2003 9:49 PM
>>>>Subject: [JPublish-developer] JPublish Newsletter for March 2003
>>>>
>>>>
>>>> 
>>>>
>>>>
>>>>>Welcome to the March edition of the JPublish Monthly Newsletter.  The JPublish Monthly Newsletter is published via email once per month to keep everyone up-to-date on the current state of JPublish development. If you would like to see anything in particular added to this newsletter please let me know.  On with the show:
>>>>>
>>>>>----------------------------
>>>>>Recent News
>>>>>
>>>>>JPublish 2.0b1 was released on February 11th.  The first beta release of JPublish 2.0 represents some significant advancements in the JPublish framework.  One of the most important changes is support for template engines other than Velocity.  The pluggable-view support in JPublish 2.0 is an important step towards increased recognition and use of the framework by developers.  Currently JPublish 2.0 supports Velocity, FreeMarker and WebMacro.  Developing new view implementations is as simple as implementing the org.jpublish.view.ViewRenderer interface and registering your view renderer in the jpublish.xml configuration.  More information on this feature will be included in the new documentation.
>>>>>
>>>>>Speaking of which another major developing in JPublish 2.0 is a brand new User's Guide which can be found in the JPublish CVS in jpublish/docs/guide.html .  You can also get to this documentation through the JPublish Wiki: http://www.jpublish.org/wiki/Wiki.jsp?page=JPublish2.0 .  Incindentally this the JPublish Wiki is also a good source of information about other upcoming changes in JPublish 2.0.
>>>>>
>>>>>Finally I would like to welcome the Open For Business developers ( http://www.ofbiz.org ) to the JPublish community.  OFBiz has decided to use JPublish for the web tier of the OFBiz application suite.  Both David Jones and Andy Zeneski have already contributed significant amounts to JPublish 2.0 and I look forward to further improvements thanks to their ongoing contributions.
>>>>>
>>>>>----------------------------
>>>>>Work in Progress
>>>>>
>>>>>JPublish 2.0 development is in full swing at the moment.  Thanks to the input from numerous developers JPublish 2.0 will not only offer improved functionality but it will also provide improved performance.  Some performance enhancements include support for caching by templating engines (this is already complete for Velocity and FreeMarker) and improved static resource management (including proper use of the Last-Modified HTTP header).  Thank you to those who have already contributed suggestions and code on improving JPublish performance.  
>>>>>
>>>>>Another important feature of JPublish 2.0 which I would like to mention is the addition of internal URIs for looking up content.  I believe that this may finally be the key to providing a unified content API.  I will follow up on this in a future edition of the JPublish Newsletter.
>>>>>
>>>>>One final note: JPublish 2.0b2 is right around the corner so stay tuned.  If you are interested in contributing code to JPublish 2.0 now is the time to speak up.  Send an email to the mailing list or to me and let's get the ball rolling.
>>>>>
>>>>>----------------------------
>>>>>Tip of the Month
>>>>>
>>>>>Did you know that you can have multiple repositories in your web applications?  The example web application that ships with JPublish demonstrates one possible use of multiple repositories.  Specifically, the JPublish example uses a repository called xml_repository as a means for reading and writing XML documents to and from the file system!  What do you mean you didn't know that repositories support writing to the file system?  Actually, this feature is disabled by default but for a FileSystemRepository it can be enabled by using the following XML in your jpublish.xml configuration:
>>>>>
>>>>><repository name="my_repository" classname="org.jpublish.repostory.filesystem.FileSystemRepository">
>>>>>   <root>myrepository</root>
>>>>>   <write-allowed>true</write-allowed>
>>>>></repository>
>>>>>
>>>>>
>>>>>Have your own tip for other JPublish users?  Drop me an email with your tip or add it to the JPublish Wiki and I may include your tip in a future newsletter.
>>>>>
>>>>>----------------------------
>>>>>
>>>>>That's it for now.  Until next month, happy coding!
>>>>>
>>>>>Sincerely,
>>>>>Anthony Eden
>>>>>
>>>>>
>>>>>
>>>>>-------------------------------------------------------
>>>>>This SF.net email is sponsored by: Etnus, makers of TotalView, The debugger 
>>>>>for complex code. Debugging C/C++ programs can leave you feeling lost and 
>>>>>disoriented. TotalView can help you find your way. Available on major UNIX 
>>>>>and Linux platforms. Try it free. www.etnus.com
>>>>>_______________________________________________
>>>>>Jpublish-developer mailing list
>>>>>[email protected]
>>>>>https://lists.sourceforge.net/lists/listinfo/jpublish-developer
>>>>>
>>>
>>>
>>>
>>>-------------------------------------------------------
>>>This SF.net email is sponsored by: Does your code think in ink? 
>>>You could win a Tablet PC. Get a free Tablet PC hat just for playing. 
>>>What are you waiting for?
>>>http://ads.sourceforge.net/cgi-bin/redirect.pl?micr5043en
>>>_______________________________________________
>>>Jpublish-developer mailing list
>>>[email protected]
>>>https://lists.sourceforge.net/lists/listinfo/jpublish-developerNHYµéSX²s²Su¼¡ë¢ê¡×?)Sx'Sr > Zë~S.¬zjÖ{*èSx¢¸¶YiÛ¢êyúé·÷?¸þ·S·¶T?ÊÓosnX.×zZz¹SX,X´snX.×zZz¹²Û¢êyúé¶m¦Ãÿ-+-²Ê.­ÇY¢¸ë?-+-³ùb²Ø§~ã¦æåSÈ]z÷¥¢-«N¬HY޵隊X¬²š'²ŠÞu¼“…àÞ~)â¶+Þ!6§t׭ŠäŠx½éíäáz·zÕ¨®W~"{^®ŠKjÃ…^«6ÓMÑz¬µêí¡Ö²†Ûiÿö²Ê.­ÇŸ¢¸ë?r›Š?ëyØ«yËi–G²ŸM4ÕéɦæåŠÈ]z÷¥¢—«™¨¥Šx%ŠËI¦æåŠÈ]z÷¥¢—«–+-²Ê.­ÇŸ¢¸ëa¶Úlÿùb²Û,¢êÜyú+éÞ·ùb²Û?–+-Å wèþ:nnX¬…ׯzZ)
> 
> er==



-------------------------------------------------------
This SF.net email is sponsored by:
The Definitive IT and Networking Event. Be There!
NetWorld+Interop Las Vegas 2003 -- Register today!
http://ads.sourceforge.net/cgi-bin/redirect.pl?keyn0001en