Re: BeanShell and Class: x not in namespace
"Florin T.PATRASCU" <[email protected]> Sun, 18 Jun 2006 11:39:25 -0400
| Newsgroups | gmane.comp.java.jpublish.devel |
|---|---|
| Message-ID | <[email protected]> |
--===============0205830404== Content-Type: multipart/alternative; boundary=Apple-Mail-2-539273307 --Apple-Mail-2-539273307 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed You guys are restless ;) On 18-Jun-06, at 9:26 AM, Alejandro Revilla wrote: >> have you thought in writing a module to encapsulate all the >> functionality? >> > While I like the module concept, I was under the impression that > modules where more suitable to deal with stand-alone kind of > components (think a calendar, a captcha generator and things > like that). There has been a long time since I read JP documentation > for the last time, so I'll have to get back to the manual in order to > see if using a module here is feasible. These too, but a module can also cleanly encapsulates functionality that other web developers would not like to maintain but to use only; any Authentication layer being one of those not everybody wants to play with. I remember I wrote a JPublish mailer module long time ago is in the CVS somewhere between the modules. Is an example you may want to see. If you can't find it please let me know and I'll send you the source code. Through a module all the actions and related functionality are all made magically (I like how Rebel is using this word;) available to the the entire site. A module has his own config and life-cycle. I personally prefer it for most of the situations when clean deployment is needed. Components are a different animal and yes, those can be used for Captcha, calendars and anything else that can have an output that can be embedded in a web page. >> Are you guys working with JP3 or JP2? >> > JP3 - we started with JP2 but moved to JP3 because it was the active > branch at that time. We can get back to JP2 if the fun is there now No, no, I was just trying to find where are more users so I could move my updates to where is more interest. I anyway need to maintain JP2 for some important outgoing projects I have to maintain. JP3 is just that is adding a bit of more complexity to the syntax ... that's all, otherwise is a JP2 refactored and is stable. Personally I am not too too happy with the vfs dependencies and the repository syntax definitions but it's ok. I have a JP2 based project very tight (at the interfaces level only, of course) integrated with Spring and there the vfs was completely deprecated by the usage of the Resource:http://www.springframework.org/docs/api/org/springframework/ core/io/Resource.html. But that is another story ;) Guys, anyway, I really appreciate your feedback! -florin PS Ahhh ... I forgot, Rebel, if you want to play with MBeans and JPublish, here is how I managed to integrate some core OFBiz modules in a large JPublish application running under JBoss. I have this solution in production and is running without problems. Doing that you only need access to the JNDI to invoke your services. http://weblog.flop.ca/2005/08/06/1123364832780.html --Apple-Mail-2-539273307 Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=ISO-8859-1 <HTML><BODY style=3D"word-wrap: break-word; -khtml-nbsp-mode: space; = -khtml-line-break: after-white-space; ">You guys are restless = ;)<DIV><BR><DIV><DIV>On 18-Jun-06, at 9:26 AM, Alejandro Revilla = wrote:</DIV><BR class=3D"Apple-interchange-newline"><BLOCKQUOTE = type=3D"cite"><BLOCKQUOTE type=3D"cite"><P style=3D"margin: 0.0px 0.0px = 0.0px 10.0px"><FONT face=3D"Andale Mono" size=3D"4" style=3D"font: = 13.0px Andale Mono">have you thought in writing a module to encapsulate = all the<SPAN class=3D"Apple-converted-space">=A0</SPAN></FONT></P> <P = style=3D"margin: 0.0px 0.0px 0.0px 10.0px"><FONT face=3D"Andale Mono" = size=3D"4" style=3D"font: 13.0px Andale Mono">functionality?</FONT></P> = <P style=3D"margin: 0.0px 0.0px 0.0px 10.0px; font: 13.0px Andale Mono; = min-height: 15.0px"><BR></P> </BLOCKQUOTE><P style=3D"margin: 0.0px = 0.0px 0.0px 0.0px"><FONT face=3D"Andale Mono" size=3D"4" style=3D"font: = 13.0px Andale Mono">While I like the module concept, I was under the = impression that</FONT></P> <P style=3D"margin: 0.0px 0.0px 0.0px = 0.0px"><FONT face=3D"Andale Mono" size=3D"4" style=3D"font: 13.0px = Andale Mono">modules where more suitable to deal with stand-alone kind = of</FONT></P> <P style=3D"margin: 0.0px 0.0px 0.0px 0.0px"><FONT = face=3D"Andale Mono" size=3D"4" style=3D"font: 13.0px Andale = Mono">components (think a calendar, a captcha generator and = things</FONT></P> <P style=3D"margin: 0.0px 0.0px 0.0px 0.0px"><FONT = face=3D"Andale Mono" size=3D"4" style=3D"font: 13.0px Andale Mono">like = that). There has been a long time since I read JP = documentation</FONT></P> <P style=3D"margin: 0.0px 0.0px 0.0px = 0.0px"><FONT face=3D"Andale Mono" size=3D"4" style=3D"font: 13.0px = Andale Mono">for the last time, so I'll have to get back to the manual = in order to<SPAN class=3D"Apple-converted-space">=A0</SPAN></FONT></P> = <P style=3D"margin: 0.0px 0.0px 0.0px 0.0px"><FONT face=3D"Andale Mono" = size=3D"4" style=3D"font: 13.0px Andale Mono">see if using a module here = is feasible.</FONT></P> </BLOCKQUOTE></DIV><BR><DIV><BR = class=3D"khtml-block-placeholder"></DIV><DIV>These too, but a module can = also cleanly encapsulates functionality that other web developers would = not like to maintain but to use only; any Authentication layer being one = of those not everybody wants to play with. I remember I wrote a JPublish = mailer module long time ago is in the CVS somewhere between the modules. = Is an example you may want to see. If you can't find it please let me = know and I'll send you the source code.=A0</DIV><DIV><BR = class=3D"khtml-block-placeholder"></DIV><DIV>Through a module all the = actions and related=A0functionality are all made magically (I like how = Rebel is using this word;) available to the the entire site. A module = has his own config and life-cycle. I personally prefer it for most of = the situations when clean deployment is needed. Components are a = different animal and yes, those can be used for Captcha, calendars and = anything else that can have an output that can be=A0embedded in a web = page.</DIV><DIV><BR class=3D"khtml-block-placeholder"></DIV><DIV><BR = class=3D"khtml-block-placeholder"></DIV><BLOCKQUOTE = type=3D"cite"></BLOCKQUOTE><BR><BLOCKQUOTE type=3D"cite"><BLOCKQUOTE = type=3D"cite"><DIV style=3D"margin-top: 0px; margin-right: 0px; = margin-bottom: 0px; margin-left: 10px; "><FONT class=3D"Apple-style-span" = face=3D"Andale Mono">Are you guys working with JP3 or JP2?</FONT><FONT = class=3D"Apple-style-span" face=3D"Andale Mono">=A0</FONT></DIV><DIV = style=3D"margin-top: 0px; margin-right: 0px; margin-bottom: 0px; = margin-left: 10px; font: normal normal normal 13px/normal Andale Mono; = min-height: 15px; "><BR style=3D""></DIV></BLOCKQUOTE><DIV = style=3D"margin-top: 0px; margin-right: 0px; margin-bottom: 0px; = margin-left: 0px; ">JP3 - we started with JP2 but moved to JP3 because = it was the active</DIV><DIV style=3D"margin-top: 0px; margin-right: 0px; = margin-bottom: 0px; margin-left: 0px; ">branch at that time. We can get = back to JP2 if the fun is there now</DIV></BLOCKQUOTE><BR><DIV><BR = class=3D"khtml-block-placeholder"></DIV><DIV>No, no, I was just trying = to find where are more users so I could move my updates to where is more = interest. I anyway need to maintain JP2 for some important outgoing = projects I have to maintain.</DIV><DIV><BR = class=3D"khtml-block-placeholder"></DIV><DIV>JP3 is just that is adding = a bit of more complexity to the syntax ... that's all, otherwise is a = JP2 refactored and is stable. Personally I am not too too happy with the = vfs dependencies and the repository syntax definitions but it's ok. I = have a JP2 based project very tight (at the interfaces level only, of = course) integrated with Spring and there the vfs was completely = deprecated by the usage of the Resource:<FONT class=3D"Apple-style-span" = face=3D"Helvetica" size=3D"3"><SPAN class=3D"Apple-style-span" = style=3D"font-size: 12px;"><A = href=3D"http://www.springframework.org/docs/api/org/springframework/core/i= o/Resource.html">http://www.springframework.org/docs/api/org/springframewo= rk/core/io/Resource.html</A></SPAN></FONT>. But that is another story = ;)</DIV><DIV><BR class=3D"khtml-block-placeholder"></DIV><DIV>Guys, = anyway, I really appreciate your = feedback!</DIV><DIV>-florin</DIV><DIV><BR = class=3D"khtml-block-placeholder"></DIV><DIV><BR = class=3D"khtml-block-placeholder"></DIV><DIV>PS</DIV><DIV>Ahhh ... I = forgot, Rebel, if you want to play with MBeans and JPublish, here is how = I managed to integrate some core OFBiz modules in a large JPublish = application running under JBoss. I have this solution in production and = is running without problems. Doing that you only need access to the JNDI = to invoke your services.</DIV><DIV><FONT class=3D"Apple-style-span" = face=3D"Helvetica" size=3D"3"><SPAN class=3D"Apple-style-span" = style=3D"font-size: 12px;"><A = href=3D"http://weblog.flop.ca/2005/08/06/1123364832780.html">http://weblog= .flop.ca/2005/08/06/1123364832780.html</A></SPAN></FONT></DIV><DIV><FONT = class=3D"Apple-style-span" face=3D"Helvetica" size=3D"3"><SPAN = class=3D"Apple-style-span" style=3D"font-size: 12px;"><BR = class=3D"khtml-block-placeholder"></SPAN></FONT></DIV></DIV></BODY></HTML>= --Apple-Mail-2-539273307-- --===============0205830404== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline --===============0205830404== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Jpublish-developer mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/jpublish-developer --===============0205830404==--