Serialization from Orion back to Client via Session EJB
I have a number of code tables in the database, that will only ever be read only. Rather than creating the infrastructure of an Entity EJB for these tables I would like to simply call a session bean to return read only versions of these codes. A typical class has the form public class CodeClass implements Serializable { private long code; private Stringname; public longgetCode() { return code;} public String getName() { return name;} } I've created a Session EJB that accesses the database using JDBC to return the entries to the bean. This bean uses these entries to construct instances of CodeClass and inserts them into a Vector. This vector is then returned as the result of the method call on the Session EJB. The client receives an error from the server indicating that the CodeClass indicating the class could not be (de-)serialized. The Client is 1.4.0, orion is 1.3.1 (Oracle extended version), I've tested to ensure that this simple CodeClass can be read/written between 1.3.1 and 1.4.0 and there appears to be no problem there. I'm a little stumped at this point, as the code seems to be very simple, compiles and doesn't run. Is it the fact that I'm returning a Vector? Or am I missing a step, or
Re: Deploy war file
Although it describes adding a war and not an ear, this documentation may be of help: http://kb.atlassian.com/content/orionsupport/articles/addwebapp.html Just change application=default to application=Metricas in you default-web-site.xml file. Cheers, Scott Montiel, Erika wrote: Hi, I tried to deploy a .war file in the application server. I asummed that when I deploy the .ear file the war is intalled, but when I tried to run a servlet I can doit Could somebody help me with this? Thanks a lot I modified the server.xml and looks like this ?xml version=1.0? !DOCTYPE application-server PUBLIC -//Evermind//DTD Orion Application-server//EN http://xmlns.oracle.com/ias/dtds/application-server.dtd; application-server application-directory=../applications deployment-directory=../application-deployments library path=../tools.jar / rmi-config path=./rmi.xml / jms-config path=./jms.xml / log file path=../log/server.log / /log transaction-config timeout=3 / global-application name=default path=application.xml / application name=Metricas path=C:\j2ee\home\applications\Metricas.ear auto-start=true / global-web-app-config path=global-web-application.xml / web-site path=./default-web-site.xml / cluster id=-374524965 / /application-server -- Scott Farquhar :: [EMAIL PROTECTED] Atlassian :: http://www.atlassian.com Supporting YOUR J2EE World
Re: Fw: Cursos de E-Business (6 de Mayo)
_nice_idea_ to post an ~650mb jpeg (content with unknown language) to a mailing-list 8-|#. very nice idea )/(()/()_:_:;_;:*Ä'+'* Am Freitag, 12. April 2002 15:58 schrieb Ing. Moisés H. Suarez: - Original Message - From: jacsin To: [EMAIL PROTECTED] Sent: Monday, April 08, 2002 2:56 PM Subject: Cursos de E-Business (6 de Mayo) -- Klaus Thiele - Personal Informatik AG mailto:[EMAIL PROTECTED] Your mouse has moved. Windows must be restarted for the change to take effect.
Re: Serialization from Orion back to Client via Session EJB
I've had some problems with client 1.4 and server 1.3.1. Can't remember wich errors, but I think you have to use the same jdk on client and server. - Original Message - From: Jeff Lowcock [EMAIL PROTECTED] To: Orion-Interest [EMAIL PROTECTED] Sent: Sunday, April 14, 2002 12:06 PM Subject: Serialization from Orion back to Client via Session EJB I have a number of code tables in the database, that will only ever be read only. Rather than creating the infrastructure of an Entity EJB for these tables I would like to simply call a session bean to return read only versions of these codes. A typical class has the form public class CodeClass implements Serializable { private long code; private String name; public long getCode() { return code;} public String getName() { return name;} } I've created a Session EJB that accesses the database using JDBC to return the entries to the bean. This bean uses these entries to construct instances of CodeClass and inserts them into a Vector. This vector is then returned as the result of the method call on the Session EJB. The client receives an error from the server indicating that the CodeClass indicating the class could not be (de-)serialized. The Client is 1.4.0, orion is 1.3.1 (Oracle extended version), I've tested to ensure that this simple CodeClass can be read/written between 1.3.1 and 1.4.0 and there appears to be no problem there. I'm a little stumped at this point, as the code seems to be very simple, compiles and doesn't run. Is it the fact that I'm returning a Vector? Or am I missing a step, or
Simple WAR file and JSP access?
Created the following directory/file structure | -| || WEB-INF test.jsp | -| || classes web.xml | Servlets | TestServlet.class Created a WAR file and dropped the WAR file in orion_home\applications. Shutdown then started orion. The WAR WAR file was unpacked and created the unpacked directory structure as per the above. The entry: web-module id=WARTest path=../../home/applications/wartest.war / was made in application.xml I can execute the servlet - no problems there. BUT the problem - how to get to the JSP. When it is executed I get a message saying ...\j2ee\home\default-web-app\wartest\test.jsp (The system cannot find the path specified) I am wanting to create a simple WAR file to deploy that may contain only servlets and JSPs and would like to not have to create an EAR file. How do I Access the JSP file? THANKS for any help - Ken Cooper -- Kenneth Cooper, Jr.[EMAIL PROTECTED] -- _ MSN Photos is the easiest way to share and print your photos: http://photos.msn.com/support/worldwide.aspx
ORMI with RMIInitialContextFactory fails when server shutdowns
Title: ORMI with RMIInitialContextFactory fails when server shutdowns Hi, I am trying to lookup a ejb running on a remote app server, and I am using the following settings which are posted at the end of the page, PROBLEM : when the remote server is running everything works fine, but when the remote server is down, the application/client fetches the local instance, though I am using the ormi and specifying to connect to the remote server, I face this problem when I work with a same EJB which is deployed in the two different servers and with the same application name. one more thing is I do not want to use the remote=true as the same ejb is needed in the local machine for another applications and pages so I want to know how to stop the server to pick the local instance when the remote server is not running. Properties p = new Properties(); p.put(Context.INITIAL_CONTEXT_FACTORY, com.evermind.server.rmi.RMIInitialContextFactory); p.put(Context.PROVIDER_URL, ormi://208.28.177.97:23791/hello-planet); p.put(Context.SECURITY_PRINCIPAL, admin); p.put(Context.SECURITY_CREDENTIALS, 123); Context ctx = new InitialContext(p); Object obj = ctx.lookup(hello.ejb.Hello); Regards Shravan
RE: Simple WAR file and JSP access?
Just a stupid question, but I wonder if you have binded the war with a web site??? Juan Pablo Lorandi Chief Software Architect Code Foundry Ltd. [EMAIL PROTECTED] Barberstown, Straffan, Co. Kildare, Ireland. Tel: +353-1-6012050 Fax: +353-1-6012051 Mobile: +353-86-2157900 www.codefoundry.com -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] On Behalf Of Ken Cooper Sent: Sunday, April 14, 2002 4:19 PM To: Orion-Interest Cc: [EMAIL PROTECTED] Subject: Simple WAR file and JSP access? Created the following directory/file structure | -| || WEB-INF test.jsp | -| || classes web.xml | Servlets | TestServlet.class Created a WAR file and dropped the WAR file in orion_home\applications. Shutdown then started orion. The WAR WAR file was unpacked and created the unpacked directory structure as per the above. The entry: web-module id=WARTest path=../../home/applications/wartest.war / was made in application.xml I can execute the servlet - no problems there. BUT the problem - how to get to the JSP. When it is executed I get a message saying ...\j2ee\home\default-web-app\wartest\test.jsp (The system cannot find the path specified) I am wanting to create a simple WAR file to deploy that may contain only servlets and JSPs and would like to not have to create an EAR file. How do I Access the JSP file? THANKS for any help - Ken Cooper -- Kenneth Cooper, Jr.[EMAIL PROTECTED] -- _ MSN Photos is the easiest way to share and print your photos: http://photos.msn.com/support/worldwide.aspx