Orion with php

2001-09-11 Thread Henrik Skafsgaard Larsen
This is not about enabling php in Orion. I've got that working! But I had to make a small project using php against mySql, since I use Orion as development that wasn't any problem. However - I cannot connect to the database. I keep getting either TCP/IP 10091 or 10101: Cannot create socket. So I

OC4J datasource / server crash problem

2001-09-11 Thread Ian S. Hagen
Hi, I am currently part of a project developing a servlet/stateless EJB solution to be run on the Orion platform. We are experiencing some problems using our datasource connection to our Oracle 9i database. The server will on occasion leak connections, which eventually results in both the

RE: OC4J datasource / server crash problem

2001-09-11 Thread The elephantwalker
You need a finally at the end of the try block's to make sure your connections close. What could be happening is your connections are not being closed from time to time. Most Oracle ora.ini files are set up for only 30 or so open connections (this is usually ok), but should never be more than 300

Calling EJB From a Servlet..

2001-09-11 Thread Prashant Gaikwad
HI Friends, I'm having a serious problem in my code and am unable to understand. I've deployed a simple Hello bean on the orion container and want to access it from a servlet. I have the servlet in D:\Oracle\iSuites\j2ee\home\default-web-app\WEB-INF\classes\trg\HelloServlet .

RE: OC4J datasource / server crash problem

2001-09-11 Thread Owen Fellows
When you get the connection you will need to put it in a try and catch. At the end use a finally to return the connection. e.g. try { Connection c = YourClass.getConnection(); } catch (SQLException ex) { //Do something with the exception } finally {

RE: Calling EJB From a Servlet..

2001-09-11 Thread The elephantwalker
First, if the servlet and ejb are in the same application, you don't need to use properties to initialize your contextbut if you did, it looks like you left off the domain in the properties. Regards, the elephantwalker -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL

Transaction Rollback questions again !!

2001-09-11 Thread Yashasree
Hi All I am implementing the Session Facade design pattern in an application along with the DAOs. The deviation being no use of Entity beans. What I have apparently is as follows: 1. A Session Facade bean which has 'open new account method' for which i have defined RequiresNew transaction

UNSUSCRIBE

2001-09-11 Thread Mark Brennan
- Original Message - From: Vinay Khandelwal [EMAIL PROTECTED] To: Orion-Interest [EMAIL PROTECTED] Sent: Saturday, September 08, 2001 5:46 AM Subject: UNSUSCRIBE __ Do You Yahoo!? Get email alerts NEW webcam video instant messaging

SV: OC4J datasource / server crash problem

2001-09-11 Thread Ian S. Hagen
All of out JDBC is done in a try-catch-finally block where the prepared statement and connection are closed in the finally block. Transactions are managed using CMT, and CMP is not used as stateless session EJBs make more sense in the design. Autocommit is off, allowing the container to handle

Re: Message Driven Bean destination-location

2001-09-11 Thread Tim Pouyer
Darryl, First off (and I know you have probably already checked this but just in case) have you uncommented the jms.xml attribute in your server.xml file? Next if you are using Queues and QueueConnectionFactories inside orion's jms implementation you do not need to use resource-ref tag

RE: Calling EJB From a Servlet..

2001-09-11 Thread David Libke
Prashant, You cannot initialize the context within the servlet. Use web.xml with the following entries with your values: context-param !-- The context-param element contains the declaration of a web application's servlet context initialization parameters. There are two special kinds of

dAHHH ... BLOODY CLOB!

2001-09-11 Thread Nusairat, Joseph F.
Title: dAHHH ... BLOODY CLOB! OK i have taken all your advice ... and i changed it to a clob ... set up a binary stream ... wohoo ... good to go right? well WRONG! i keep getting marshalling exceptions Exception: ProjectAdd.saveInfo(): Transaction was rolled back:

Dependant Entity uses DAO: shared Connection with all DAO's?

2001-09-11 Thread Curt Smith
Just re-validating a design requirement for BMP that I think I read somewhere: Dependant objects behind an Entity that uses DAOs for each parent and child objects. - for container managed transactions to work, must all DAOs use the same Connection? I.E. myBeanMethod (,,,) {

Re: Calling EJB From a Servlet..

2001-09-11 Thread Kesav Kumar
If you are trying to get the ejb which deployed in another application You lookup should be directly the JNDI name of the ejb. context.lookup(ejb/HelloHome); instead of java:comp/env/xxx. If your EJB in the same application then only you can lookup from the env. - Original Message -