RE: MVC/XML Framework Comments please
We use XSLT quite a lot. When you say web application I assume you are interested in the presentation aspects of XSLT; reason I make the distinction is because I'd say XSLT is considerably more important on the back-end (or can be, depending on your data sources). We use XSLT for presentation. We are light (very light) on JSPs, because of other architectural decisions, so the responsibility of preparing a response is delegated to a self-contained service (couple of classes, really) that use a variety of parameters to assemble XML and then apply appropriate stylesheets. We use homegrown templating for XML assembly, and make extensive use of XSLT includes. Performance is very acceptable, compared to other latencies in the system (data, wireless roundtrips, etc etc). We do not expect XSLT to handle the entire presentation problem. We have found that it is unlikely that the same app will run on both cell-phones and web-browsers; even when the same material is being presented to a cellphone or PDA, to make best use of the varying footprints one has to tailor the content enough that in effect one might as well have different content. XSLT is useful within device-classes, not across them, in general, except for trivial output. Which is no surprise. We never considered exposing designers to XSLT. We use full-fledged rules-oriented, parametrized stylesheets as opposed to fill-in-the-blanks stylesheets, and the same programmers that develop XSLT are at other times writing framework code or data access code or business logic. I don't know a whole bunch of designers, to be honest, but I don't think they'd get very far with this stuff. :-) We experimented with custom tags for XSLT in JSPs early last year; it's a nice mechanism. As I say, our decision not to work this way has to do with our decision to go easy on the JSPs. Regards, Arved Sandstrom -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Jeff Schnitzer Sent: Friday, April 27, 2001 9:18 PM To: Orion-Interest Subject: RE: MVC/XML Framework Comments please Doh! Sorry, that wasn't supposed to go to the list. But to keep this topic going (because I'm still undecided about what direction to go): Is anyone here besides Tim using XSLT in their web application? How do you like it? Is it easy to get designers up and running with it? How do you interface between Java and XML (jsp? building dom nodes in java? something else?) ? Thanks, Jeff -Original Message- From: Jeff Schnitzer Sent: Friday, April 27, 2001 3:38 PM To: Orion-Interest Subject: RE: MVC/XML Framework Comments please I'm definitely interested in your framework; may I have a copy? Thanks, Jeff -Original Message- From: Duffey, Kevin [mailto:[EMAIL PROTECTED]] Sent: Thursday, April 26, 2001 2:39 PM To: Orion-Interest Subject: RE: MVC/XML Framework Comments please I use my own framework for a couple of sites, and have gotten feedback from others using it as well. Its only 15K in size, full source, its free to use, modify, etc. If your interested in it, send me an email. It supports xsl transformations, and is very similar to Struts only that I found struts too much for my needs, and some features it didn't do that I needed, so I went that direction. -Original Message- From: Vic Cekvenich [mailto:[EMAIL PROTECTED]] Sent: Thursday, April 26, 2001 11:53 AM To: Orion-Interest Subject: MVC/XML Framework Comments please We are bout to pick a a framework, and I am looking for are comments or recommendation on a frameworks, other than Struts. (Don't want to be HTML/JSP centric) Any feedback on your experience with a framework, or do you know of web sites in production that are using a certain frame work, or do you know of friend or someone who has used one. I would like it to be XML centric, and MVC. For example, the V should apply the XSL to XML, to make it HTML. It should do standard session tracking. It should do standard data manager, so that Java Beans do the SQL (the M). A minor plus is form entry management and a bit of image/content management. It should be a single rich framework. Here are a few we are considering: http://www.jcorporate.com/html/products/productsfm.html http://www.jcorporate.com/html/products/productsfm.html http://jakarta.apache.org/jetspeed/site/index.html http://jakarta.apache.org/jetspeed/site/index.html and all the ones under Jakarta. We need to pick one soon. Any comments and feedback welcome on frameworks/class libraries. Thanks, [EMAIL PROTECTED]
Setting Up Orion/OpenJMS Behind Firewall - What Ports to Open?
Hi All, I will have two machines in my environment, both running Orion. One will be holding the EJBs, database, while the other is for the webapp. What ports, besides 80 and 443 do I need to open? What ports will RMI, ORMI, OpenJSM use? Thanks!
RE: log4j and ejb
We call log4j from JSP and from EJB. We use a servlet to startup log4j: a servlet parameter passes the configuration file name. Here is the code: public class InitLog4J extends HttpServlet { private static final String PARAM_NAME_CONFIG_FILE = configuration.file; public void init(ServletConfig sconf) throws ServletException { super.init(sconf); //retrieve configuration file name String cfg_file = sconf.getInitParameter(PARAM_NAME_CONFIG_FILE); //check init parameter exists, else return if (cfg_file == null) { System.err.println(missing configuration parameter in web.xml: + PARAM_NAME_CONFIG_FILE); System.err.println(Log4J will not be initialized.); return; } //configure log4j PropertyConfigurator.configure(cfg_file); } } Add this to your web.xml servlet servlet-namefoo.bar.servlet.InitLog4J/servlet-name display-nameInitialization Log4J/display-name servlet-classfoo.bar.servlet.InitLog4J/servlet-class init-param param-nameconfiguration.file/param-name param-valuec:\path\logging.cfg/param-value /init-param load-on-startup1/load-on-startup /servlet In our case, logging.cfg is a PropertyConfigurator file. Have fun, Yves Bossel
Re: log4j and ejb
Thanks for replies. I don't think it's actually necessary to load it from a bean and would probably be better to use a servlet. Todd Fredrik Lindgren wrote: Is it necessary for you to load the configuration from an EJB? We use the DOMConfigurator by having a simple servlet load the configuration file as a resource. We set the servlet to load early at startup and we load the configuration in the servlet's init method to have the logging configured as early as possible. We use the servlet to reload the config after updates to the configuration as well. This is what we do to load it: private void initLogging(){ String configFileName; ServletContext ctx = getServletContext(); try{ DocumentBuilder builder = DocumentBuilderFactory.newInstance().newDocumentBuilder(); Document document = builder.parse(ctx.getResourceAsStream(CONFIG_RESOURCE_PATH),CONFIG_RESOURCE_PATH); DOMConfigurator.configure(document.getDocumentElement()); Category.getRoot().info(Log4J successfully initialized from + CONFIG_RESOURCE_PATH); } catch (Exception err){ log(error setting up logging config, err); BasicConfigurator.configure(); Category.getRoot().warn(Log4J initialized using basic configurator); } } It works well for us for logging from both servlet and EJBs Fredrik Lindgren, Goyada AB Todd M Benge wrote: Hi, I'm trying to use log4j to log from an enterprise bean. I've been able to get a bean to log to stdout using the BasicConfigurator but am not able to get it to log using either the DOMConfigurator or the PropertyConfigurator. I believe Property and DOM configurators need a file to set up the appenders. Has anybody been successful in using a configurator othere than the BasicConfigurator with a bean? If so, how? Thanks, Todd
Orion-based JSP bug -- The Case of the Exhibiting %00
Can anyone help us solve a perplexing JSP bug? We have been unsuccessful. If a "%00" is attached to the end of a URL (as in, http://localhost:8008/dcr/index.jsp%00) to a JSP page that is being served by Orion server, the user receives, not the rendered HTML page that he or she might be expecting, but a textual output of the raw JSP code for that page. We have found this to be true with the following configuration: Orion 1.4.1 Win2K JDK1.3 Thank you, Rex McFarlin [EMAIL PROTECTED]
Orion and Apache Soap javax.naming.NameNotFoundException
I've been scanning the e-mails and I see there are a couple of people who have installed Apache soap on Orion. I have it up and running but am having a bit of a problem with the Hello ejb example. I keep getting javax.naming.NameNotFoundException: samples/HelloService not found. Here is my dd.xml: ?xml version=1.0? isd:service xmlns:isd=http://xml.apache.org/xml-soap/deployment; id=urn:ejbhello isd:provider type=org.apache.soap.providers.OrionProvider scope=Application methods=hello isd:java class=samples/HelloService/ isd:option key=FullHomeInterfaceName value=samples.HelloServiceHome / isd:option key=ContextProviderURL value=ormi://localhost/soap / isd:option key=FullContextFactoryName value=com.evermind.server.rmi.RMIInitialContextFactory / /isd:provider isd:faultListenerorg.apache.soap.server.DOMFaultListener/isd:faultListene r /isd:service I wrote my own provider just changing the Context Provider and Full Context factory name. Any help or ideas is appreciated! joni wilson
Re: Can't I use Transactions with Access 2000 ? Access2000 seems to support XAs ...but..
Not sure, but I don't believe Access is designed for transactions in particular. Regardless, though, try SAP DB (www.sapdb.org) for Windows 2K - it is a solid, transaction supporting, commercial grade free database with a type 4 JDBC driver. My consultancy does ETL and enterprise data strategies - lots of people and companies, large and small, like to keep mission critical data in Access databases because it is easy to use. It causes more trouble than its worth in the long run. So my advice is: use one of the free databases for your development purposes (And production, too!). Get a copy of SQL Server if you want to use a MS product that supports transactions well. --- ±èÅÂȯ [EMAIL PROTECTED] wrote: [EMAIL PROTECTED] I am developing on ORION WIN2k tiny DB (Access2000) I tested Transactions in Access (con.setAutoCommit(false);con.commit();con.rollback();.) Everything went well.. But, Orion Setting makes Problem. in data-source.xml data-source class=com.evermind.sql.DriverManagerDataSource location=jdbc/AccessCoreDS connection-driver=sun.jdbc.odbc.JdbcOdbcDriver ejb-location=jdbc/AccessDS xa-location=jdbc/AccessXADS name=Access password=7098 url=jdbc:odbc:oriondb inactivity-timeout=30 username=neosuper pooled-location=jdbc/AccessPool/ This code works well, but if class attribute is changed to com.evermind.sql.DriverManagerXADataSource, Orion will not start with not founded Source Location Errors.. Can't I use Transactions with Access 2000 ? Please give me some advices.. and solutions [EMAIL PROTECTED] __ Do You Yahoo!? Yahoo! Auctions - buy the things you want at great prices http://auctions.yahoo.com/
Re: MVC/XML Framework Comments please
Hi Jeff, As I mentioned in a previous post, we are also using XSLT in our applications (we've implemented around 10 so far). We already tried different approaches, namely Oracle Application Server PLSQL Cartridge, JDBC servlets, JSP + JDBC Servlets, JSP + EJB, as things were evolving. The story then goes like that Instead of using JSPs directly, we developed, as many people have done, our own Model 2 - Servlet controller framework. The JSDK specification left a couple of holes (security, application events...) that we also tried to fix with our framework. After that, there are two things that were gibing us headaches when developing web apps: .- Implementing the data layer .- Creating/Modifying the interface without having a programmer handy. Implementing the data layer using EJB is, unless you have lots of bucks to invest in a good GUI tool, a PITA. You have dozens of tables and relationships, bla, bla and you end up replicating this desing with dozens of JavaBeans and lots of getters/setters that do pretty much nothing new. And then relationships are not easily handled (it seems that specification 1.0 was created to develop 1-table applications ;)) and complex queries have to be writen by hand. You end up transforming your data from SQL to Java and then formatting it with JSP. As we were positive we were going to use Oracle, we developed a utility that allows us to write the data layer directly in PLSQL. This way if you specify the XML interface correctly, you can have a programmer that knows nothing about Java or web applications implementing your data layer. In order to modify the interface, you have to choose between making it easy to designers, or making it flexible. Using JSPs you cannot 100%-isolate the HTML code and the Java code. Even using custom tags. And telling them you cannot touch that is not enough in some cases, if they want to change some weird layouts. You can almost get it if you develop a complete set of custom tags to allow you to get the data in different orders, conditional code... but then you end up having pretty much with XSLT already has. It is not that with JSP you cannot do it but we prefer to have the designer on his own. That is what he can do with an HTML prototype and the XML specification: he can work on his own with a test XML file and he won't break any code, because there's not a single line of logic written by a developer in there. This is not a perfect solution, as XML/XSLT tools are nowadays quite young but we hope that tools will improve on that regard. We find it better to train a designer to use XSLT, which is a standar, than a set of custom tags that are not really useful outside the JSP scope. But as I said, it is not a one size fits all solution, but it is quite flexible. If we wanted to use EJBs with another database, we would then probably use JSPs to format the XML (still done by the developer) and the designer won't even know that we have changed the backed, as long as the XML is the same. Of course, just a personal opinion ;). D. Jeff Schnitzer wrote: Doh! Sorry, that wasn't supposed to go to the list. But to keep this topic going (because I'm still undecided about what direction to go): Is anyone here besides Tim using XSLT in their web application? How do you like it? Is it easy to get designers up and running with it? How do you interface between Java and XML (jsp? building dom nodes in java? something else?) ? Thanks, Jeff -Original Message- From: Jeff Schnitzer Sent: Friday, April 27, 2001 3:38 PM To: Orion-Interest Subject: RE: MVC/XML Framework Comments please I'm definitely interested in your framework; may I have a copy? Thanks, Jeff -Original Message- From: Duffey, Kevin [mailto:[EMAIL PROTECTED]] Sent: Thursday, April 26, 2001 2:39 PM To: Orion-Interest Subject: RE: MVC/XML Framework Comments please I use my own framework for a couple of sites, and have gotten feedback from others using it as well. Its only 15K in size, full source, its free to use, modify, etc. If your interested in it, send me an email. It supports xsl transformations, and is very similar to Struts only that I found struts too much for my needs, and some features it didn't do that I needed, so I went that direction. -Original Message- From: Vic Cekvenich [mailto:[EMAIL PROTECTED]] Sent: Thursday, April 26, 2001 11:53 AM To: Orion-Interest Subject: MVC/XML Framework Comments please We are bout to pick a a framework, and I am looking for are comments or recommendation on a frameworks, other than Struts. (Don't want to be HTML/JSP centric) Any feedback on your experience with a framework, or do you know of web sites in production that are using a certain frame work, or do you know of friend or someone who has used one. I would like it to be XML centric, and MVC. For example, the V should apply the XSL to XML, to make it HTML. It
RE: Advanced OR mapping
I have been able to do amazing things with Orion's OR mapping. What specific problem are you having? As you have described: Product - ProductType Product - Supplier - Country Product - Packing Unit Attribute - AttributeType Media - MediaType Price - Currency Price - ClientType Price - SalesTax Are all unidirectional relationships and are supported directly by Orion. The finders such as findProductsBy(ProductType), findProductsBySupplier(Supplier) and findProductsBy(PackingUnit) are directly supported by orion using EJB-QL (supplier = ?1, for example). Product - Attribute(s) Product - Price(s) Product - Media(s) Product - AccessoryProduct(s) (Product and AccessoryProduct as two different ejbs) is a 1-n relationship, and is also directly supported by Orion (in ejb-jar.xml). I belive all of these are supported by Orion, and you can write finder methods for any of these using orion-ejb-jar.xml. Please note that some of the more complicated finder methods are NOT supported through ejb-jar.xml (because ORION does not implement full EJB-QL, however, you can always use orion-ejb-jar.xml to do such a find). Here is an example of a more complicated finder that I have manged to get working: finder-method query=SELECT i.* FROM model_entity_Interest i, symbiosis_model_entity_Node n WHERE i.nodeEntityId = n.id AND n.id = (SELECT nn.parentNodeId FROM model_entity_interest ii, symbiosis_model_entity_Node nn WHERE ii.nodeEntityId = nn.id AND ii.id = $1) partial=false !-- Generated SQL: SELECT i.* FROM model_entity_Interest i, symbiosis_model_entity_Node n WHERE i.nodeEntityId = n.id AND n.id = (SELECT nn.parentNodeId FROM model_entity_interest ii, symbiosis_model_entity_Node nn WHERE ii.nodeEntityId = nn.id AND ii.id = ?) -- method ejb-namecom.indnet.symbiosis.model.entity.Interest/ejb-name method-namefindParentByChild/method-name method-params method-paramcom.indnet.symbiosis.model.entity.interest.InterestEntity/met hod-param /method-params /method /finder-method This method will find a parent for a child in a tree (circular relationship through external nodes). -AP_ -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Joerg Weishaupt Sent: Sunday, April 29, 2001 10:42 AM To: Orion-Interest Subject: Advanced OR mapping Hi, I'm having some problems with the OR mapping, especially for entity bean reference mappings. Although I've gone thru the Advanced Object-Relational mapping topic on orionsuppurt.com, I'm unable to transfer this to our object model, i.e.: EJB Product has references to - ProductType - Supplier which references to - Country - PackingUnit and also has Collections of - Attributes which references to - AttributeType - Prices which references to - Currency - ClientType - SalesTax - Medias which references to - MediaType - AccessoryProducts which are of the same type as the Product itself. So it's quite complicated and maybe someone can give me some directions of what to do. For me it's very important to see, whether for this model Orion CMP works better (in regard to performance) than the existing BMP, as I've seen that it's faster for simple EJB's TIA Joerg
Is it possible to have Apache as Reverse Proxy (front-end) and LoadBalancer ?
Is it possible to have Apache as Reverse Proxy (front-end) and LoadBalancer at the same time.? I think that on the servers you define the front-end and they will collide. Anyone knows how to do it?
Re: Orion-based JSP bug -- The Case of the Exhibiting %00
This bug was reported and fixed a long time ago, you should upgrade! On Mon, 30 Apr 2001, Rex McFarlin wrote: Can anyone help us solve a perplexing JSP bug? We have been unsuccessful. If a %00 is attached to the end of a URL (as in, http://localhost:8008/dcr/index.jsp%00 http://localhost:8008/dcr/index.jsp%00 ) to a JSP page that is being served by Orion server, the user receives, not the rendered HTML page that he or she might be expecting, but a textual output of the raw JSP code for that page. We have found this to be true with the following configuration: Orion 1.4.1 Win2K JDK1.3 Thank you, Rex McFarlin [EMAIL PROTECTED] mailto:[EMAIL PROTECTED]
Orion and the JRocket VM
Has anyone had success with JRocket and Orion. JRocket is suppose to be one of the most fastest and most scalable VMs www.volano.com/report.html but I am unable to get the Orion running with it. Apparently WebLogic will run with JRocket. www.jrocket.com Regards, Peter C:\orionC:\Progra~1\JRockit\jrockit -jar orion.jar JRockit build 2.0.7-excelsior80, Thin Threads, Generational Stop Copy Garbage Collector, started. java.lang.IllegalAccessError: com.evermind._yw.getJavaxDocument(Lorg.xml.sax.Inp utSource;Lorg.xml.sax.ErrorHandler;Lorg.xml.sax.EntityResolver;Z)Lorg.w3c.do m.Do cument; at com.evermind.xml.XMLUtils.getDocument(Compiled Code)@413e3a00 at com.evermind.xml.XMLConfig._iw(Compiled Code)@413e36b0 at com.evermind.xml.XMLConfig._iw(Compiled Code)@413e2cf0 at com.evermind._kh.run(Compiled Code)@413e25a0 at java.lang.Thread.run(Compiled Code)@40fb5030 at com.evermind._jw.run(Compiled Code)@413e23f0 at java.lang.Thread.startThreadFromVM(Compiled Code)@40fb4ed0 --- End of stack trace
Re: Is it possible to have Apache as Reverse Proxy (front-end) and LoadBalancer ?
Sure, it's possible. Dumb, but possible. See www.orionsupport.com for more on it. Note that we saw degradation on a massive scale - something that took 12 seconds without apache proxying took 1 minute 45 seconds with apache, in the worst case. :) On Mon, Apr 30, 2001 at 08:04:17PM +0200, Ismael wrote: Is it possible to have Apache as Reverse Proxy (front-end) and LoadBalancer at the same time.? I think that on the servers you define the front-end and they will collide. Anyone knows how to do it? -- --- Joseph B. Ottinger [EMAIL PROTECTED] http://epesh.com/ IT Consultant
RE: Orion-based JSP bug -- The Case of the Exhibiting %00
Doesn't happen for me on Orion 1.4.8, Jdk1.3, Redhat Linux 7.1 -Original Message-From: Rex McFarlin [mailto:[EMAIL PROTECTED]]Sent: Monday, April 30, 2001 8:28 AMTo: Orion-InterestSubject: Orion-based JSP bug -- The Case of the Exhibiting %00 Can anyone help us solve a perplexing JSP bug? We have been unsuccessful. If a "%00" is attached to the end of a URL (as in, http://localhost:8008/dcr/index.jsp%00) to a JSP page that is being served by Orion server, the user receives, not the rendered HTML page that he or she might be expecting, but a textual output of the raw JSP code for that page. We have found this to be true with the following configuration: Orion 1.4.1 Win2K JDK1.3 Thank you, Rex McFarlin [EMAIL PROTECTED]
Re: Orion-based JSP bug -- The Case of the Exhibiting %00
Rex, I just tried to duplicate your situation, both with zeroes (yielded a 400 Bad Request) and capital o's (yielded a 404 Not Found). I'm running Orion 1.4.5 on Red Hat 6.2 with Sun's JDK 1.3. Jeff Hubbach. Rex McFarlin wrote: Can anyone help us solve a perplexing JSP bug? We have been unsuccessful.If a %00 is attached to the end of a URL (as in, http://localhost:8008/dcr/index.jsp%00 ) to a JSP page that is being served by Orion server, the user receives, not the rendered HTML page that he or she might be expecting, but a textual output of the raw JSP code for that page. We have found this to be true with the following configuration:Orion 1.4.1Win2KJDK1.3Thank you,Rex [EMAIL PROTECTED] -- Jeff Hubbach Internet Developer New Media Designs, Inc. www.nmd.com
META HTTP-EQUIV=\refresh\ in JSP with Orion 1.4.5
We have some JSPs with META tags which work fine with Tomcat and iPlanet. But this does not seem to be working with Orion. Am I missing anything. This does not seem to call Launch.JSP when we deploy the WAR with Orion. out.println(META HTTP-EQUIV=\refresh\ CONTENT=\1; URL=Launch.jsp\ ); Any help will be appreciated ? regards Debu Get free email and a permanent address at http://www.netaddress.com/?N=1
RE: Orion-based JSP bug -- The Case of the Exhibiting %00
Orion1.4.7 jdk1.3 winNT 400 Bad Request Kesav Kumar Software Engineer Voquette, Inc. 650 356 3740 mailto:[EMAIL PROTECTED] http://www.voquette.com Voquette...Delivering Sound Information -Original Message-From: Rex McFarlin [mailto:[EMAIL PROTECTED]]Sent: Monday, April 30, 2001 8:28 AMTo: Orion-InterestSubject: Orion-based JSP bug -- The Case of the Exhibiting %00 Can anyone help us solve a perplexing JSP bug? We have been unsuccessful. If a "%00" is attached to the end of a URL (as in, http://localhost:8008/dcr/index.jsp%00) to a JSP page that is being served by Orion server, the user receives, not the rendered HTML page that he or she might be expecting, but a textual output of the raw JSP code for that page. We have found this to be true with the following configuration: Orion 1.4.1 Win2K JDK1.3 Thank you, Rex McFarlin [EMAIL PROTECTED]