Response has been already committed...

2001-11-16 Thread Sergei Batiuk
Hello all, I have a JSP, that processes a form and is attempting to create a record in my database viaCMP EJB (Person). After my form has been processed and the PersonHome.create() methods has succeeded (record has been created), the page tries to redirect to another JSP. But this doesn't

RE: MORE THAN ONE USER PROBLEM

2001-09-30 Thread Sergei Batiuk
1. The web interface and EJBs security works but when I try to use a restricted a EJB method I only get a remoteException (I know... its normal). Is there some way to control if this exception is caused by a Security Constraint ? (To show for example... "Youre not allowed to do that").

JNDI naming federation

2001-09-27 Thread Sergei Batiuk
Does ORION support JNDI naming federation? For example, I have several ORIONs in my distrubuted environment. Each has its own unique services. I would like them to share the same JNDI naming space so that I had uniform access to services in my distrubuted environment. Does anyone have any

Re: Orion's JSP generated code

2001-07-24 Thread Sergei Batiuk
this is because PHP is pretty much pure web, where JSP is intended to be portable into other formats that may think whitespace is important. -Original Message-From: Sergei Batiuk [mailto:[EMAIL PROTECTED]]Sent: Friday, July 20, 2001 3:25 AMTo: Orion-InterestSubject: Orion's JSP

Orion's JSP generated code

2001-07-20 Thread Sergei Batiuk
Hi forum, I have noticed that when I use scriplets or tags in my JSPs, orion puts "\r\n" into the outputstream code for each tag. This results in many blank lines in the generated HTML code. In comparison,PHPscripletsdo not produce these blank lines. Does anyone know how to "beautify" the

Re: Shutting down orion server!

2001-07-20 Thread Sergei Batiuk
You must use admin.jar for this purpose. You can make the following .bat file: java -jar admin.jar ormi://host:port username password -shutdown. HTH, Sergei. - Original Message - From: Rajiv R To: Orion-Interest Sent: Friday, July 20, 2001 4:19 PM Subject:

CMP vs BMP and finder methods

2001-06-29 Thread Sergei Batiuk
Hi forum, I would like to know what strategies people use in real life to design their entity beans, when use CMPs and when BMPs. Each approarch has its own benefits and drawbacks. This is what I found out during my experience with EJB: 1.CMPs Benefits: -easy to develop; -better

Re: Orion beginer's question

2001-06-27 Thread Sergei Batiuk
Hi Ivan, I connect to cloudscape using rmi-jdbc bridge. To get started you need to do the following: 1. Setup datasources.xml 2. Put RmiJdbc.jar to the %ORION-DIR%/lib folder 3. Use cloudscape connection by obtaining the javax.sql.DataSource from JNDI. 1. Put into the datasources.xml the

Problem connecting to Ms Sql Server 2000

2001-06-22 Thread Sergei Batiuk
Hey people, I am having trouble connecting to MS SQL 2000 from my entity bean. I have an ODBC data source set up for the database, and connect to it using sun.jdbc.odbc.JdbcOdbc driver. I get the following: java.rmi.RemoteException: java.sql.SQLException: [Microsoft][ODBC SQL Server

BMP perfomance question

2001-06-15 Thread Sergei Batiuk
Hi people, Does anyone use Orion's BMPs? I have just created a BMP and tried findAll() - incredibly slow! Any thoughts very much appreciated. Sergei.

Re: Orion can't find Cloudscape database

2001-06-15 Thread Sergei Batiuk
Iuse Rmi-Jdbc framework to connect to cloudscape. I have RmiJdbc.jar, cloudscape.jar and client.jar in orion/lib directory. my datasource.xml looks like:

Re: Counting CMP entities

2001-06-14 Thread Sergei Batiuk
Dear elephatwalker, It looks like a big perfomance hit for both database and container to count entities in such a way. Another decision is to talk directly to db, which is also notgood. Browsing EJB 2.0 documentation, I found out that there is an ejbSelect() method that allows to perform

Re: Dynamic finders

2001-06-13 Thread Sergei Batiuk
Title: SV: Dynamic finders Dear Magnus, The question is: does ORION provide some kind of mechanism (like a callback function), that could be implemented by a programmer and return a query string upon request, instead of making them 'final'? One way to do that is to make a BMP, but i want

Counting CMP entities

2001-06-13 Thread Sergei Batiuk
Is it possible to count the number of records in a table with a CMP? WBR, Sergei

Generating primary keys

2001-05-14 Thread Sergei Batiuk
Hi mailing list, I have the following problem: the primary key for my EJB is generated at the database level ( a trigger ), so I don't want togenerate it in the ejbCreate() method. However, EJB specification says, that the use of the primary key isa MUST. Does anyone have the solution for

CORBA and ORION

2001-04-20 Thread Sergei Batiuk
One of the goals of EJBs, according to Sun's EJB specification, is to be compatible with CORBA protocols. How is this compatibility implemented with ORION? Can ORION act as a CORBA server, so that I could connect to it from my CORBA client, or I have to implement my own middleware JAVA

Error deserializing session

2001-04-08 Thread Sergei Batiuk
Hello all, What does the following error mean? It looks more like a warning, since I did not encounter any abnormal behavior with orion. Is it serious? What might have caused it? Error deserializing session: java.io.WriteAbortedException: Writing aborted by e xception;

Installing a custom UserManager

2001-03-29 Thread Sergei Batiuk
Hi, I have developed my own implementation of the UserManager, which is actually a wrapper around an appserver-independent user manager. I believe, it's written correctly (i.e it implements com.evermind.security.UserManager). But when I try to deploy it, the constructor and the init()

Re: Using EJBs with Delphi

2001-03-26 Thread Sergei Batiuk
ot; [EMAIL PROTECTED] Sent: Sunday, March 25, 2001 8:40 PM Subject: RE: Using EJBs with Delphi Your going to have to use CORBA from what I understand. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Sergei Batiuk Sent: Saturday, March 24, 200

Using EJBs with Delphi

2001-03-24 Thread Sergei Batiuk
Hi EJB gurus, Does anynone know how to connect to an EJB from a dephi client app? Thanks in advance, Sergei Batiuk.

Using the mailing list

2001-03-13 Thread Sergei Batiuk
administrator. regards, /netch/ The original message follows: ... Am I missing anything? WBR, Sergei Batiuk.

Customizing CMP deployment

2001-03-12 Thread Sergei Batiuk
Is there any way to customize deployment of CMP bean - to indicate the table name in the database to which the entity bean should map its persistence (in case the name of the table is different from the bean name) or the data source to connect to. As far as I know orion-ejb-jar.xml is responsible

UserManager

2001-03-11 Thread Sergei Batiuk
Could anyone please explain how to create a custom user manager for Orion? What is the way to associate the users and groups in the database with the roles and principal of the orion?