Re: admin.jar -bindWebApp
Sorry to hit you with this message again, but it is important that I figure this out. So please tell me what you do or do not know! thanks, Damian. I am trying to use admin.jar to bind a web app, I do something like this: java -jar admin.jar ormi://localhost admin pass -bindWebApp appName web default-web-site /Web And I get the following message: Error: java.lang.NullPointerException Any Ideas ? TIA, Damian P.S. Sorry if there are two copies of this message, my earlier one didn't seem to get through.
Re: Re EJB vs Servlets
"van Geel, Leo" wrote: -Original Message- From: Rafael Alvarez [mailto:[EMAIL PROTECTED]] Sent: Tuesday, October 10, 2000 9:11 AM To: Orion-Interest Subject: Re[2]: EJB vs Servlets I'm currently developing a big project using EJBs,a backend for a one-hour delivery company. In fact, I'm using CMP EJB for the data and a fakade object for processing.There were few factors that influenced the choice: .- You don't have to code in SQL. That says a lot on easy manteinance. .- Don't need to understand, as a programmer, the how of inner working of your RDMBS. This is one of the big dangers I see happening around me. Don't fall in this trap. You need to understand what is happening behind the scenes. Poor performance is the result. A programmer needs to understand how the the code is accessing the database. That is a different story than understanding the DBMS internals! It is one of the bad things about CMP EJB's. I do not believe that generated SQL code can be optimal for all the different relational database backends. Impossible! DBA's raise your voice! Leo van Geel Massey University New Zealand I agree that you need to understand what is happening behind the scenes, but that doesn't mean that you need to re-invent the wheel! CMP EJB's allow developers to concentrate on the business logic rather than having to worry about database access code, this is a good thing. Besides, I have run BMP vs CMP tests on several App server + DB combinations, CMP wins hands down every time. Damian
Re: Does Orion have an FTP service?
You are going to be downloading the files from the machine with Orion on it right ? If so, why don't you use a servlet ? You can then just right a simple program on your remote orders system that connects to a servlet that returns the orders. Damian Hi, Does orion have an FTP service? If not does anyone know of a good Java FTP server that might be used with orion? We are looking at downloading files created by our J2EE App running on Orion [basically online orders] to a remote sales order system for subsequent processing. AutoFTP from Primasoft (http://www.primasoft.com/ftp.htm) looks good for automating the download, but Orion doesn't have an FTP service [or does it?] How do other Orion sites handle FTP ? TIA Neville Burnell Business Manager Software
Re: EJB CLIENT
I am having a similar problem. My jndi.properties file seems correct, but when I try: java -classpath blah.. mfg.client.test a javax.naming.NameNotFoundExcpetion is thrown. Any ideas ? TIA, Damian wim veninga wrote: Hi David, I suppose you have given your application (on the server side) a name in application.xml. For instance : application display-nameYour_Name/display-name module ... etc /application So then in your jndi.properties file it has to say java.naming.factory.initial=com.evermind.server.ApplicationClientInitialCont extFactory java.naming.provider.url=ormi://localhost/Your_Name {--- The name of your application} java.naming.security.principal=admin Hope this helps, Wim Veninga [EMAIL PROTECTED] -Original Message- From: David Sierra Fernandez [EMAIL PROTECTED] To: Orion-Interest [EMAIL PROTECTED] Date: Friday, July 28, 2000 9:22 PM Subject: EJB CLIENT Hi all, I'm very worried 'cause i'm not able to make a EJB client to work. I've deployed my app without problems but I can't execute the client. I've created the client-application.xml: ?xml version="1.0"? !DOCTYPE application-client PUBLIC "-//Sun Microsystems, Inc.//DTD J2EE Application Client 1.2//EN" "http://java.sun.com/j2ee/dtds/application-client_1_2.dtd" application-client display-nameCliente AGENDA ORION/display-name ejb-ref ejb-ref-nameMyAgendaS/ejb-ref-name ejb-ref-typeSession/ejb-ref-type homeAgendaSHome/home remoteAgendaS/remote /ejb-ref /application-client Then I tried to include a jndi.properties file in my app as i read in FAQ: java.naming.factory.initial=com.evermind.server. ApplicationClientInitialContextFactory java.naming.provider.url=ormi://localhost java.naming.security.principal=admin but it still does not work. When I tried to execute the client this the error I get: C:\orion\APPLIC~1\Agenda\Agenda-ejbjava -classpath .;C:\orion\orion.jar;C:\orio n\ejb.jar;C:\orion\jndi.jar; AgendaSClient Lanzada una excepcion. javax.naming.NamingException: Error reading application-client descriptor: No lo cation specified and no suitable instance of the type 'AgendaS' found for the ej b-ref MyAgendaS at com.evermind.server.ApplicationClientInitialContextFactory.getInitial Context(JAX, Compiled Code) at javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:6 72) at javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:250 ) at javax.naming.InitialContext.init(InitialContext.java:226) at javax.naming.InitialContext.init(InitialContext.java:182) at AgendaSClient.main(AgendaSClient.java:16) I WILL APPRECIATE ALL OF YOUR HELP OR CLUES ! - David Sierra Fern ndez Ingeniero Tecnico de Telecomunicaci¢n AULA RETECAL (CEDETEL) Universidad de Valladolid Campus Miguel Delibes E-Mail: [EMAIL PROTECTED] 47011 Valladolid (SPAIN) -- -- Sierr@ --
Re: Wrapping orion around an existing database
The 'correct' way would be to create an entity bean for each table that is accessed from your database. If you use container managed persistence you could do something like so: public class News { /** define all container managed fields (database fields) **/ public String title; .. .. public Integer id; /** Get methods **/ public String getTitle() { return title;} .. .. public Integer getID() { return id;} } /** Use this one for compile time checking that EntityBean methods match Remote interface**/ public interface NewsInterface { /** Put all remote interface methods in here eg: **/ public String getTitle() throws RemoteException; .. } /** can leave this one blank (Remote Interface) **/ public interface NewsEnt extends NewsInterface, EJBObject { } /** Create and Finder methods **/ public interface NewsEntHome extends EJBHome { ... } public class NewsEntEJB extends News implements EntityBean, NewsInterface { /** put EJB methods in here. i.e. ejbCreate() etc **/ } Hope this helps, Damian. I'm looking into using orion to talk with a mySQL database that already exists (actually will exist). Is there a 'correct' way to map EJB's to existing tables (or any tools)? Or do I just create EJB's with the same name(s) and have persistent members that match the names of the existing table fields? Example table below: CREATE TABLE news ( title TEXT NOT NULL, linktext TEXT, sm_date VARCHAR(12) NOT NULL, sm_time TIME NOT NULL, ctprovider VARCHAR(255), copyright VARCHAR(255), author VARCHAR(255), body TEXT NOT NULL, photo_count VARCHAR(12), doc_id VARCHAR(255), rev_id INT, abstract TEXT, filter VARCHAR(255) NOT NULL, id INT UNSIGNED NOT NULL AUTO_INCREMENT PRIMARY KEY ) Thanks Jason Amy [EMAIL PROTECTED]