Error in ORList (Re: byte array OR mapping...)

2000-11-28 Thread Laurent Cornelis

Yes I know that a byte is a primitive, but byte array (byte[]) is an object.
In my Entity Bean, this array represent a graphic (a jpg), one of my entity
bean can have more than one graphic (I represent it now with a List of
Graph).



I changed my EJB to :

public class ResultBean implements EntityBean {

  [...]

  public String id;
  [...]
  public List graphs;
  [...]
}



Here is my Graph Object :

public class Graph implements Serializable {
  public byte[] datas;
}



And in my orion-ejb-jar.xml :

cmp-field-mapping name="graphs"
list-mapping table="graphics"
 value-mapping type="ubiquity.rapids.ejb.result.Graph"
  cmp-field-mapping
   fields /
  /cmp-field-mapping
 /value-mapping
   /list-mapping
/cmp-field-mapping

--

Now, when I deploy :

snip

Auto-creating table: create table results (id CHAR(255) not null primary
key, matlabCommand CHAR(255) null, numericResult BINARY null, graphCommand
CHAR(255) null, generatedOn timestamp null, producedBy CHAR(255) null)

Orion Launcher create table results (id CHAR(255) not null primary key,
matlabCommand CHAR(255) null, numericResult BINARY null, graphCommand
CHAR(255) null, generatedOn timestamp null, producedBy CHAR(255) null)

Auto-creating table: create table graphics (id CHAR(255) not null, datas
BINARY null)

Orion Launcher create table graphics (id CHAR(255) not null, datas BINARY
null)

Found 7 syntax errors in "C:/orion/Graph_ORList20.java":

33. [B __fieldTemp21;


*** Syntax: Unexpected symbol ignored


92.
if((([B)null) == null) insertAllStatement.setNull(1,
java.sql.Types.LONGVARBINARY);
 

*** Syntax: Unexpected symbol ignored


93. else
insertAllStatement.setBinaryStream(1, new
java.io.ByteArrayInputStream((([B)null)), (([B)null).length);
 

*** Syntax: Unexpected symbol ignored


93. else
insertAllStatement.setBinaryStream(1, new
java.io.ByteArrayInputStream((([B)null)), (([B)null).length);




*** Syntax: Unexpected symbol ignored


   117.
if((([B)null) == null) insertAllStatement.setNull(1,
java.sql.Types.LONGVARBINARY);
 

*** Syntax: Unexpected symbol ignored


   118. else
insertAllStatement.setBinaryStream(1, new
java.io.ByteArrayInputStream((([B)null)), (([B)null).length);

  

*** Syntax: Unexpected symbol ignored


   118. else
insertAllStatement.setBinaryStream(1, new
java.io.ByteArrayInputStream((([B)null)), (([B)null).length);




*** Syntax: Unexpected symbol ignored
Error compiling file:/C:/orion/applications/rapids/rapids-ejb-result.jar:
Error in source

/snip


-


All these errors in Graph_ORList20.java are just because Orion generate [B
insteed of byte[], so the compiler don't understand it... My question is :
Can I write my own Graph_ORList and tell Orion where it is or how can I
correct this error ? (Is this an Orion bug ??)


Thanks

Laurent


- Original Message -
From: "Tim Drury" [EMAIL PROTECTED]
To: "Orion-Interest" [EMAIL PROTECTED]
Sent: Monday, November 27, 2000 4:47 PM
Subject: RE: byte array OR mapping...


 
  The '[B' is the String returned when I do byte[].getClass().toString()

 I don't think you want to do that.  Firstly, a byte is not a class.
 byte is a primitive like int, float, char, etc. which are not classes
 in Java (maybe you are a Smalltalk programmer?).

 Second, getClass().toString() isn't correct; you should have used
 getClass().getName() to get the name of a class.  A Class is an
 object, and toString() usually returns a serialized version of
 that object (usually, not always).

 You should probably take your byte[] and place it in a class that
 implements java.io.Serializable.  Most of the database mappings
 support placing that into a blob:

 type-mapping="java.io.Serializable" name="blob"

 -tim






ejb-ref and resource-ref question

2000-11-28 Thread Hegyi Tibor
Title: RE: -- Arved -- Can you please help me with servlet authentication?




  Hi 
  guys,
  Being 
  relatively new to J2EE I have a question concerning ejb-ref and resource-ref 
  tags used in the configuration XMLs (ejb-jar.xml)
  Is it 
  quite normal and J2EE standard that every EJB/Servlet/etc that wants to call 
  the same EJB needs to have its own (and SAME) ejb-ref tag in 
  ejb-jar.xml/web.xml/etc? ejb-ref defines the location in JNDI that is 
  used when theclients 'lookup' the EJB Home. 
  Could 
  a commonly used EJB/resource component be published in JNDI globally? Or do I 
  have to repeat theSAME ejb-refs couple of times in the 
  XMLs?
  If 
  this is truethen it makes deployment and configuration quite 
  complex, redundant and subject to hard 
  maintenance.
  Please 
  let me know if we have alternatives to the above case.
  Thanks, 
  Tibor
  
  


Re: pop3.jar again

2000-11-28 Thread Florin Manolache

Actually the last part of the String it is not "file_path" (in the specs) it
is "folder_name" like "INBOX" or something (in fact the Sun implementation
for pop3 doesn't  support another folder except INBOX). But my advice is to
_not_ use it instead obtain the folder using something like:

   session = Session.getInstance(props, null);
// store = session.getStore(new
URLName("pop3://username:[EMAIL PROTECTED]")); //this is the right
way !
   store = new POP3Store(session, new URLName(Constants.MAIL_URL));
   store.connect();
   folder = store.getFolder("INBOX");
   if (folder == null || !folder.exists())
log.pError("Invalid folder");
   else
folder.open(Folder.READ_WRITE);

Again all you have to do in order to make the above code work is to put
pop3.jar in orion/lib directory.


FlorinM


- Original Message -
From: "Tim Endres" [EMAIL PROTECTED]
To: "Orion-Interest" [EMAIL PROTECTED]
Sent: Monday, November 27, 2000 7:33 PM
Subject: Re: pop3.jar again


  Sorry I mis-read your email.  I now have added activation.jar, mail.jar,
and pop3.jar to the orion.jar manifest file.  These files again reside in
orion_root/.  I still get the same error.  As far as the code goes
"pop3://cucu:[EMAIL PROTECTED]", this is a dumb question but what is the
break up of this String.  ie: is cucu a server name or password followed by
:email to check?


 I believe that URL is broken down as follows:

provider://username:password@provider_host/file_path

 although file_path is rarely utilized.

 tim.







Re: Error in ORList (Re: byte array OR mapping...)

2000-11-28 Thread Vidur Dhanda

I had posted something similar as a bug (sorry, can't recall the number; if you
want I can try and look) and received a message several days ago that it had
been fixed in 1.4.5.  Perhaps, when that version comes out your error will also
go away.

Vidur

Laurent Cornelis wrote:

 Yes I know that a byte is a primitive, but byte array (byte[]) is an object.
 In my Entity Bean, this array represent a graphic (a jpg), one of my entity
 bean can have more than one graphic (I represent it now with a List of
 Graph).

 

 I changed my EJB to :

 public class ResultBean implements EntityBean {

   [...]

   public String id;
   [...]
   public List graphs;
   [...]
 }

 

 Here is my Graph Object :

 public class Graph implements Serializable {
   public byte[] datas;
 }

 

 And in my orion-ejb-jar.xml :

 cmp-field-mapping name="graphs"
 list-mapping table="graphics"
  value-mapping type="ubiquity.rapids.ejb.result.Graph"
   cmp-field-mapping
fields /
   /cmp-field-mapping
  /value-mapping
/list-mapping
 /cmp-field-mapping

 --

 Now, when I deploy :

 snip

 Auto-creating table: create table results (id CHAR(255) not null primary
 key, matlabCommand CHAR(255) null, numericResult BINARY null, graphCommand
 CHAR(255) null, generatedOn timestamp null, producedBy CHAR(255) null)

 Orion Launcher create table results (id CHAR(255) not null primary key,
 matlabCommand CHAR(255) null, numericResult BINARY null, graphCommand
 CHAR(255) null, generatedOn timestamp null, producedBy CHAR(255) null)

 Auto-creating table: create table graphics (id CHAR(255) not null, datas
 BINARY null)

 Orion Launcher create table graphics (id CHAR(255) not null, datas BINARY
 null)

 Found 7 syntax errors in "C:/orion/Graph_ORList20.java":

 33. [B __fieldTemp21;
 

 *** Syntax: Unexpected symbol ignored

 92.
 if((([B)null) == null) insertAllStatement.setNull(1,
 java.sql.Types.LONGVARBINARY);
  

 *** Syntax: Unexpected symbol ignored

 93. else
 insertAllStatement.setBinaryStream(1, new
 java.io.ByteArrayInputStream((([B)null)), (([B)null).length);
  

 *** Syntax: Unexpected symbol ignored

 93. else
 insertAllStatement.setBinaryStream(1, new
 java.io.ByteArrayInputStream((([B)null)), (([B)null).length);

 

 *** Syntax: Unexpected symbol ignored

117.
 if((([B)null) == null) insertAllStatement.setNull(1,
 java.sql.Types.LONGVARBINARY);
  

 *** Syntax: Unexpected symbol ignored

118. else
 insertAllStatement.setBinaryStream(1, new
 java.io.ByteArrayInputStream((([B)null)), (([B)null).length);

   

 *** Syntax: Unexpected symbol ignored

118. else
 insertAllStatement.setBinaryStream(1, new
 java.io.ByteArrayInputStream((([B)null)), (([B)null).length);

 

 *** Syntax: Unexpected symbol ignored
 Error compiling file:/C:/orion/applications/rapids/rapids-ejb-result.jar:
 Error in source

 /snip

 -

 All these errors in Graph_ORList20.java are just because Orion generate [B
 insteed of byte[], so the compiler don't understand it... My question is :
 Can I write my own Graph_ORList and tell Orion where it is or how can I
 correct this error ? (Is this an Orion bug ??)

 Thanks

 Laurent

 - Original Message -
 From: "Tim Drury" [EMAIL PROTECTED]
 To: "Orion-Interest" [EMAIL PROTECTED]
 Sent: Monday, November 27, 2000 4:47 PM
 Subject: RE: byte array OR mapping...

  
   The '[B' is the String returned when I do byte[].getClass().toString()
 
  I don't think you want to do that.  Firstly, a byte is not a class.
  byte is a primitive like int, float, char, etc. which are not classes
  in Java (maybe you are a Smalltalk programmer?).
 
  Second, getClass().toString() isn't correct; you should have used
  getClass().getName() to get the name of a class.  A Class is an
  object, and toString() usually returns a serialized version of
  that object (usually, not always).
 
  You should probably take your byte[] and place it in a class that
  implements java.io.Serializable.  Most of the database mappings
  support placing that into a blob:
 
  type-mapping="java.io.Serializable" name="blob"
 
  -tim
 

--
Vidur Dhanda
Active Solutions
tel: 617/566-1252
[EMAIL PROTECTED]
www.active-solutions-inc.com






Huge amounts of entities, no pooled instances

2000-11-28 Thread Sven van 't Veer

Yesterday I posted a question about batch updating in Orion. Orion is
creating huge amounts of instances of my entity without pooling.

Someone mentioned that my updates possibly would be inside the same TX.
Actually I'm using updating 2 tables, in one table, There is only 1
entity ised and it's pooled, the other one creates huge amounts of
entities. (One for each line in my file, there are some 20 lines to
each file and sometimes a Deadlock occurs due to an
OutOfMemoryException).
I have now set the Tx attribute to my update and remove methods to
RequiresNew, but still one bean is creating huge amounts of Beans while
the other is pooling.

Here's the updater method of my session bean:
  public boolean update(ContaEncerradaModel m, String nome){
boolean result = false;
try{
  try{
Ccf ccf = ccfHome.findByPrimaryKey(new CcfPK(m.getCgcCpf(),
m.getBanco(), m.getAg()));
ccf.setQt(m.getQty());
ccf.setDate(m.getDate());
result = true;
  } catch (FinderException ex){ // if we cant find it we need to
create it
try{
  ccfHome.create(m.getCgcCpf(), m.getBanco(), m.getAg(),
m.getQty(), m.getDate());
  result = true;
} catch (CreateException exc){
  result = false;
}
  }
  try{ // no need to set result in this block, since we anly want to
know about ccf
//
here's where only one instance is created, it's activated and passivated
constantly.
the CCF part however keeps creating instances without passifating.
//
nHome.create(m.getCgcCpf(), nome);
  } catch (CreateException ex){ //this probably means we already
have the name, so forget it
  }
} catch (Exception ex){
  System.out.println(ex.toString());
} finally {
  return result;
}
  }
-- 
==
Sven E. van 't Veer  
http://www.cachoeiro.net
Java Developer  [EMAIL PROTECTED]
==




jdk version

2000-11-28 Thread Suresh Ajja

 Now recently i installed Jbuilder 4.0, which took jdk1.3 as default jdk
ver.in built in it.from command prompt, I was not able to run my programs,
hence I installed jdk1.2 after that, but now I am not able to run my Inprise
server (jdk1.2.2 or later ver. not found error) .can somebody tell me How
can i configure only one ver. of jdk to run my IAS as well from Command pr.
Help needed.
Suresh






Wrapper source

2000-11-28 Thread Russ White

Is there any way to get a look at the source code for Orion generated ejb remote
wrappers?

I think I have uncovered an Orion bug, but I cannot confirm it without looking
at the wrapper code.





Re: Using examples from Sun for J2EE reference implementation with Orion

2000-11-28 Thread Nvaslav

Mateo

Can I use examples from Sun for J2EE reference implementation in Windows98

Thank you,

Natalie




A newbie question - problems with JDBC-connection

2000-11-28 Thread theis . meggerle

Hi!

I am pretty new to applicationservers and thus trying the grasp the nuts and bolts.
I have just finished a sessionbean (via a servlet) which connects to a database and 
reads a specified table.
Everything works fine the first time a run my servlet. But the second time, I get no 
connection,
either of the pool or a new one. I run my example, as recommended, by 
ejb-location="jdbc/DefaultEJBDS"
and I am using classes111.zip from Oracle.

Can anyone help with this problem and also explain the principals behind what is 
happening below.

C:\orionjava -Ddatasource.verbose=true -jar orion.jar
DataSource logwriter activated...
jdbc:oracle:thin:@myserver:1521:myInstance: Started
jdbc:oracle:thin:@myserver:1521:myInstance: Started
Orion Pooled jdbc:oracle:thin:@myserver:1521:myInstance: Started
Orion/1.3.8 initialized
Created new physical connection: XA XA Orion Pooled jdbc:oracle:thin:@myserver:1521
:SATT
null: Connection XA XA Orion Pooled jdbc:oracle:thin:@myserver:1521:myInstance 
allocated
(Pool size: 0)
jdbc:oracle:thin:@myserver:1521:myInstance: Opened connection
Created new physical connection: Pooled oracle.jdbc.driver.OracleConnection@c24c
0
Pooled jdbc:oracle:thin:@myserver:1521:SATT: Connection Pooled oracle.jdbc.driver.O
racleConnection@c24c0 allocated (Pool size: 0)
Pooled jdbc:oracle:thin:@myserver:1521:SATT: Releasing connection Pooled oracle.jdb
c.driver.OracleConnection@c24c0 to pool (Pool size: [Ljavax.sql.PooledConnection
;@5f8172)
null: Releasing connection XA XA Orion Pooled 
jdbc:oracle:thin:@myserver:1521:myInstance
to pool (Pool size: [Ljavax.sql.PooledConnection;@2ba11b)
Orion Pooled jdbc:oracle:thin:@myserver:1521:myinstance: Cache timeout, closing 
connectio
n (Pool size: 0)
jdbc/DefaultEJBDS: Cache timeout, closing connection (Pool size: 0)

Best regards

/Theis





Workaround found - Re: Error in ORList (Re: byte array OR mapping...)

2000-11-28 Thread Laurent Cornelis

Hello again,

I found a workaround for this bug :  I just changed my Graph class to

public class Graph implements Serializable {
  public Object datas;

  public void setDatas(byte[] datas) {
this.datas = datas.clone();
  }

  public byte[] getDatas() {
   return (byte[])datas;
  }
}

And it works fine !!

Laurent

- Original Message -
From: "Vidur Dhanda" [EMAIL PROTECTED]
To: "Orion-Interest" [EMAIL PROTECTED]
Sent: Tuesday, November 28, 2000 1:38 PM
Subject: Re: Error in ORList (Re: byte array OR mapping...)


 I had posted something similar as a bug (sorry, can't recall the number;
if you
 want I can try and look) and received a message several days ago that it
had
 been fixed in 1.4.5.  Perhaps, when that version comes out your error will
also
 go away.

 Vidur

 Laurent Cornelis wrote:

  Yes I know that a byte is a primitive, but byte array (byte[]) is an
object.
  In my Entity Bean, this array represent a graphic (a jpg), one of my
entity
  bean can have more than one graphic (I represent it now with a List of
  Graph).
 
  
 
  I changed my EJB to :
 
  public class ResultBean implements EntityBean {
 
[...]
 
public String id;
[...]
public List graphs;
[...]
  }
 
  
 
  Here is my Graph Object :
 
  public class Graph implements Serializable {
public byte[] datas;
  }
 
  
 
  And in my orion-ejb-jar.xml :
 
  cmp-field-mapping name="graphs"
  list-mapping table="graphics"
   value-mapping type="ubiquity.rapids.ejb.result.Graph"
cmp-field-mapping
 fields /
/cmp-field-mapping
   /value-mapping
 /list-mapping
  /cmp-field-mapping
 
  --
 
  Now, when I deploy :
 
  snip
 
  Auto-creating table: create table results (id CHAR(255) not null primary
  key, matlabCommand CHAR(255) null, numericResult BINARY null,
graphCommand
  CHAR(255) null, generatedOn timestamp null, producedBy CHAR(255) null)
 
  Orion Launcher create table results (id CHAR(255) not null primary key,
  matlabCommand CHAR(255) null, numericResult BINARY null, graphCommand
  CHAR(255) null, generatedOn timestamp null, producedBy CHAR(255) null)
 
  Auto-creating table: create table graphics (id CHAR(255) not null, datas
  BINARY null)
 
  Orion Launcher create table graphics (id CHAR(255) not null, datas
BINARY
  null)
 
  Found 7 syntax errors in "C:/orion/Graph_ORList20.java":
 
  33. [B __fieldTemp21;
  
 
  *** Syntax: Unexpected symbol ignored
 
  92.
  if((([B)null) == null) insertAllStatement.setNull(1,
  java.sql.Types.LONGVARBINARY);
   
 
  *** Syntax: Unexpected symbol ignored
 
  93. else
  insertAllStatement.setBinaryStream(1, new
  java.io.ByteArrayInputStream((([B)null)), (([B)null).length);
   
 
  *** Syntax: Unexpected symbol ignored
 
  93. else
  insertAllStatement.setBinaryStream(1, new
  java.io.ByteArrayInputStream((([B)null)), (([B)null).length);
 
  
 
  *** Syntax: Unexpected symbol ignored
 
 117.
  if((([B)null) == null) insertAllStatement.setNull(1,
  java.sql.Types.LONGVARBINARY);
   
 
  *** Syntax: Unexpected symbol ignored
 
 118. else
  insertAllStatement.setBinaryStream(1, new
  java.io.ByteArrayInputStream((([B)null)), (([B)null).length);
 

 
  *** Syntax: Unexpected symbol ignored
 
 118. else
  insertAllStatement.setBinaryStream(1, new
  java.io.ByteArrayInputStream((([B)null)), (([B)null).length);
 
  
 
  *** Syntax: Unexpected symbol ignored
  Error compiling
file:/C:/orion/applications/rapids/rapids-ejb-result.jar:
  Error in source
 
  /snip
 
  -
 
  All these errors in Graph_ORList20.java are just because Orion generate
[B
  insteed of byte[], so the compiler don't understand it... My question is
:
  Can I write my own Graph_ORList and tell Orion where it is or how can I
  correct this error ? (Is this an Orion bug ??)
 
  Thanks
 
  Laurent
 
  - Original Message -
  From: "Tim Drury" [EMAIL PROTECTED]
  To: "Orion-Interest" [EMAIL PROTECTED]
  Sent: Monday, November 27, 2000 4:47 PM
  Subject: RE: byte array OR mapping...
 
   
The '[B' is the String returned when I do
byte[].getClass().toString()
  
   I don't think you want to do that.  Firstly, a byte is not a class.
   byte is a primitive like int, float, char, etc. which are not classes
   in Java (maybe you are a Smalltalk programmer?).
  
   Second, getClass().toString() isn't 

RE: jdk version

2000-11-28 Thread Russ White

Just do a fresh install of JDK 1.3 on your box.

Don't even think about running JBuilder without 1.3

 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED]]On Behalf Of Suresh Ajja
 Sent: Tuesday, November 28, 2000 10:44 AM
 To: Orion-Interest
 Subject: jdk version
 
 
  Now recently i installed Jbuilder 4.0, which took jdk1.3 as default jdk
 ver.in built in it.from command prompt, I was not able to run my programs,
 hence I installed jdk1.2 after that, but now I am not able to run my Inprise
 server (jdk1.2.2 or later ver. not found error) .can somebody tell me How
 can i configure only one ver. of jdk to run my IAS as well from Command pr.
 Help needed.
 Suresh
 
 
 
 




Re: Huge amounts of entities, no pooled instances

2000-11-28 Thread Alan Jones

I'm new to all this, but from looking at your code the only significant
difference I see is that the second try block has a finally after it and the
first one doesn't.  Perhaps it's a bug [in Orion] and perhaps not, but maybe
it doesn't passivate without a finally?  Or maybe it needs a catch to notice
that it needs to passivate.  I just see that the VERY first try block in
your code doesn't have either one after it.

Alan
- Original Message -
From: Sven van 't Veer [EMAIL PROTECTED]
To: Orion-Interest [EMAIL PROTECTED]
Sent: Tuesday, November 28, 2000 7:45 AM
Subject: Huge amounts of entities, no pooled instances


Yesterday I posted a question about batch updating in Orion. Orion is
creating huge amounts of instances of my entity without pooling.

Someone mentioned that my updates possibly would be inside the same TX.
Actually I'm using updating 2 tables, in one table, There is only 1
entity ised and it's pooled, the other one creates huge amounts of
entities. (One for each line in my file, there are some 20 lines to
each file and sometimes a Deadlock occurs due to an
OutOfMemoryException).
I have now set the Tx attribute to my update and remove methods to
RequiresNew, but still one bean is creating huge amounts of Beans while
the other is pooling.

Here's the updater method of my session bean:
  public boolean update(ContaEncerradaModel m, String nome){
boolean result = false;
try{
  try{
Ccf ccf = ccfHome.findByPrimaryKey(new CcfPK(m.getCgcCpf(),
m.getBanco(), m.getAg()));
ccf.setQt(m.getQty());
ccf.setDate(m.getDate());
result = true;
  } catch (FinderException ex){ // if we cant find it we need to
create it
try{
  ccfHome.create(m.getCgcCpf(), m.getBanco(), m.getAg(),
m.getQty(), m.getDate());
  result = true;
} catch (CreateException exc){
  result = false;
}
  }
  try{ // no need to set result in this block, since we anly want to
know about ccf
//
here's where only one instance is created, it's activated and passivated
constantly.
the CCF part however keeps creating instances without passifating.
//
nHome.create(m.getCgcCpf(), nome);
  } catch (CreateException ex){ file://this probably means we already
have the name, so forget it
  }
} catch (Exception ex){
  System.out.println(ex.toString());
} finally {
  return result;
}
  }
--

==
Sven E. van 't Veer
http://www.cachoeiro.net
Java Developer [EMAIL PROTECTED]

==







URGENT-Server crashes or locks up

2000-11-28 Thread Kirby, Nathaniel

We are using Orion merely as a servlet server  (no ejbs) and we are hosting
surveys (forms, questionaires) in it.  We have built the validation /
routing logic into the server using rhino (js.jar) and we have our own
proprietary data store.  

When we go to test the server under stress (as much load as we can get it to
take simulating 30-50 users hitting it as hard as they can) after about 14
hours using hotspot (Sun's server VM) and 112 hours using classic it either
crashes or locks up.

The hotspot VM dies with and internal error and the VM just quits.  I have
seen this VM allocate over 3000 threads.

The classic VM runs Windows NT out of virtual memory. (lots of threads here
to)

Has anyone seen anything like this ?

We are a software development company and are using many different
configurations so far the servers we ahve tested are Windows NT4 (with SP 5
or SP 6) and W2K (both server versions) and we are using orion 1.3.8 and
js.jar (rhino 1.5).  

I don't think we can come up with a "little test" to send to Sun as bug
against their VM - at least Orion is needed and that's not little.  

Does anyone have any ideas about how to make our server stay up under
stress.

Nate




Error in the first time a EJB client access a remote EJB, but not in the second time

2000-11-28 Thread Guilherme Ceschiatti

Hi!

I'm using a client that access a remote EJB. In the first time I try to acces
it, I get the following error, but in the next try I get no errors. Any idea
to solve it?

javax.naming.NamingException: IO Error: Disconnected
at com.evermind.server.rmi.RMIContext.unbind(JAX)
at com.evermind.server.hl.unbind(JAX)
at com.evermind.server.rmi.RMIContext.lookup(JAX)
at javax.naming.InitialContext.lookup(InitialContext.java:351)
at guiga.wap.util.UtilEJB.getAgenteFixoHome(UtilEJB.java:88)
at
guiga.wap.controle.web.ProcessadorDePedidos.processaPedido(ProcessadorDePedid
os.java:205) at
__jspPage37_Principal_jsp._jspService(__jspPage37_Principal_jsp.java:91)
at com.orionserver.http.OrionHttpJspPage.service(JAX)
at com.evermind.server.http.d3.so(JAX)
at com.evermind.server.http.d3.sm(JAX)
at com.evermind.server.http.ef.su(JAX)
at com.evermind.server.http.ef.dn(JAX)
at com.evermind.util.f.run(JAX)

-- 

[]s
Guilherme Ceschiatti
http://listando.net
[EMAIL PROTECTED]




Re: jdk version

2000-11-28 Thread David Kenzik

  Suresh Ajja said...

   Now recently i installed Jbuilder 4.0, which took jdk1.3 as default jdk
  ver.in built in it.from command prompt, I was not able to run my programs,
  hence I installed jdk1.2 after that, but now I am not able to run my Inprise
  server (jdk1.2.2 or later ver. not found error) .can somebody tell me How
  can i configure only one ver. of jdk to run my IAS as well from Command pr.

In the jbuilder "bin" directory, there is a file called "jdk.config".

It's self-explanatory-- you can set the path to your JDK in there. Just set
it to the one you use from your command line.

However, I can't comment on the JDK requirements for IAS.

-- 
David S. Kenzik
[EMAIL PROTECTED] - http://kenzik.com
Original Music - http://mp3.com/text




Re: Huge amounts of entities, no pooled instances

2000-11-28 Thread Petr Podsednik

I am not quite sure, but for each entity bean two objects are always
created:
- remote EJB object
- object with your bussines logic.

I think that only second one is subject to pooling - so maybe you can be out
of memory because of large amounts of remote instances. This problem you are
facing to brings me again the question about  the sense of entity beans.
Regards
Petr

-Original Message-
From: Sven van 't Veer [EMAIL PROTECTED]
To: Orion-Interest [EMAIL PROTECTED]
Date: 28. listopadu 2000 15:37
Subject: Huge amounts of entities, no pooled instances


Yesterday I posted a question about batch updating in Orion. Orion is
creating huge amounts of instances of my entity without pooling.

Someone mentioned that my updates possibly would be inside the same TX.
Actually I'm using updating 2 tables, in one table, There is only 1
entity ised and it's pooled, the other one creates huge amounts of
entities. (One for each line in my file, there are some 20 lines to
each file and sometimes a Deadlock occurs due to an
OutOfMemoryException).
I have now set the Tx attribute to my update and remove methods to
RequiresNew, but still one bean is creating huge amounts of Beans while
the other is pooling.

Here's the updater method of my session bean:
  public boolean update(ContaEncerradaModel m, String nome){
boolean result = false;
try{
  try{
Ccf ccf = ccfHome.findByPrimaryKey(new CcfPK(m.getCgcCpf(),
m.getBanco(), m.getAg()));
ccf.setQt(m.getQty());
ccf.setDate(m.getDate());
result = true;
  } catch (FinderException ex){ // if we cant find it we need to
create it
try{
  ccfHome.create(m.getCgcCpf(), m.getBanco(), m.getAg(),
m.getQty(), m.getDate());
  result = true;
} catch (CreateException exc){
  result = false;
}
  }
  try{ // no need to set result in this block, since we anly want to
know about ccf
//
here's where only one instance is created, it's activated and passivated
constantly.
the CCF part however keeps creating instances without passifating.
//
nHome.create(m.getCgcCpf(), nome);
  } catch (CreateException ex){ //this probably means we already
have the name, so forget it
  }
} catch (Exception ex){
  System.out.println(ex.toString());
} finally {
  return result;
}
  }
--
===
===
Sven E. van 't Veer
http://www.cachoeiro.net
Java Developer [EMAIL PROTECTED]
===
===





Inner classes in JSP don't work

2000-11-28 Thread Thomas Hertz


Hi,

some weeks ago i found a message in this newsgroup that the
bug with inner classes in JSP is now fixed.

I am currently using 1.4.4 and it seems that this bug is
either not yet fixed or it is back again.

I tried also with 1.3.8 and 1.4.4, in all versions I was not
able to get a inner class in a jsp file working.

Has anybody got the same problem? Should I post it to bugzilla?
I am not sure, because Magnus said it was a bug in 1.0rc1 but
it fixed now.


 /Thomas

-- 

| /Thomas Hertz   |   [y] hybris GmbH | Software Engineering |
| [EMAIL PROTECTED] | Schwere-Reiter-Strasse 35 | tel +49 89 306697- 0 |
| www.hybris.de   | Haus 16, D-80797 Muenchen | fax +49 89 306697-99 |
| pgp fingerprint: D070 5D86 BE2D C3AF E2CC D2D8 C29A 7F68 7407 629E |






Re: DataSourceConnection not closed

2000-11-28 Thread Daniel G. Koulomzin


I don't see a wait-timeout property in the orion-ejb-jar.xml dtd.
Is it added in a version after the one I have (1.3.8)? All I see
is call-timeout and timeout in Session beans, and call-timeout and validity
timeout in Entity Beans.
-Dan

Marcus Ahnve wrote:
> "Juan Lorandi (Chile)" wrote:
>
> yes, I've been complaining about this issues starting a month ago...
> check bugs #161  #170 for more info
>
> nobody from orion replies, and it's a shame, because I cant
license
> the products until I work my way around these
>
> Anybody performing a DoS attack on any Orion Web Site will effectively
> crash the server
Bug #170 was filed due to the fact that the server chrashed and burned
if it ran out of connections. For some weird reason, it seems to be
very
CPU expensive to wait for a connection. However, now that you can
specify the wait-timeout property we can keep the server alive, with
tons of timeouts though. I've set the status of #170 to fixed, since
the
immediate problem is fixed. Now, for "DataSource not closed", that's
a
whole new story, but I believe that there are other reports in bugzilla
regarding that topic. FYI, we not only get it due to timeouts, but
when
testing our app against Hypersonic's in-memory db too. No clue why.
/Marcus
--
Marcus Ahnve
email: [EMAIL PROTECTED]
Lecando AB
Office: +46-(0)8-634 94 18
Sweden
Mobile: +46-(0)70-462 19 18
www.lecando.com
ICQ#: 4564879

--
Daniel G. Koulomzin
Digital Media On Demand
244 Brighton Ave. 3rd Floor
Allston MA 02134



RE: A newbie question - problems with JDBC-connection

2000-11-28 Thread Kevin Duffey

If you don't mind..can you help explain to me how you even got this far? I
just installed Oracle Personal Edition, and I would like to get Orion to
pool connections, use a DataSource, and so on. I don't know about using
entity beans yet..I don't think EJB 1.1 entity is powerful enough yet..but
2.0 should be. Until then, I only have 5 tables to work with, which I will
use SQL for in the EJB session bean.

So if you could possibly explain what JDBC type 4 driver you are using
(where you got it from.URL?), how you got Orion to use it as a DataSource
instead of the Hypersonic SQL one it defaults to, and so on...I would be
much appreciated.

Thanks.

 Hi!

 I am pretty new to applicationservers and thus trying the grasp
 the nuts and bolts.
 I have just finished a sessionbean (via a servlet) which connects
 to a database and reads a specified table.
 Everything works fine the first time a run my servlet. But the
 second time, I get no connection,
 either of the pool or a new one. I run my example, as
 recommended, by ejb-location="jdbc/DefaultEJBDS"
 and I am using classes111.zip from Oracle.

 Can anyone help with this problem and also explain the principals
 behind what is happening below.

 C:\orionjava -Ddatasource.verbose=true -jar orion.jar
 DataSource logwriter activated...
 jdbc:oracle:thin:@myserver:1521:myInstance: Started
 jdbc:oracle:thin:@myserver:1521:myInstance: Started
 Orion Pooled jdbc:oracle:thin:@myserver:1521:myInstance: Started
 Orion/1.3.8 initialized
 Created new physical connection: XA XA Orion Pooled
 jdbc:oracle:thin:@myserver:1521
 :SATT
 null: Connection XA XA Orion Pooled
 jdbc:oracle:thin:@myserver:1521:myInstance allocated
 (Pool size: 0)
 jdbc:oracle:thin:@myserver:1521:myInstance: Opened connection
 Created new physical connection: Pooled
 oracle.jdbc.driver.OracleConnection@c24c
 0
 Pooled jdbc:oracle:thin:@myserver:1521:SATT: Connection Pooled
 oracle.jdbc.driver.O
 racleConnection@c24c0 allocated (Pool size: 0)
 Pooled jdbc:oracle:thin:@myserver:1521:SATT: Releasing connection
 Pooled oracle.jdb
 c.driver.OracleConnection@c24c0 to pool (Pool size:
 [Ljavax.sql.PooledConnection
 ;@5f8172)
 null: Releasing connection XA XA Orion Pooled
 jdbc:oracle:thin:@myserver:1521:myInstance
 to pool (Pool size: [Ljavax.sql.PooledConnection;@2ba11b)
 Orion Pooled jdbc:oracle:thin:@myserver:1521:myinstance: Cache
 timeout, closing connectio
 n (Pool size: 0)
 jdbc/DefaultEJBDS: Cache timeout, closing connection (Pool size: 0)

 Best regards

 /Theis






Does Orion work woth Ms access

2000-11-28 Thread krishna mukdapu

hi,

I would like to test Orion server with different Databases. Has any one 
tried Orion with Ms access Database. What changes we have to make to the 
data-sources.xml. here is the tag for Hypersonic server:

data-sourceclass="com.evermind.sql.DriverManagerDataSource"   
 name="Hypersonic"
location="jdbc/HypersonicCoreDS"xa-location="jdbc/xa/HypersonicXADS"
ejb-location="jdbc/HypersonicDS"
connection-driver="org.hsql.jdbcDriver"
username="sa"
password=""
url="jdbc:HypersonicSQL:./database/defaultdb"   inactivity-timeout="30"
/

thanks in Advance.

cheers,
krishna
_
Get more from the Web.  FREE MSN Explorer download : http://explorer.msn.com





Re: AW: Huge amounts of entities, no pooled instances

2000-11-28 Thread Sven van 't Veer



"Haeussler, Heinz" wrote:
 
 Hello Sven,
 
 it's an old problem of orion and the only legal way to reduce the
 EJB-Entity-Pool is to press the "Flush"-Button in the orion-console.
 Please search in the mailing-list with the key "pool" and you will get
 interesting mails discussing this problem.
 
Ok, I found the workaround in the mailing list:
import com.evermind.server.administration.*;
snip
Context context = new InitialContext();
Object o = context.lookup("java:comp/Administrator");
ApplicationAdministrator admin =
(ApplicationAdministrator)javax.rmi.PortableRemoteObject.narrow(obj,
ApplicationAdministrator.class);
snip
admin.flushEJBCache("name of your entity-bean");
snip

and I've added a finally block to my try{}catch{} blocks.

This seems to work, the bean is passifating now and the application uses
only 1 pooled instance of the bean. However, IMHO this is something the
container should be taking care of for me.

I'm taking a look at Bugzilla to see if there is any report on this.

sven

-- 
==
Sven E. van 't Veer  
http://www.cachoeiro.net
Java Developer  [EMAIL PROTECTED]
==




Re: AW: Huge amounts of entities, no pooled instances

2000-11-28 Thread Sven van 't Veer



"Haeussler, Heinz" wrote:
 
 Hello Sven,
 
 it's an old problem of orion and the only legal way to reduce the
 EJB-Entity-Pool is to press the "Flush"-Button in the orion-console.
 Please search in the mailing-list with the key "pool" and you will get
 interesting mails discussing this problem.
 
 Heinz
I found the bug report it's #174.

sven
-- 
==
Sven E. van 't Veer  
http://www.cachoeiro.net
Java Developer  [EMAIL PROTECTED]
==




Follow Up on BUG#174: batch updates entities do not get passivated.

2000-11-28 Thread Sven van 't Veer

I'm currently running my batchupdates with the earlier proposed
workaround:

import com.evermind.server.administration.*;
snip
Context context = new InitialContext();
Object o = context.lookup("java:comp/Administrator");
ApplicationAdministrator admin =
(ApplicationAdministrator)javax.rmi.PortableRemoteObject.narrow(obj,
ApplicationAdministrator.class);
snip
admin.flushEJBCache("name of your entity-bean");
snip

This works perfectly. Only 1 entity bean instance gets created. CPU
usage wich earlier was at 100% corrently stays around 53% and
significantly less memory is used.

sven
-- 
==
Sven E. van 't Veer  
http://www.cachoeiro.net
Java Developer  [EMAIL PROTECTED]
==




RE: OFFTOPIC: Making a page expired

2000-11-28 Thread Duffey, Kevin

Question..does this solve the problem of the BACK button going to the
server? I have this problem where if I "control" caching, thus wanting to
force the browser to always go to the server, if the user hits BACK, they
get the infamous "this page has expired from cache..please refresh your
browser..." and that is just not acceptable for a professional site.
Especially given that fact that most users don't know what the hell this
means, or why it happened.

So, will this CACHE-CONTROL setting eliminate this problem and ALWAYS force
the BACK/FORWARD button to use the server page, instead of anything in
cache?

Thanks.


 -Original Message-
 From: Matt Krevs [mailto:[EMAIL PROTECTED]]
 Sent: Monday, November 27, 2000 8:36 PM
 To: Orion-Interest
 Subject: RE: OFFTOPIC: Making a page expired
 
 
 Jeroen - you are a star
 
 What this header basically does is re-request the URL when 
 the user hits the
 back/forward buttons.
 
 That also fixed a couple of other 'what happens if the hit 
 the back/forward
 button' issues i was having.
 
 One huge advantage about the 'CACHE-CONTROL' tag is that the 
 browser can
 still use the cache to get images, javascript includes, 
 behaviours etc. Best
 of both worlds really.
 
 Thanks
 
 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED]]On Behalf Of J.T. Wenting
 Sent: Monday, 27 November 2000 7:11 PM
 To: Orion-Interest
 Subject: RE: OFFTOPIC: Making a page expired
 
 
 response.setHeader("CACHE-CONTROL", "max-age=0, must-revalidate");
 will do the trick.
 
 Jeroen T. Wenting
 [EMAIL PROTECTED]
 
 Murphy was wrong, things that can't go wrong will anyway
 
  -Original Message-
  From: [EMAIL PROTECTED]
  [mailto:[EMAIL PROTECTED]]On Behalf Of Matt Krevs
  Sent: Monday, November 27, 2000 05:37
  To: Orion-Interest
  Subject: OFFTOPIC: Making a page expired
 
 
  I am trying to get the browser to display the "this page 
 has expired"
  message when the user hits the Back button on the browser.
 
  We have the luxury? of only needing to support IE5.5. No 
 matter what meta
  tags i use I cant seem to get the browser to display the standard
  "this page
  has expired" message.
 
  This is especially important in the situation where the 
 user's session has
  expired and the user then uses the back button and tries to 
 click on a
  hyperlink on the old page.
 
  Any ideas?
 
 
 
 




Re: Does Orion work woth Ms access

2000-11-28 Thread Joachim Peer

hi,
try

 data-source
  name="my demo datasource"
  class="com.evermind.sql.ConnectionDataSource"
  pooled-location="jdbc/myDemoDS"
  url="jdbc:odbc:demo"
  connection-driver="sun.jdbc.odbc.JdbcOdbcDriver"
  username=""
  password=""
 /

don't forget to register your database properly in your windows system
("ODBC config" or something..), it has to be named "demo" in the example
above
[jdbc/myDemoDS is the JNDI entry]

joe peer

- Original Message -
From: krishna mukdapu [EMAIL PROTECTED]
To: Orion-Interest [EMAIL PROTECTED]
Sent: Tuesday, November 28, 2000 7:17 PM
Subject: Does Orion work woth Ms access


 hi,

 I would like to test Orion server with different Databases. Has any one
 tried Orion with Ms access Database. What changes we have to make to the
 data-sources.xml. here is the tag for Hypersonic server:

 data-source class="com.evermind.sql.DriverManagerDataSource"
name="Hypersonic"
 location="jdbc/HypersonicCoreDS" xa-location="jdbc/xa/HypersonicXADS"
 ejb-location="jdbc/HypersonicDS"
 connection-driver="org.hsql.jdbcDriver"
 username="sa"
 password=""
 url="jdbc:HypersonicSQL:./database/defaultdb" inactivity-timeout="30"
 /

 thanks in Advance.

 cheers,
 krishna


_
 Get more from the Web.  FREE MSN Explorer download :
http://explorer.msn.com








Re: Does Orion work woth Ms access

2000-11-28 Thread Gerald Gutierrez


The data source names, the driver class (e.g. the ODBC bridge) and the URL. 
Refer to Sun documentation on how to use the ODBC bridge.

At 06:17 PM 11/28/2000 +, you wrote:
hi,

I would like to test Orion server with different Databases. Has any one 
tried Orion with Ms access Database. What changes we have to make to the 
data-sources.xml. here is the tag for Hypersonic server:

data-sourceclass="com.evermind.sql.DriverManagerDataSource" 
  name="Hypersonic"
location="jdbc/HypersonicCoreDS" 
xa-location="jdbc/xa/HypersonicXADS"
ejb-location="jdbc/HypersonicDS"
connection-driver="org.hsql.jdbcDriver"
username="sa"
password=""
url="jdbc:HypersonicSQL:./database/defaultdb" 
inactivity-timeout="30"
/

thanks in Advance.

cheers,
krishna
_
Get more from the Web.  FREE MSN Explorer download : http://explorer.msn.com






RE: OFFTOPIC: Making a page expired

2000-11-28 Thread Matt Krevs

No - not in my experience

For various reasons, a successful post (usually saving some data) in my web
app causes a redirect to occur to display the newly saved details.

In my case, 95% of the time the user hits the back button the page will
reload properly because the URL wasnt loaded from a form post (thanks to the
sendredirect).

On the few occasions that URLs are loaded from form posts (eg login) I still
get a "page has expired" error. I can live with that.

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]On Behalf Of Duffey, Kevin
Sent: Wednesday, 29 November 2000 6:02 AM
To: Orion-Interest
Subject: RE: OFFTOPIC: Making a page expired


Question..does this solve the problem of the BACK button going to the
server? I have this problem where if I "control" caching, thus wanting to
force the browser to always go to the server, if the user hits BACK, they
get the infamous "this page has expired from cache..please refresh your
browser..." and that is just not acceptable for a professional site.
Especially given that fact that most users don't know what the hell this
means, or why it happened.

So, will this CACHE-CONTROL setting eliminate this problem and ALWAYS force
the BACK/FORWARD button to use the server page, instead of anything in
cache?

Thanks.


 -Original Message-
 From: Matt Krevs [mailto:[EMAIL PROTECTED]]
 Sent: Monday, November 27, 2000 8:36 PM
 To: Orion-Interest
 Subject: RE: OFFTOPIC: Making a page expired


 Jeroen - you are a star

 What this header basically does is re-request the URL when
 the user hits the
 back/forward buttons.

 That also fixed a couple of other 'what happens if the hit
 the back/forward
 button' issues i was having.

 One huge advantage about the 'CACHE-CONTROL' tag is that the
 browser can
 still use the cache to get images, javascript includes,
 behaviours etc. Best
 of both worlds really.

 Thanks

 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED]]On Behalf Of J.T. Wenting
 Sent: Monday, 27 November 2000 7:11 PM
 To: Orion-Interest
 Subject: RE: OFFTOPIC: Making a page expired


 response.setHeader("CACHE-CONTROL", "max-age=0, must-revalidate");
 will do the trick.

 Jeroen T. Wenting
 [EMAIL PROTECTED]

 Murphy was wrong, things that can't go wrong will anyway

  -Original Message-
  From: [EMAIL PROTECTED]
  [mailto:[EMAIL PROTECTED]]On Behalf Of Matt Krevs
  Sent: Monday, November 27, 2000 05:37
  To: Orion-Interest
  Subject: OFFTOPIC: Making a page expired
 
 
  I am trying to get the browser to display the "this page
 has expired"
  message when the user hits the Back button on the browser.
 
  We have the luxury? of only needing to support IE5.5. No
 matter what meta
  tags i use I cant seem to get the browser to display the standard
  "this page
  has expired" message.
 
  This is especially important in the situation where the
 user's session has
  expired and the user then uses the back button and tries to
 click on a
  hyperlink on the old page.
 
  Any ideas?
 
 







Re: Does Orion work woth Ms access

2000-11-28 Thread Tim Endres

Just a note that I have heard many negative comments regarding using
the JDBC-ODBC driver that is referenced below. If I remember correctly,
the complaints revolved around performance, and some broken/lacking
features. Probably not critical for a test, but something to consider
if you are going in this direction for production.

tim.

 hi,
 try
 
  data-source
   name="my demo datasource"
   class="com.evermind.sql.ConnectionDataSource"
   pooled-location="jdbc/myDemoDS"
   url="jdbc:odbc:demo"
   connection-driver="sun.jdbc.odbc.JdbcOdbcDriver"
   username=""
   password=""
  /
 
 don't forget to register your database properly in your windows system
 ("ODBC config" or something..), it has to be named "demo" in the example
 above
 [jdbc/myDemoDS is the JNDI entry]
 
 joe peer





Running two instances of Orion on the same IP and port

2000-11-28 Thread Larry Velez
Title: Running two instances of Orion on the same IP and port






Orioners,


Has anyone ever tried to run two instances of Orion on the same machine, IP and port. What I am trying to do is have a second instance of Orion listen to only certain virtual hosts (headers) and the first pick up any unknown or blank headers.

The reason for us doing it this way is to have a test installation of Orion that will be restarted often and a second 'stable 'installation that will run some ancillary sites for our internal network.

I know that binding a second IP to the box and having the second Orion listen on that IP would probably work. Is there an obvious reason that the way I am attempting always gives me an Error starting HTTP server: Address already in use error on the second instance?

thanx,


Larry





Re: Running two instances of Orion on the same IP and port

2000-11-28 Thread Robert Krueger

At 16:46 28.11.00 , you wrote:

Orioners,

Has anyone ever tried to run two instances of Orion on the same machine, 
IP and port.  What I am trying to do is have a second instance of Orion 
listen to only certain virtual hosts (headers) and the first pick up any 
unknown or blank headers.

The reason for us doing it this way is to have a test installation of 
Orion that will be restarted often and a second 'stable 'installation that 
will run some ancillary sites for our internal network.

I know that binding a second IP to the box and having the second Orion 
listen on that IP would probably work.  Is there an obvious reason that 
the way I am attempting always gives me an "Error starting HTTP server: 
Address already in use" error on the second instance?

yes, how are two VMs supposed to share a server socket??? IMO this does not 
work.

robert

thanx,

Larry

(-) Robert Krüger
(-) SIGNAL 7 Gesellschaft für Informationstechnologie mbH
(-) Brüder-Knauß-Str. 79 - 64285 Darmstadt,
(-) Tel: 06151 665401, Fax: 06151 665373
(-) [EMAIL PROTECTED], www.signal7.de





RE: Debugging CMP sql

2000-11-28 Thread Knudsen, Joe

I have had similar problems.  It seems like the it only initially generates
the SQL.
I had to delete the directory and all its contents under
orion/application-deployments/appName
and then it would recreate the database.  It may fail on things that already
exist but
create any new items.


 -Original Message-
 From: John Pletka [SMTP:[EMAIL PROTECTED]]
 Sent: Tuesday, November 28, 2000 1:44 PM
 To:   Orion-Interest
 Subject:  Debugging CMP sql
 
 Is there any way to force orion to log all the SQL it generates?  I made a
 change to one of my CMP beans to add some new columns, and now Oracle is
 reporting an "Invalid column" error when I do a findAll.  This one should
 be
 a no-brainer, but I've checked the orion-ejb-jar.xml file 5 times now and
 everything is spelled correct.  The comment above the findAll method has
 not
 changed since I added the columns, but I assume that has nothing to do
 with
 this.
 
   




RE: Running two instances of Orion on the same IP and port

2000-11-28 Thread Matt Krevs
Title: Running two instances of Orion on the same IP and port



I'm 
not sure that its possible

I 
would suggest doing the following

- run 
2 instance of orion
- run 
the 'development' instance on port 8080
- run 
the 'internal network' instance on port 80

Why do 
you want to run both instances on the same port?

AFAIK 
each port can have a maximum of one webserver using it. This isnt an orion 
restriction but a general webserver restriction.

  -Original Message-From: 
  [EMAIL PROTECTED] 
  [mailto:[EMAIL PROTECTED]]On Behalf Of Larry 
  VelezSent: Wednesday, 29 November 2000 7:46 AMTo: 
  Orion-InterestSubject: Running two instances of Orion on the same 
  IP and port
  Orioners, 
  Has anyone ever tried to run two instances of Orion on the 
  same machine, IP and port. What I am trying to do is have a second 
  instance of Orion listen to only certain virtual hosts (headers) and the first 
  pick up any unknown or blank headers.
  The reason for us doing it this way is to have a test 
  installation of Orion that will be restarted often and a second 'stable 
  'installation that will run some ancillary sites for our internal 
  network.
  I know that binding a second IP to the box and having the 
  second Orion listen on that IP would probably work. Is there an obvious 
  reason that the way I am attempting always gives me an "Error starting HTTP 
  server: Address already in use" error on the second instance?
  thanx, 
  Larry 


RE: table names in CMP EJB's

2000-11-28 Thread Scott Farquhar

You can include a sample orion-ejb-jar.xml file in your project by including
it in a directory called orion:


/lib
/client
/ejb
/au
/com
/meta-inf
/orion
/tags
/web

Include the orion-ejb.jar in the orion directory, and orion will deploy it.
However, orion does not timestamp the deployed file, so every time you
change the file, you will need to remove the file from
/orion/application-deployments

Has the timestamping bug been submitted to bugzilla?

Scott

--
From:  Adam Winter[SMTP:[EMAIL PROTECTED]]
Sent:  Wednesday, 29 November 2000 7:36
To:  Orion-Interest
Subject:  table names in CMP EJB's

Hi all,

I can see how to change the table name associated with an Entity
JavaBean in the orion-ejb-jar.xml. But, how can I include that change along
with the source for my application so that it acts the same way for all
users? I tried putting that information under my ejb's META-INF directory,
but that didn't work.

-adamw



  _  

"Good design is the only real shortcut."

Adam Winter
Application Engineer II
@Outcome, Inc 
7000 West William Cannon, 
Building. 1, Suite. 100, 
Austin, TX 78735 
http://www.atoutcome.com 
Ph. (512)899-1948 Ext.1010 
Fx. (512)899-3880






RE: Running two instances of Orion on the same IP and port

2000-11-28 Thread Scott Stirling
Title: Running two instances of Orion on the same IP and port



This 
has nothing to do with Orion per se. It's a fact of life that only one 
processat a time can bind to a port on a host. For example, say you 
had Orion bound to port 25 along with your email server. Who would try 
tohandle SMTP requests to port 25? Orion or the mail server? 
The answer is whoever bound the port first. And once a process has bound 
to a critical port (such as a Web server binding to port 80), it usually doesn't 
"let go" until the process is stopped.

Scott 
Stirling
West 
Newton, MA

  -Original Message-To: 
  Orion-InterestSubject: Running two instances of Orion on the same 
  IP and port
  Orioners, 
  Has anyone ever tried to run two instances of Orion on the 
  same machine, IP and port. What I am trying to do is have a second 
  instance of Orion listen to only certain virtual hosts (headers) and the first 
  pick up any unknown or blank headers.
  The reason for us doing it this way is to have a test 
  installation of Orion that will be restarted often and a second 'stable 
  'installation that will run some ancillary sites for our internal 
  network.
  I know that binding a second IP to the box and having the 
  second Orion listen on that IP would probably work. Is there an obvious 
  reason that the way I am attempting always gives me an "Error starting HTTP 
  server: Address already in use" error on the second instance?
  thanx, 
  Larry 


Re: Turbine with Orion?

2000-11-28 Thread David Kenzik

  Neal Kaiser said...

  I'm getting ready to set this up (Turbine and Velocity) with Orion. 
  Before I pull my hair out figuring it out, I wanted to see if anyone has
  already documented this?

If/when you endeavor to set this up, please report your findings to the list
so the orionsupport.com guys can publish it.

I'm sure many others will benefit from it.

-- 
David S. Kenzik
[EMAIL PROTECTED] - http://kenzik.com
Original Music - http://mp3.com/text




RE: Running two instances of Orion on the same IP and port

2000-11-28 Thread Larry Velez
Title: RE: Running two instances of Orion on the same IP and port






You guys are right. I see now the error of my ways. I was forgetting the fundamental difference that the second Orion process runs as a second VM. I was trying to recreate a setup I had often done with other webservers but with them I always used the same 'process' with different virtual hosts. Many of them never required restarting because they were just webservers and not application servers as Orion is.

With our development Orion setup we often make changes that require a restart and I was trying to avoid the restart of one Orion from affecting all the sites being served by that box.

The only reason I was trying to use the same IP and port was because I did not understand why it should not work. Now I do.

thanx,


Larry


-Original Message-
From: Scott Stirling
To: Orion-Interest
Sent: 11/28/2000 8:28 PM
Subject: RE: Running two instances of Orion on the same IP and port


This has nothing to do with Orion per se. It's a fact of life that only
one process at a time can bind to a port on a host. For example, say
you had Orion bound to port 25 along with your email server. Who would
try to handle SMTP requests to port 25? Orion or the mail server? The
answer is whoever bound the port first. And once a process has bound to
a critical port (such as a Web server binding to port 80), it usually
doesn't let go until the process is stopped.

Scott Stirling
West Newton, MA


-Original Message-
To: Orion-Interest
Subject: Running two instances of Orion on the same IP and port





Orioners, 


Has anyone ever tried to run two instances of Orion on the same machine,
IP and port. What I am trying to do is have a second instance of Orion
listen to only certain virtual hosts (headers) and the first pick up any
unknown or blank headers.


The reason for us doing it this way is to have a test installation of
Orion that will be restarted often and a second 'stable 'installation
that will run some ancillary sites for our internal network.


I know that binding a second IP to the box and having the second Orion
listen on that IP would probably work. Is there an obvious reason that
the way I am attempting always gives me an Error starting HTTP server:
Address already in use error on the second instance?


thanx, 


Larry 





Re: jdk version

2000-11-28 Thread Suresh Ajja

Thanx White, it worked after fresh installation of jdk1.3.

Suresh Ajja
EJB Developer
[EMAIL PROTECTED]
www.verchaska.com
Verchaska - Helping your business succeed.



- Original Message -
From: "Russ White" [EMAIL PROTECTED]
To: "Orion-Interest" [EMAIL PROTECTED]
Sent: Tuesday, November 28, 2000 8:00 PM
Subject: RE: jdk version


 Just do a fresh install of JDK 1.3 on your box.

 Don't even think about running JBuilder without 1.3

  -Original Message-
  From: [EMAIL PROTECTED]
  [mailto:[EMAIL PROTECTED]]On Behalf Of Suresh Ajja
  Sent: Tuesday, November 28, 2000 10:44 AM
  To: Orion-Interest
  Subject: jdk version
 
 
   Now recently i installed Jbuilder 4.0, which took jdk1.3 as default jdk
  ver.in built in it.from command prompt, I was not able to run my
programs,
  hence I installed jdk1.2 after that, but now I am not able to run my
Inprise
  server (jdk1.2.2 or later ver. not found error) .can somebody tell me
How
  can i configure only one ver. of jdk to run my IAS as well from Command
pr.
  Help needed.
  Suresh