RE: How do you tell orion not to autocommit?

2002-05-26 Thread Alex Paransky

Wrap a transaction around your operation.  This way, the transaction will
begin when your operation starts, and commits only when your operation is
complete.  Unless, you are accessing your entity beans from a client layer.
This is one of the reasons why you need to use Stateless session beans to
wrap your model.

You should never have to touch the autoCommit property of a connection.

-AP_
http://www.myprofiles.com/member/profile/apara_personal

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]On Behalf Of prasanth sb
Sent: Saturday, May 25, 2002 10:44 PM
To: Orion-Interest
Subject: Re: How do you tell orion not to autocommit?


Hi Keith,
 If you are using Bean managed persistence, then get the connection
object using jndi lookup, then use connection.setAutocommit(false). I am not
aware how to do this in container managed persistence.Can some great guys
explain this?Wish you a good day.
thanks,
Prasanth
"God gives you more than you expect"




>From: "Keith Kwiatek" <[EMAIL PROTECTED]>
>Reply-To: Orion-Interest <[EMAIL PROTECTED]>
>To: Orion-Interest <[EMAIL PROTECTED]>
>Subject: How do you tell orion not to autocommit?
>Date: Wed, 17 Apr 2002 07:16:48 -0400
>
>Hello,
>
>I am running orion with a datasource and  some jsp's with some jdbc beans.
>When I insert/update/delete it seems to be set to autocommit. How do I tell
>orion not to autocommit?
>
>Thanks,
>Keith
>
>
>


_
Send and receive Hotmail on your mobile device: http://mobile.msn.com







Re: How do you tell orion not to autocommit?

2002-05-25 Thread prasanth sb

Hi Keith,
 If you are using Bean managed persistence, then get the connection 
object using jndi lookup, then use connection.setAutocommit(false). I am not 
aware how to do this in container managed persistence.Can some great guys 
explain this?Wish you a good day.
thanks,
Prasanth
"God gives you more than you expect"




>From: "Keith Kwiatek" <[EMAIL PROTECTED]>
>Reply-To: Orion-Interest <[EMAIL PROTECTED]>
>To: Orion-Interest <[EMAIL PROTECTED]>
>Subject: How do you tell orion not to autocommit?
>Date: Wed, 17 Apr 2002 07:16:48 -0400
>
>Hello,
>
>I am running orion with a datasource and  some jsp's with some jdbc beans.
>When I insert/update/delete it seems to be set to autocommit. How do I tell
>orion not to autocommit?
>
>Thanks,
>Keith
>
>
>


_
Send and receive Hotmail on your mobile device: http://mobile.msn.com





Re: Sessions and W98 + IE

2002-05-22 Thread David Tunkrans

OK. So how do you force 128 bit encryption? By the way take a look at this,
could be the answer to the problem...
http://www.cnet.com/software/0-3227883-8-8580844-5.html

/David

- Original Message -
From: "Stephen Davidson" <[EMAIL PROTECTED]>
To: "Orion-Interest" <[EMAIL PROTECTED]>
Sent: Sunday, May 19, 2002 6:40 PM
Subject: Re: Sessions and W98 + IE


> Hi David.
> The major errors I have come accross in IE (all tested version of 4, 5, &
6) was that the 56bit encryption package was completely broken in IE.  The
workaround was to force 128bit, or no encryption.
> I am not aware of any other issues.
>
> -Steve
>
> David Tunkrans wrote:
>
>  > Hi
>  >
>  >
>  >
>  > Im having problems with "broken" sessions for w98 + IE browsers. Does
>  > anyone know of errors in the Orion sessiontracking mechanism?
>  >
>  >
>  >
>  > /David
>  >
>
>
>
>





Re: How do you tell orion not to autocommit?

2002-05-21 Thread Keith Kwiatek

But I am using connection pooling I tried this and it does not seem to
work... is it something I have to set with the connection pool?

Thanks,

Keith


- Original Message -
From: "Juan Pablo Lorandi" <[EMAIL PROTECTED]>
To: "Orion-Interest" <[EMAIL PROTECTED]>
Sent: Wednesday, April 17, 2002 12:22 PM
Subject: RE: How do you tell orion not to autocommit?


> Excerpt from the API docs for method
> java.sql.Connection.setAutoCommit(boolean autoCommit) follows
>
> setAutoCommit
> public void setAutoCommit(boolean autoCommit)
>throws SQLException
> Sets this connection's auto-commit mode. If a connection is in
> auto-commit mode, then all its SQL statements will be executed and
> committed as individual transactions. Otherwise, its SQL statements are
> grouped into transactions that are terminated by a call to either the
> method commit or the method rollback. By default, new connections are in
> auto-commit mode. The commit occurs when the statement completes or the
> next execute occurs, whichever comes first. In the case of statements
> returning a ResultSet, the statement completes when the last row of the
> ResultSet has been retrieved or the ResultSet has been closed. In
> advanced cases, a single statement may return multiple results as well
> as output parameter values. In these cases the commit occurs when all
> results and output parameter values have been retrieved.
> Parameters:
> autoCommit - true enables auto-commit; false disables auto-commit.
> Throws:
> SQLException - if a database access error occurs
>
> HTH,
>
>
> 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
> > Keith Kwiatek
> > Sent: Wednesday, April 17, 2002 12:17 PM
> > To: Orion-Interest
> > Subject: How do you tell orion not to autocommit?
> >
> >
> > Hello,
> >
> > I am running orion with a datasource and  some jsp's with
> > some jdbc beans. When I insert/update/delete it seems to be
> > set to autocommit. How do I tell orion not to autocommit?
> >
> > Thanks,
> > Keith
> >
> >
> >
>
>
>





RE: Questions about commits and orion datasource connection pooling....

2002-05-21 Thread Juan Pablo Lorandi

That's correct AFAIK, and applies to all connection pooling
schemas(JDBC, ODBC, you name it) but on most recent versions, the driver
will pool the connections itself, not Orion.

Anyhow, you got most of it right, except that another jsp page instance
may vote in a different connection. No sweat tough, you should have to
pour a lot of code to make that happen, it's called 2PC(it's a protocol)
and allows different transactions to operate as a single one(different
transactions means they may not be in the same DB/DBHost; they may even
be DB's from different vendors!).

So basically, if you're not into learning exotic protocols or
implementing exotic systems, then you're ok with Orion as is.

My 2c,

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 
> Keith Kwiatek
> Sent: Tuesday, May 21, 2002 2:00 PM
> To: Orion-Interest
> Subject: Questions about commits and orion datasource 
> connection pooling
> 
> 
> Hello,
> 
> I have some jsp's that are using orion's connection pooling.
> 
> When a jsp page opens the db connection (oracle) through the 
> connection pool, is it dedicated to that particular jsp page? 
> Another jsp couldn't issue a commit or rollback and somehome 
> impact another jsp's transactions, correct?
> 
> In other words, orion simply pre-opens the connection and 
> then hands it off to the jsp/bean/whatever for it's exclusive 
> use. Correct? When it is done with the connection, it goes 
> back to the pool right?
> 
> Thanks,
> Keith
> 
> 
> 
> 
> 
> 






Re: Ejbs classPath (out of office 5/20)

2002-05-20 Thread Jennifer Goree


I will be out of the office on Monday May 20th. 
If you have an emergency problem with the website, please contact Russell Dodds. 

thanks,
Jen





Re: FW: Using ORION versus CORBA (out of office 5/20)

2002-05-20 Thread Jennifer Goree


I will be out of the office on Monday May 20th. 
If you have an emergency problem with the website, please contact Russell Dodds. 

thanks,
Jen





Re: Ejbs classPath

2002-05-20 Thread Jorge Jimenez C

The server that is creating the EJB is acting as a client. So, it has to
know the remote and home interfaces of the EJB as any remote client.

If you expect to use the EJBs in other applications the interfaces, should
be in a shared directory (lib) if it is not the case, you should think to
put them in the jar module.

Good luck.

JJ

- Original Message -
From: "Eslam Mohamed" <[EMAIL PROTECTED]>
To: "Orion-Interest" <[EMAIL PROTECTED]>
Sent: Monday, May 20, 2002 2:48 AM
Subject: Ejbs classPath


> Hi all
> I have problem in calling remote session bean deployed on OC4J server and
lookup on it from another server deployed on another OC4J server. I succeed
in lookup the remote ejb from the caller one but when I typeCast it to the
remote interface of the Remote EJB it through classCast Exception. To solve
this problem I put both the Home&Remote Interface of the remote interface on
the default classPath of the OC4J server j2ee/home/lib so it works but I
think this is not the right way so can any one help me how to solve it and
where we can set a classpath for an appropriate EJB .
>
>





Re: Ejbs classPath (out of office 5/20)

2002-05-20 Thread Jennifer Goree


I will be out of the office on Monday May 20th. 
If you have an emergency problem with the website, please contact Russell Dodds. 

thanks,
Jen





RE: Can I write JDBC Transactions in Bean managed entityBeans? (out of office 5/20)

2002-05-20 Thread Jennifer Goree


I will be out of the office on Monday May 20th. 
If you have an emergency problem with the website, please contact Russell Dodds. 

thanks,
Jen





RE: Can I write JDBC Transactions in Bean managed entity Beans?

2002-05-19 Thread Juan Pablo Lorandi

Yes, there is. Since you're not using transactions that are independent
of the app server(and thus the app server doesn't know about the
transaction at all, and isn't able to vote in it) the app server built
in transactional support is not functional. An example:

EJB A: a SLSB
EJB B: Your Entity Bean, PK=1.
EJB C: Your Entity Bean, PK=2.

If A, within a method, calls and modifies B and then C, and the calls on
C produce an exception, B will be commited to the database.

Where:

EJB A: a SLSB
EJB B: A correct Entity Bean, PK=1.
EJB C: A correct Entity Bean, PK=2.

If A, within a method, calls and modifies B and then C, and the calls on
C produce an exception, the transaction will be rolled back.

You should use either CMT or BMT in your BMP Entity Beans. Simply not
coding transactions should do, the container would automatically handle
the transactions (that's CMT).

HTH,

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: A mailing list for Enterprise JavaBeans development 
> [mailto:[EMAIL PROTECTED]] On Behalf Of Murali Mohan
> Sent: Saturday, May 18, 2002 8:28 AM
> To: [EMAIL PROTECTED]
> Subject: Can I write JDBC Transactions in Bean managed entity Beans?
> 
> 
> Hai,
> 
> According to spec we must use declarative transactions for 
> entity beans. But I used JDBC transactions. It works fine.
> 
> Is there any thing wrong?
> 
> --Murali
> 
> ==
> =
> To unsubscribe, send email to [EMAIL PROTECTED] and 
> include in the body of the message "signoff EJB-INTEREST".  
> For general help, send email to [EMAIL PROTECTED] and 
> include in the body of the message "help".
> 
> 






Re: Sharing datasource

2002-05-19 Thread Hani Suleiman

Erm, nope.

Orion has EJB clustering, it's just not documented, although I hear a
document about it is coming out soon...ish...

On 5/19/02 9:50 PM, "Scott Farquhar" <[EMAIL PROTECTED]> wrote:

> Yes, that is true.
> 
> At the moment, there is no EJB clustering in Orion, although it may
> appear in future versions.
> 
> Cheers,
> Scott
> 
> Linus Larsen wrote:
>> If the same EJB application is running on lets say two servers, and are
>> sharing the same datasource. Do I have to configure the orion-ejb-
>> jar.xml and set the exclusive-write-access="false" for every entity
>> deployment (on both servers) sharing the datasource,  to avoid
>> inconsistency in the EJBCaching?
>> 
>> regards
>> 
>> /linus
>> 
>> 
> 





Re: Sharing datasource

2002-05-19 Thread Scott Farquhar

Yes, that is true.

At the moment, there is no EJB clustering in Orion, although it may 
appear in future versions.

Cheers,
Scott

Linus Larsen wrote:
> If the same EJB application is running on lets say two servers, and are 
> sharing the same datasource. Do I have to configure the orion-ejb-
> jar.xml and set the exclusive-write-access="false" for every entity 
> deployment (on both servers) sharing the datasource,  to avoid 
> inconsistency in the EJBCaching?
> 
> regards
> 
> /linus
> 
> 


-- 
Scott Farquhar :: [EMAIL PROTECTED]

Atlassian :: http://www.atlassian.com
  Supporting YOUR J2EE World





RE: Any advanced CMP mapping for int[] via java.sql.Array to a VARRAY col type?

2002-05-19 Thread Juan Pablo Lorandi

I think there's a PersistanceManager interface for this, but I remember
it not being configurable from files, that is, it seems it's not fully
implemented yet. I guess you'll have to resort to BMP for such complex
mappings.

My 2c,

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 
> Andy Parkman
> Sent: Sunday, May 19, 2002 6:36 PM
> To: Orion-Interest
> Subject: Any advanced CMP mapping for int[] via 
> java.sql.Array to a VARRAY col type?
> 
> 
> Can anyone point me in the direction of some more detailed 
> information on advanced CMP mapping techniques?
> 
> I was wondering if a CMP mapping can be found which would 
> generate JDBC code to bind a field variable defined as an 
> array of integer via a java.sql.Array type to a database 
> column defined as a "varray of number" under Oracle?
> 
> I have been experimenting a little in and around this area 
> but am not finding much on this in the Orion documentation 
> and am having difficulty applying what I can find to my 
> needs. My searches on the mailing list archives also don't 
> find anything on java.sql.Array or much relevant traffic on 
> other terms such as 'persistence-type'.
> 
> Is there an API which allows users to provide enhancements to 
> the facilities provided by the current CMP implementation? If 
> so am I missing some more detailed documentation or useful 
> examples on this?
> 
> Regards,
> Andy Parkman
> 
> 
> 
> 
> 






Re: Sessions and W98 + IE

2002-05-19 Thread Stephen Davidson

Hi David.
The major errors I have come accross in IE (all tested version of 4, 5, & 6) was that 
the 56bit encryption package was completely broken in IE.  The workaround was to force 
128bit, or no encryption.
I am not aware of any other issues.

-Steve

David Tunkrans wrote:

 > Hi
 >
 >
 >
 > Im having problems with "broken" sessions for w98 + IE browsers. Does
 > anyone know of errors in the Orion sessiontracking mechanism?
 >
 >
 >
 > /David
 >






Re: how to set exclusive-write-access="true" in orion-ejb-jar.xml

2002-05-17 Thread David Plante

I think orion  finds out your database doest suport this feature or its
not yet implemented for this db in orion. Exclusive-write-access default
is set to true, so i beleive that orion resets it cause its not
available.Otherwise be sure you remove orion-ejb-jar.xml before you
deploy and make sure the one you deploy in your ejb.jar META-INF is
valid . At deployment you should see a message about orion copying the
orion-ejb-jar.

I hope this helps 

David Plante

On Fri, 2002-05-17 at 15:58, [EMAIL PROTECTED] wrote:
> Hi all,
> 
> can anybody help to set exclusive-write-access="true" in orion-ejb-jar.xml.
> Enviroment: oc4j 9.0.2.0.0
> 
> My problem is that container reset it to "false" during deployment (other
> attributes are set without any problem)
> 
> I tried 
> - to put orion-ejb-jar.xml in my application jar-file and to delete my
> application catalog in application-deployment catalog
> - to change orion-ejb-jar.xml genereted by container
> - all together
> nothing works
> 
> Regards
> 
> ITC-M, SIS Company
> Mr. Valeri Kireitchik 
> Head of Application Software Department 
> 
> Fujitsu Siemens Computers Qualified Partner 
> Microsoft Certified Partner 
> Oracle Partner Program Member 
> 
> Surganova 24-406 
> 220012 Minsk 
> Republic of Belarus 
> ph.: +375 (17) 262 50 23 
> fax: +375 (17) 262 55 91 
>  
> 
> 






Re: session management

2002-05-17 Thread Curt Smith


> earlier i did this with loadserver, that was working well, but the
> problem in that , if the server where loadbalancer is running goes
> down , my application will be killed.


I agree that loadbalancer.jar is a great concern!

No one's told me that a product like the Cisco Redirector would'nt work.

What's wrong with DNS round robin is that it does not provide session
sticky routing of a client to the same box.  Redirector and most other
true load balancer boxes do this.

Cisco Redirector and it's equivelants are in theory more reliable than
a CPU/Box running java and loadbalancer.jar.

curt


-- 

Curt Smith
[EMAIL PROTECTED]
(w) 404-463-0973
(h) 404-294-6686







RE: help with trans. synchronization

2002-05-17 Thread Chris Francis

Don't know if this will help, but it looks like the problem starts
with the execution of a finder query. So maybe review the sql you've set
for this query in orion-ejb-jar.xml.
Or maybe the query can return more than one row and you have it set to
return
a single entity instance in the ejb's home interface?

-Original Message-
From: Waller Anne [mailto:[EMAIL PROTECTED]]
Sent: 17 May 2002 02:35
To: Orion-Interest
Subject: help with trans. synchronization



  Can anyone give some pointers or have come across a similar problem ?

 We are currently in development and in the middle of UAT testing. The
application runs on Orion1.5.2 connecting to multiple datasources on the one
server.

  A recent test raised the following exception

java.lang.ArrayIndexOutOfBoundsException at
com.evermind.server.ApplicationServerTransactionSynchrization.getConnection(
Unknown source) .
at ChangeHome_EntityHomeWrapper267.findActive(ChangeHome_EntityHomeWrapper)
 

  The application ues stateless session beans and CMP entity beans. There
are 3 queuelisteners for transactions.

   
  Have reviewed the orion-ejb-jar and the ejb-jar for the
transaction-attributes but am still none the wiser.

  Has anyone got any suggestions on tracking this down, we have put the
profiler from HP called HPJMeter on and run with -Xprof.

  Perhaps we have too much information now but we are too inexperienced to
be able to know what the next step should be in tracking this down. Would
appreciate any advise on this one? 


  regards,

Anne.
 



 


**
This e-mail is confidential and for the sole use of the intended 
recipient(s).  If you are not the intended recipient, you are not 
authorised to disclose, use, distribute or in any other way make 
use of the information contained in it, and such activities are 
prohibited.  If you have received this e-mail in error, please 
notify the sender by reply e-mail, delete the document and destroy 
all copies of the original message.
**




Re: session management

2002-05-17 Thread Mike Shoemaker



Doesn't clustering solve this problem?
 
Mike

  - Original Message - 
  From: 
  kumarpal 
  jain 
  To: Orion-Interest 
  Sent: Friday, May 17, 2002 2:15 AM
  Subject: session management
  
  Hello all
   
  I am running my application on three servers. All 
  are live servers . I am using dns round robin to acess them.
  Now my problem or issue is that I want to 
  have session of each end user on each server.. so if one server goes down the 
  end user can process to other servers with the same session.
  So i guess this may be possible with RMI, and I 
  also saw one xml.. rmi.xml in config folder . 
   
  can anyone suggest me some clue about this , how 
  i can achieve this goal. Does orion supports some in built help for 
  RMI.
   
  earlier i did this with loadserver, that was 
  working well, but the problem in that , if the server where loadbalancer is 
  running goes down , my application will be killed.
   
   
  Thanks
   
  KUmar


RE: Can't find servlet

2002-05-16 Thread Ian Roughley

Do you have the web application configured in the server.xml and
default-web-site.xml filers in the config directory, and using the correct
context/dir?

/Ian

>From Down & Around, Inc.
Innovative IT solutions
Software Architecture * Design * Development

web:www.fdar.com
email:  [EMAIL PROTECTED]
phone:  617.821.5430


-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]On Behalf Of Krishnan, Sri
Sent: Wednesday, May 15, 2002 7:20 PM
To: Orion-Interest
Subject: Can't find servlet


Hi,
I am registering the servlet in web.xml even then, I am getting an error
saying that the servlet not found. do I need to register the servlet
anywhere else ?
this may be trivial but , could not figure out.

Thanks
Sri







Re: Cluster configuration

2002-05-16 Thread Scott Farquhar

This document will be of help:

   http://kb.atlassian.com/content/orion/docs/http-clustering.html

Cheers,
Scott

sbpodila wrote:
> Hi all,
> 
> Can anybody explain the procedure for cluster configuration in Orion 
> server for web applications.
> 


-- 
Scott Farquhar :: [EMAIL PROTECTED]

Atlassian :: http://www.atlassian.com
  Supporting YOUR J2EE World





RE: Begging for help

2002-05-15 Thread Satter, Rabi

Can you point a browser at the url and get the wsdl? 

Are you trying to access the EJB directly? If so you need pro which can talk
to stateless session beans. 

Probably doesn't matter but you might try putting the jar file in the
orion/lib directory.

Hopes this helps.

-Original Message-
From: Jon Bricker [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, May 15, 2002 7:56 AM
To: Orion-Interest
Subject: Begging for help


I'm begging for some help on this set up.  I'm using Glue Standard for using
SOAP calls.  Anyone that has used Glue with Orion before please help me out.

I've gotten the orion example from glue working. Now I'm trying to do
something
practical. I've set up an app on Orion. It had to be a separate app because
it
will be using EJBs that are already deployed.

So in server.xml I have



catd is the application with the EJB I need. I need this to have the apps
share EJBs.

I have the GLUE-STD.jar in my WEB-INF/lib

my web.xml looks like this:




 http 
 electric.server.http.ServletServer 


 electric.commands 
 /orion-files/glue/commands.xml 


 1 



 http 
 /* 



ejb/CanDEDataMgr
Session
com.lilly.javaatg.catd.ejb.CanDEDataMgrHome
com.lilly.javaatg.catd.ejb.CanDEDataMgr




It is the same as the webapps/glue web.xml except for the file location of
the
commands.xml and the reference to my EJB.

My commands.xml looks like this:

 electric.registry.Registry.publishInstance( "urn:cande", 
"com.lilly.javaatg.catd.cande.DataLoadImpl" ) 


I wrote a test program to try this out. The main calls look like this:

String url = 
"http://duke1.d51.lilly.com:8088/cande/urn:cande.wsdl";;

RemoteDataLoader dataLoad = (RemoteDataLoader) 
Registry.bind( url, RemoteDataLoader.class );
boolean answer = dataLoad.isUserValid(userID,password);

When I run it I get this error:
could not bind to path: 
http://duke1.d51.lilly.com:8088/cande/urn:cande.wsdl
Exception:
electric.registry.RegistryException: could not bind to path: 
http://duke1.d51.lilly.com:8088/cande/urn:cande.wsdl
at electric.net.soap.SOAPRegistry.bind(Unknown Source)
at electric.registry.compound.CompoundRegistry.bind(Unknown Source)
at electric.registry.Registry.bind(Unknown Source)
at electric.registry.Registry.bind(Unknown Source)
at ejbtest.main(ejbtest.java:78)
Caused by: java.io.IOException: HTTP GET error: 
http://duke1.d51.lilly.com:8088/cande/urn:cande.wsdl Internal Server 
Error. Response code: 500: unable to load file 
http://duke1.d51.lilly.com:8088/cande/urn:cande.wsdl

I've tried generating the wsdl and pointing the console to it but that does
not
work. 

What am I missing to make this work? 


=
Jon Bricker

"You should never settle for the lesser of two Weasels."

__
Do You Yahoo!?
LAUNCH - Your Yahoo! Music Experience
http://launch.yahoo.com




RE: ClassCastException in generated code

2002-05-15 Thread Greg Davis

Did you change your bean recently? It sounds like your remotes are out of
date. Ensure you remotes on the client side match up properly.  Also ensure
any Serialiazable classes you pass via method calls are not updated in only
the client of server.  This error normally happens when you either try to
cast the wrong object (I.e. in Collections this can happen easily if you are
not careful) and serialized objects (when the new class doesn't match up to
the old one).  These will compile fine, but break during runtime.

Without any other information, this is all I can add. 

Hope this helps.

Greg

-Original Message-
From: Tim Joyce [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, May 15, 2002 4:16 AM
To: Orion-Interest
Subject: ClassCastException in generated code


Hi,

I am getting a rather nasty ClassCastException when i try and remove a
many-to-many join (implemented like the MovieDatabase example). My question
is how do i go about debugging this? Is it possible to get access to the
generated .java files?

Thanks in advance for any advice

stack traces follow (sorry)

cheers

timj


com.evermind.server.rmi.OrionRemoteException: java.lang.ClassCastException:
ProductJoin_EntityBeanWrapper853
at com.evermind.server.ejb.EJBUtils.getUserException(.:199)
at
EntityProduct_EntityBeanWrapper838.removeBrand(EntityProduct_EntityBeanWrapp
er838.java:1805)
at com.mywds.ejb.session.LightWeightBean.updateProduct(Unknown Source)
at
LightWeight_StatelessSessionBeanWrapper834.updateProduct(LightWeight_Statele
ssSessionBeanWrapper834.java:4066)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39
)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl
.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at org.apache.axis.providers.java.RPCProvider.invokeMethod(Unknown Source)
at org.apache.axis.providers.java.RPCProvider.processMessage(Unknown Source)
at org.apache.axis.providers.java.JavaProvider.invoke(Unknown Source)
at org.apache.axis.strategies.InvocationStrategy.visit(Unknown Source)
at org.apache.axis.SimpleChain.doVisiting(Unknown Source)
at org.apache.axis.SimpleChain.invoke(Unknown Source)
at org.apache.axis.server.AxisServer.invoke(Unknown Source)
at org.apache.axis.transport.http.AxisServlet.doPost(Unknown Source)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:211)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:309)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:336)
at com.evermind._bxb._crd(.:501)
at com.evermind._bxb._ukb(.:170)
at com.evermind._cn._uab(.:576)
at com.evermind._cn._fm(.:189)
at com.evermind._bs.run(.:62)

Nested exception is:
java.lang.ClassCastException: ProductJoin_EntityBeanWrapper853
at
ProductJoinHome_EntityHomeWrapper1381.remove(ProductJoinHome_EntityHomeWrapp
er1381.java:16)
at com.mywds.ejb.entity.EntityProductBean.removeBrand(Unknown Source)
at
EntityProduct_EntityBeanWrapper838.removeBrand(EntityProduct_EntityBeanWrapp
er838.java:1791)
at com.mywds.ejb.session.LightWeightBean.updateProduct(Unknown Source)
at
LightWeight_StatelessSessionBeanWrapper834.updateProduct(LightWeight_Statele
ssSessionBeanWrapper834.java:4066)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39
)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl
.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at org.apache.axis.providers.java.RPCProvider.invokeMethod(Unknown Source)
at org.apache.axis.providers.java.RPCProvider.processMessage(Unknown Source)
at org.apache.axis.providers.java.JavaProvider.invoke(Unknown Source)
at org.apache.axis.strategies.InvocationStrategy.visit(Unknown Source)
at org.apache.axis.SimpleChain.doVisiting(Unknown Source)
at org.apache.axis.SimpleChain.invoke(Unknown Source)
at org.apache.axis.server.AxisServer.invoke(Unknown Source)
at org.apache.axis.transport.http.AxisServlet.doPost(Unknown Source)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:211)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:309)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:336)
at com.evermind._bxb._crd(.:501)
at com.evermind._bxb._ukb(.:170)
at com.evermind._cn._uab(.:576)
at com.evermind._cn._fm(.:189)
at com.evermind._bs.run(.:62)  




RE: Orion Client jar files for remote application client

2002-05-14 Thread The elephantwalker

Pedro,

This is the minimum list:

orion.jar
activation.jar
jndi.jar
ejb.jar

Its also a good idea to include a jar with the home and remote interfaces of
the ejb's you will be using.

With kind regards,

the elephantwalker
www.elephantwalker.com


-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]On Behalf Of Pedro Garcia
Lopez
Sent: Tuesday, May 14, 2002 1:13 PM
To: Orion-Interest
Subject: Orion Client jar files for remote application client


Hi all,

Unlike many other application servers like jboss, Orion does not
officially provide a list of jar files required to run remote Java
Application clients. This enforces developers to include a lot of files
found in the Orion root directory.

Are there any plans to provide a minimum set of jar files required for
remote applicacion clients ? orion-client.jar, orion-jndi.jar ...


Thank you in advance

Pedro






Re: Orion and JSP

2002-05-14 Thread Joseph Ottinger

Well, you haven't said what Orion is telling you, but typically the first
thing you do is follow the installation instructions, every step of
them, which includes copying tools.jar to $ORION. That's alkl you have to
do. One wonders why the three steps are as complicated as they are.

-
Joseph B. Ottinger [EMAIL PROTECTED]
http://enigmastation.comIT Consultant

On Mon, 13 May 2002, Krishnan, Sri wrote:

> Hi,
>   I am trying to use jsp s with Orion. Can anyone let me know how do I get
> the JSP compiled and displayed on the web browser ?. I know that OC4J
> compiles the JSP, just could not figure out how to get the orion do that.
>
> Thanks alot for your help
> Sri
>
>





RE: Dynamic Proxies for remote interface wrapper?

2002-05-14 Thread Justin Wood

Implement clases conforming to the EJBUserManager API and overide the permission 
checking methods with logic that does that kind of checking ...  then deploy like so: 
http://www.orionsupport.com/articles/ejbusermanager.html


Justin


-Original Message-
From: Pletka, John [mailto:[EMAIL PROTECTED]]
Sent: 13 May 2002 09:25 PM
To: Orion-Interest
Subject: Dynamic Proxies for remote interface wrapper?


I'm trying to integrate a third-party security product that allows rules
like "can only call methodX on objectY between 9:00 am and 5:00 pm".  It
ties into Weblogic and WebSphere cleanly, but does not have a way to get
into orion.  What I would like to be able to do is either:
1) setup my ejb-jar.xml file to point to a Dynamic Proxy class that
could do the security checks before forwarding the call on to the real class
2) or somehow override the wrappers that orion generates with my own
code.  

Does anyone know of a way to do this?  I can see the java code orion creates
for the wrappers (RemoteInterfaceName_StatelessSessionBeanWrapperXXX.java.)
That would be a perfect place to place the code if it was allowed.  It looks
like it uses a class "com.evermind.server.RuntimeSecurityRole" to test
whether the call is allowed or not.  I could probably hack this class and
override the logic, but I would think there would be a legitimate way of
accomplishing this.





Re: example of data-source.xml for Oracle 9i needed

2002-05-13 Thread gottfried

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On Mon, 13 May 2002, Matthew E. Porter wrote:

> Darren:
>   Does this configuration provide any sort of connection pooling?

nop, the pooled-location is missing. we have setup a datasource
like this and i hope this is the correct way. sorry, but this
example is for oracle 8.1.7. i think this should also work for
oracle 9 but i am not sure.




- -- 
cu,
goofy

-BEGIN PGP SIGNATURE-
Version: GnuPG v1.0.4 (GNU/Linux)
Comment: pgpenvelope 2.10.2 - http://pgpenvelope.sourceforge.net/

iD8DBQE84Jg1rMda10jkyDYRAqqFAKCyE+W8OQj8upIn1oSMee9NGfSDZQCglOhw
ErgUx741TU2GLU2xRSw823I=
=B1b9
-END PGP SIGNATURE-





Re: testing

2002-05-13 Thread sudha parimala
 
  David Tunkrans <[EMAIL PROTECTED]> wrote: 




What are u testing for
  
   Yahoo! Autos - everything you wanted to know about cars and bikes 


RE: Dynamic Proxies for remote interface wrapper?

2002-05-13 Thread The elephantwalker

The orion-ejb-jar has the wrapper class noted. You can replace this class
with your own, as long as you forward to the wrapper.

With kind regards,

the elephantwalker
www.elephantwalker.com


-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]On Behalf Of Pletka, John
Sent: Monday, May 13, 2002 12:25 PM
To: Orion-Interest
Subject: Dynamic Proxies for remote interface wrapper?


I'm trying to integrate a third-party security product that allows rules
like "can only call methodX on objectY between 9:00 am and 5:00 pm".  It
ties into Weblogic and WebSphere cleanly, but does not have a way to get
into orion.  What I would like to be able to do is either:
1) setup my ejb-jar.xml file to point to a Dynamic Proxy class that
could do the security checks before forwarding the call on to the real class
2) or somehow override the wrappers that orion generates with my own
code.

Does anyone know of a way to do this?  I can see the java code orion creates
for the wrappers (RemoteInterfaceName_StatelessSessionBeanWrapperXXX.java.)
That would be a perfect place to place the code if it was allowed.  It looks
like it uses a class "com.evermind.server.RuntimeSecurityRole" to test
whether the call is allowed or not.  I could probably hack this class and
override the logic, but I would think there would be a legitimate way of
accomplishing this.





Re: RV: Some questions about orion-ejb-xml.jar

2002-05-13 Thread Scott Farquhar

The correct place is to place them in the META-INF directory, next to 
your other deployment files.  It *used* to be the orion directory, but 
that was changed a long time ago.

This tutorial should help you understand the orion xml files more:

   http://kb.atlassian.com/content/atlassian/howto/orionxml.jsp

Cheers,
Scott

Andrés Escudero Apesteguía wrote:
> 
> I've been testing Orion the last three weeks. In Orion web, I've read to 
> put orion-ejb-jar.xml under orion directory for an EJB. In some other 
> sites, this file must reside under META-INF directory. Which is the 
> correct place to put orion-ejb-jar.xml?
> 
>  
> 
> I've assumed that the correct answer to my first question is orion. When 
> Orion deploys my application, it respects some of the parameters I've 
> written, but it deletes some of them. Can anyone help me on this problem?
> 
>  
> 
> And the last question. Is there any relation between orion-ejb-jar.xml, 
> ejb-jar.xml (under META-INF), and the parameters location and name of an 
> EJB. I've tried to put a location which was different to its ejb name 
> and Orion has not noticed the change.
> 
>  
> 
> Thank in advance,
> 
> Andrés.
> 
>  
> 
>  
> 
>  
> 
> 
> 
> Andrés Escudero Apesteguía
> TB Solutions
> Desarrollo eBanking
> [EMAIL PROTECTED]
> tlf: +34 948 173 319
> fax: +34 948 172 235
> web: http://www.tb-solutions.com 
> 
> 


-- 
Scott Farquhar :: [EMAIL PROTECTED]

Atlassian :: http://www.atlassian.com
  Supporting YOUR J2EE World





Re: Orion and JSP

2002-05-13 Thread Corey Graham

It's simple if you have Orion running successfully.

1.  In you orion's config directory you need to set up a web-app. 
 Usually you use  "default-web-site.xml" to do this.  For instance add a 
line like:



This holds your JSPs.

2.  Then you can set up an application in your "server.xml" where all of 
your java classes go,  (you may not need this just to get JSP's to 
work-I'm not sure):



3.  In the location you set up for your web-app in 
"default-web-site.xml" you need to put a "WEB-INF" directory that has a 
file called "web.xml".  It doesn't have to be very complicated:


http://java.sun.com/j2ee/dtds/web-app_2_3.dtd";>


  Online Banking Application
  Online Banking Application

  
index.jsp
  


4.  Finally, you must have a "META-INF" directory where you specified 
your application in step 2, and it has to have a file called 
"application.xml":


http://java.sun.com/j2ee/dtds/application_1_2.dtd";>



  Online Banking Application

  

  /home/user/dev/pages
  /

  

5.  Then just use your Orion default URL + the Root you specified 
earlier in step 1 in the form 
"http://:/online-banking" (if you use default 
port 80 then don't put the ":" and port number):

http://banking_server.com:8080/online-banking

it should load the "index.jsp" you specified in "web.xml" as a default 
home page!  Now just add pages, and change the URL to include a new page:

http://banking_server.com:8080/online-banking/CheckingAccount.jsp

It should load that new page.

Good luck,

Corey


Krishnan, Sri wrote:

>Hi,
>  I am trying to use jsp s with Orion. Can anyone let me know how do I get
>the JSP compiled and displayed on the web browser ?. I know that OC4J
>compiles the JSP, just could not figure out how to get the orion do that.
>
>Thanks alot for your help
>Sri
>

-- 
Corey J. Graham - Software Developer
Keystroke Technology Solutions
1511 3rd Ave.  Suite 700, Seattle, Wa 98101
(206) 576-4557







Re: example of data-source.xml for Oracle 9i needed

2002-05-13 Thread Matthew E. Porter

Darren:
  Does this configuration provide any sort of connection pooling?


-matthew

On Mon, 13 May 2002, Darren Senel wrote:

> This is what I use:
>
>  name="OracleDS"
> location="jdbc/OracleCoreDS"
> xa-location="jdbc/xa/OracleXADS"
> ejb-location="jdbc/OracleDS"
> connection-driver="oracle.jdbc.driver.OracleDriver"
> username="dsenel"
> password="mypassword"
> url="jdbc:oracle:thin:@172.25.10.132:1521:mydb"
> inactivity-timeout="30"
> connection-retry-interval="1" />
>
> >>> [EMAIL PROTECTED] 05/13/02 03:51AM >>>
> Hi all,
> may somebody provide me with example of of data-source.xml for Oracle
> 9i
> that supports CMT (container managed transactions) for Orion 1.5.2 ?
>
> Thank you in advance
>
> ITC-M, SIS Company
> Mr. Valeri Kireitchik
> Head of Application Software Department
>
> Fujitsu Siemens Computers Qualified Partner
> Microsoft Certified Partner
> Oracle Partner Program Member
>
> Surganova 24-406
> 220012 Minsk
> Republic of Belarus
> ph.: +375 (17) 262 50 23
> fax: +375 (17) 262 55 91
> 
>
>
>
>





Re: example of data-source.xml for Oracle 9i needed

2002-05-13 Thread Darren Senel

This is what I use:

 

>>> [EMAIL PROTECTED] 05/13/02 03:51AM >>>
Hi all, 
may somebody provide me with example of of data-source.xml for Oracle
9i
that supports CMT (container managed transactions) for Orion 1.5.2 ?

Thank you in advance

ITC-M, SIS Company
Mr. Valeri Kireitchik 
Head of Application Software Department 

Fujitsu Siemens Computers Qualified Partner 
Microsoft Certified Partner 
Oracle Partner Program Member 

Surganova 24-406 
220012 Minsk 
Republic of Belarus 
ph.: +375 (17) 262 50 23 
fax: +375 (17) 262 55 91 
 






RE: Linux + Orion + IBM DB2

2002-05-12 Thread The elephantwalker

Denis,

Take a look at this message, it may help you. Specifically, you need to use
a db2.xml schema in your config/data-base-schemas directory, and refer to
this schema in your data-sources.xml file. I would also test out your
network configuration by using a jdbc client (netbeans, for example, has an
excellent client for jdbc in the netbeans ide).

http://www.mail-archive.com/orion-interest%40orionserver.com/msg16991.html

With kind regards,

the elephantwalker
www.elephantwalker.com


-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]On Behalf Of Denis Litvinov
Sent: Saturday, May 11, 2002 9:53 PM
To: Orion-Interest
Subject: Linux + Orion + IBM DB2


Hello!
Can anyone describe in details a running configuration of the subject?
I try to deploy an application which works on Windows perfectly. But on
Linux Orion sometimes can't start up normally (it seems a deadlock),
sometimes it gives out errors like SQL10007N (DB2) etc.
I think the problem is in configuration, but don't know how to configure
properly. The application with HSQL works fine.

Denis







RE: Please Unsubscribe me!!!!

2002-05-03 Thread Krishnan, Sri

Hi
  Could somebody point to the right place to find
about the tag libs that orion provides for the Database 
hookup

Thanks
Sri

-Original Message-
From: Krishnan, Sri 
Sent: Monday, April 29, 2002 11:15 AM
To: Orion-Interest
Subject: Please Unsubscribe me


Please Unsubscribe me




Re: Starting Orion as a service in Solaris 8

2002-05-03 Thread Leon John


put the port also

>From: "Vu Le Hung" <[EMAIL PROTECTED]>
>Reply-To: Orion-Interest <[EMAIL PROTECTED]>
>To: Orion-Interest <[EMAIL PROTECTED]>
>Subject: Starting Orion as a service in Solaris 8
>Date: Fri, 3 May 2002 14:44:14 +0700
>
>Hi all,
>I've been trying to start Orion as a service in SunOS 5.8 as follow but
>it failed:
>   - Create an executable script file /etc/rc.d/init.d/orion
>containing following lines
>   #!/bin/sh
>   #Change to orion directory
>   cd /usr/local/orion
>   #Start orion application server
>   java -jar orion.jar
>After booting up the system, I can goto Orion welcome page by typing
>http://myhost/ but I cannot get any JSP pages displayed properly.
>Any ideas ? Maybe the servlet engine did not start ?
>Thanks for your help in advance.
>
>Yours,
>
>Vu
>
>
>
>
>
>
>
>
>


_
Join the world’s largest e-mail service with MSN Hotmail.
http://www.hotmail.com





Re: Starting Orion as a service in Solaris 8

2002-05-03 Thread Johan Fredriksson

Did you start the service as root? And did you remember to copy tools.jar to
the /usr/local/orion ?

- Original Message -
From: "Vu Le Hung" <[EMAIL PROTECTED]>
To: "Orion-Interest" <[EMAIL PROTECTED]>
Sent: Friday, May 03, 2002 9:44 AM
Subject: Starting Orion as a service in Solaris 8


> Hi all,
> I've been trying to start Orion as a service in SunOS 5.8 as follow but
> it failed:
>   - Create an executable script file /etc/rc.d/init.d/orion
> containing following lines
> #!/bin/sh
> #Change to orion directory
> cd /usr/local/orion
> #Start orion application server
> java -jar orion.jar
> After booting up the system, I can goto Orion welcome page by typing
> http://myhost/ but I cannot get any JSP pages displayed properly.
> Any ideas ? Maybe the servlet engine did not start ?
> Thanks for your help in advance.
>
> Yours,
>
> Vu
>
>
>
>
>
>
>
>
>
>





Re: "Variable contained illegal space" Error on CMP Bean deploy????

2002-05-02 Thread Mike Shoemaker

This was due to having a custom primary key class and specifying both
 and  in the ejb-jar.xml

Once I removed the , it deployed without a problem.  

Mike
- Original Message - 
From: "Mike Shoemaker" <[EMAIL PROTECTED]>
To: "Orion-Interest" <[EMAIL PROTECTED]>
Sent: Thursday, May 02, 2002 8:19 AM
Subject: "Variable contained illegal space" Error on CMP Bean deploy


> Anyone run into this error?  What does it mean?  
> 
> Thanks
> Mike
> 
> 





RE: Unsubscription and autoreplies

2002-05-02 Thread Linda Lott

NEITHER ONE OF THOSE WORK!!!  I HAVE BEEN TRYING FOR WEEKS TO GET OFF THIS
LIST!

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]On Behalf Of Magnus Rydin
Sent: Thursday, May 02, 2002 12:30 AM
To: Orion-Interest
Subject: Unsubscription and autoreplies


Please use the unsubscribe function at our site for unsubscription or
send a mail to [EMAIL PROTECTED] with a body of
"unsubscribe" to unsubscribe, do not bother the readers of this list
with unsubscribe requests.

Please turn off auto-reply functionality for messages sent from this
list if you are using your mail-clients auto-reply functionality. There
is no standard header to identify an auto-reply by, and therefore its
hard for us to scan for such messages successfully (besided the varity
of words used in subject by different clients, there is also varity
amongst different locale versions of these clients and so on).

With regards,
Magnus Rydin







Re: "Variable contained illegal space" Error on CMP Bean deploy????

2002-05-02 Thread Ray Harrison
 Mike -
I've never come across this error, but perhaps if you provide more information (maybe your ejb-jar.xml) we can take a look.
 
Cheers
Ray
  Mike Shoemaker <[EMAIL PROTECTED]> wrote: 
Anyone run into this error? What does it mean? ThanksMikeDo You Yahoo!?
Yahoo! Health - your guide to health and wellness

Re: what is LDAP ???

2002-05-02 Thread Giuseppe Galli

a tutorial
http://java.sun.com/products/jndi/tutorial/ldap/models/v2.html

and a ldap programming in Java
http://developer.java.sun.com/developer/Books/ldap/

HTH
Pino

At 16.37 02/05/2002, gusl wrote:
>Hi all,
>What is LDAP ??? How to use iplanet directory server ???
>Who know some articles or links about that ???





RE: how to shutdown orion app server?

2002-05-02 Thread Michael C. Han



You 
can shut it down by binding the the 
ApplicationServerAdministrator.
 
/* * 
OrionServerAdmin.java * * Created on May 1, 2002, 10:55 
PM */
 
package 
com.objectparadigms.util.admin;
 
import 
com.objectparadigms.util.exception.InitializationException;
 
import 
com.evermind.server.administration.ApplicationServerAdministrator;import 
java.rmi.RemoteException;import java.util.Arrays;import 
java.util.List;import java.util.Properties;import 
javax.naming.Context;import javax.naming.InitialContext;import 
javax.rmi.PortableRemoteObject;
 
/** * * @author  Michael C. 
Han * @version $Revision: 1.1 $ */public class 
OrionServerAdmin {
 
    private static final String 
_ORION_CTX_FACTORY =     
"com.evermind.server.rmi.RMIInitialContextFactory";    
private ApplicationServerAdministrator _admin;    
    private static final String _HOST_PARAM = 
"-h";    private static final String _PORT_PARAM = 
"-p";    private static final String _USERNAME_PARAM = 
"-u";    private static final String _PASSWORD_PARAM = 
"-pwd";    private static final String _ACTION_PARAM = 
"-action";    private static final String _STOP_ACTION = 
"stop";    private static final String _RESTART_ACTION = 
"restart";        private static String 
_getParam(String paramKey, List paramsList) 
{    int index = 
paramsList.indexOf(paramKey);    if 
(index == -1) 
{    
showUsage();    
}    return 
(String)paramsList.get(index + 1);    }    
    private static void showUsage() 
{    System.out.println("Usage: 
OrionServerAdmin -h  " + 
   
"-p  -u  -pwd  " 
+   
" -action ");    
System.exit(1);    }    
    public static final void main(String[] args) 
{    if (args.length != 10) 
{    
showUsage();    
}    List argsList = 
Arrays.asList(args);    String host = 
_getParam(_HOST_PARAM, argsList);    
String port = _getParam(_PORT_PARAM, 
argsList);    String userName = 
_getParam(_USERNAME_PARAM, 
argsList);    String password = 
_getParam(_PASSWORD_PARAM, 
argsList);    String action = 
_getParam(_ACTION_PARAM, argsList);
 
    try 
{    
OrionServerAdmin svrAdmin = 
    
new OrionServerAdmin(host, port, userName, 
password);    
if (action.equals(_RESTART_ACTION)) 
{    
svrAdmin.restart();    
}    else if 
(action.equals(_STOP_ACTION)) 
{    
svrAdmin.stop();    
}    else 
{    
showUsage();    
}    
}    catch (Exception e) 
{    
e.printStackTrace();    
}    }    /** Creates new OrionServerAdmin 
*/    public OrionServerAdmin(String host, String 
port,    
String userName, String password)     throws 
InitializationException {    
Properties props = new 
Properties();    
props.setProperty(Context.INITIAL_CONTEXT_FACTORY, 
_ORION_CTX_FACTORY);    String url = 
"ormi://" + host + ":" + port;    
props.setProperty(Context.PROVIDER_URL, 
url);    
props.setProperty(Context.SECURITY_PRINCIPAL, 
userName);    
props.setProperty(Context.SECURITY_CREDENTIALS, 
password);    try 
{    Context 
initialCtx = new 
InitialContext(props);    
Object obj = 
initialCtx.lookup("java:comp/ServerAdministrator");    
_admin 
=    
(ApplicationServerAdministrator)    
PortableRemoteObject.narrow(obj, 
    
ApplicationServerAdministrator.class);    
}    catch (Exception e) 
{    throw 
new 
InitializationException(e.toString());    
}    }        public 
void stop() throws RemoteException 
{    _admin.shutdown("localhost", 
true);    }        
public void restart() throws RemoteException 
{    
_admin.restart("localhost");    }
 
}

  -Original Message-From: 
  [EMAIL PROTECTED] 
  [mailto:[EMAIL PROTECTED]]On Behalf Of 
  marsSent: Wednesday, May 01, 2002 9:02 PMTo: 
  Orion-InterestSubject: Re: how to shutdown orion app 
  server?
  use the follow command 
  killall -15 java
   
  
- Original Message - 
From: 
gusl 
To: Orion-Interest 
Sent: Sunday, April 28, 2002 11:25 
AM
Subject: how to shutdown orion app 
server?

Hi all,
    I want to know how to shutdown orion 
app server ??? Use kill ???(under 
linux)


Re: how to shutdown orion app server?

2002-05-01 Thread mars



use the follow command 
killall -15 java
 

  - Original Message - 
  From: 
  gusl 
  To: Orion-Interest 
  Sent: Sunday, April 28, 2002 11:25 
AM
  Subject: how to shutdown orion app 
  server?
  
  Hi all,
      I want to know how to shutdown orion app 
  server ??? Use kill ???(under linux)


RE: Initial context problem.

2002-05-01 Thread Alex Paransky

Not sure if the code you pasted is correct, however, you are missing a "new"
keyword in front of the InitialContext().  Also, in your second try/catch
block you are missing a call to new InitialContext().  I might be picky, but
the source code you posted is not at all the source code that you are using
(unless are you using a strange version of the Java Complier).

Can you isolate your problem into a small piece of code that works, and try
to post again?

Thanks.

-AP_
http://www.alexparansky.com
Java/J2EE Architect/Consultant
http://www.myprofiles.com/member/profile/apara_personal

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]On Behalf Of Jesper
Rasmussen
Sent: Wednesday, May 01, 2002 3:10 AM
To: Orion-Interest
Subject: Initial context problem.


Hi all,
Im trying to make an application which askes for the login and password
to connect to the application deployed on 1.5.4 orion server.

It works fine if i specify the correct login(admin). However if I uses
some wrong cridentials(admin1) i get an exception which also is fine.

HOWEVER when i try to login again, without restarting the application)
using the correct info I still get the old exception
(javax.naming.AuthenticationException: Invalid username/password for
beansApp (admin1)).

If i close the app and login again with the correct it works fine.

to me it seems like the enviroment i pass to the constructor of
InitialContext is ignored the second time.

I have tried to use close() to no avail.

Does anyone have a clue?? Thanks!

cheers
JEsper

--more or less the code that cause the bug!
server="ormi://127.0.0.1/beansApp";
login="admin1";
password="123";
env = new java.util.Hashtable();
env.put("java.naming.provider.url",server);
env.put("java.naming.factory.initial","com.evermind.server.ApplicationCl
ientInitialContextFactory");
env.put("java.naming.security.principal",login);
env.put("java.naming.security.credentials",password);
InitialContext initial;

try {
   initial = InitialContext(env);
catch(NamingException e) {
   try {
  login="admin";
  env = new java.util.Hashtable();
  env.put("java.naming.provider.url",server);

env.put("java.naming.factory.initial","com.evermind.server.ApplicationCl
ientInitialContextFactory");
  env.put("java.naming.security.principal",login);
  env.put("java.naming.security.credentials",password);
   } catch(NamingException ex) {
//ACK. chould not get here!!!
   }






RE: URGENT: Big issues with CMP 2.x and application-client !!!!

2002-05-01 Thread Ray Harrison
 Hi
For #1 below - adding the '_' for persistence names is likely due to the database schema definition in your config/database-schemas directory for your particular data source. It probably has 'password' as a disallowed field and hence will add the '_' to the field name - if you have an existing table which does in fact have the field 'password', then remove this from your disallowed field list, make the change in orion-ejb-jar.xml and restart Orion and that should take of it.
For#2 - haven't seen that one before.
Cheers
Ray
  Gavin Spurling <[EMAIL PROTECTED]> wrote: 
I believe it only does this on fields named "password" as this can be areserved word in some DBs, it will do this if its autogenerating thetables for you. You can always edit the orion-ejb-jar.xml file andchange the mapping to what suits you.-Original Message-From: [EMAIL PROTECTED][mailto:[EMAIL PROTECTED]] On Behalf Of VincentFaidherbeSent: 30 April 2002 15:12To: Orion-InterestSubject: URGENT: Big issues with CMP 2.x and application-client Hello,I'm running Orion on a SuSe Linux 7.0 with a Sun JDK 1.3.1_03. I've encountered two problems :1. When using CMP 2.x entity bean, Orion adds an underscore to the nameof some fields for the persitence-name and consequently, the generated SQL doesn't work ... Example : persistence!
-name="password_" />2. I've written n command-line client to different EJBs. If the application-client.xml bound with the client refers to an unknown remoteinterface, the JVM of orion crashes with a stack overflow error.Any idea ?-- Vincent Faidherbeicogs"Do you think C++ is lovable? Unless you're into SM (SoftwareMasochism), probably not." (JLG)Do You Yahoo!?
Yahoo! Health - your guide to health and wellness

Re: Initial context problem.

2002-05-01 Thread Scott Farquhar

This has been discussed many times on the mailing list.

env.put("dedicated.connection","true");

Also see:
http://bugzilla.orionserver.com/bugzilla/show_bug.cgi?id=738

Cheers,
Scott

Jesper Rasmussen wrote:
> Hi all,
> Im trying to make an application which askes for the login and password
> to connect to the application deployed on 1.5.4 orion server.
> 
> It works fine if i specify the correct login(admin). However if I uses
> some wrong cridentials(admin1) i get an exception which also is fine.
> 
> HOWEVER when i try to login again, without restarting the application)
> using the correct info I still get the old exception
> (javax.naming.AuthenticationException: Invalid username/password for
> beansApp (admin1)).
> 
> If i close the app and login again with the correct it works fine.
> 
> to me it seems like the enviroment i pass to the constructor of
> InitialContext is ignored the second time.
> 
> I have tried to use close() to no avail.
> 
> Does anyone have a clue?? Thanks!
> 
> cheers
> JEsper
> 
> --more or less the code that cause the bug!
> server="ormi://127.0.0.1/beansApp";
> login="admin1";
> password="123";
> env = new java.util.Hashtable();
> env.put("java.naming.provider.url",server);
> env.put("java.naming.factory.initial","com.evermind.server.ApplicationCl
> ientInitialContextFactory");
> env.put("java.naming.security.principal",login);
> env.put("java.naming.security.credentials",password);
> InitialContext initial;
> 
> try {
>initial = InitialContext(env);
> catch(NamingException e) {
>try {
>   login="admin";
>   env = new java.util.Hashtable();
>   env.put("java.naming.provider.url",server);
>  
> env.put("java.naming.factory.initial","com.evermind.server.ApplicationCl
> ientInitialContextFactory");
>   env.put("java.naming.security.principal",login);
>   env.put("java.naming.security.credentials",password);   
>} catch(NamingException ex) {
>   //ACK. chould not get here!!!
>}
> 


-- 
Scott Farquhar :: [EMAIL PROTECTED]

Atlassian :: http://www.atlassian.com
  Supporting YOUR J2EE World






Re: SOAP and Orion

2002-05-01 Thread Jon Bricker

Please forward me on to whomever solved this.  I'm using orion 1.5.4 so an
upgrade is out of the question.

I would like to talk to someone and see how they set up orion, their
application and their classpath.

--- [EMAIL PROTECTED] wrote:
> Hi Jon,
> We had a similar sounding problem with SOAP and when
> we upgraded to orion 1.5.2 the problem was fixed.  I
> wasn't the one working on the problem so I don't have
> much more info.
> Hope this helps.
> 
> -Heath
> 
> --- Jon Bricker <[EMAIL PROTECTED]> wrote:
> > I really need some help getting a SOAP application
> > to work on orion.
> > 
> > I have an application set up with a servlet front
> > that will call the SOAP
> > rpcrouter.  All in all the application is simular to
> > the one in the Java SOAP
> > book by Hernry Bequet. I put the soap.jar in my
> > WEB-INF/lib in my application.
> > 
> > The problem I'm having is that the SOAP call can
> > never find my class that is in
> > my deployment discriptor. I've heard that this is a
> > classpath issue but I just
> > can not figure out what the problem is.
> > 
> > 
> > here is the error:
> > Ouch, the call failed: 
> >   Fault Code   = SOAP-ENV:Server.BadTargetObjectURI
> >   Fault String = Unable to resolve target object:
> > com.lilly.javaatg.catd.servlet.DataLoaderImpl
> > 
> > 
> > 
> > I have soap in one location on my machine
> > 
> > Here is the deploymentDescriptor.xml
> >  >
> xmlns:isd="http://xml.apache.org/xml-soap/deployment";
> > id="urn:CanDEDataMgr">
> >> methods="isUserValid">
> >>
> class="com.lilly.javaatg.catd.servlet.DataLoaderImpl"
> > static="false"/>  
> >   
> >
> >
>
org.apache.soap.server.DOMFaultListener
> > 
> > 
> > Here is the call I use to deploy it
> > 
> > java org.apache.soap...
> > http://localhost:8088/servlet/rpcrouter deploy
> > deplymentDescriptor.xml
> > 
> > here is my test code to call it.
> > 
> > URL url = new
> >
> URL("http://localhost:8088/cande/servlet/rpcrouter";);
> > // Build the call.
> > Call call = new Call ();
> > call.setTargetObjectURI ("urn:CanDEDataMgr");
> > call.setMethodName ("isUserValid");
> > Vector params = new Vector ();
> > params.addElement (new Parameter("userID",
> > String.class, userID,
> > Constants.NS_URI_SOAP_ENC));
> > params.addElement (new Parameter("password",
> > String.class, password,
> > Constants.NS_URI_SOAP_ENC));
> > call.setParams (params);
> > 
> > Here is my web.xml mappings
> > 
> > candeLoad
> > CATD CanDE Patient Data load
> > Servlet
> > no description
> >
> >
>
com.lilly.javaatg.catd.servlet.CanDEDataLoad.CanDELoadServlet
> >   
> >   
> > 
> > rpcrouter
> > Apache-SOAP RPC
> > Router
> > no description
> >
> >
> org.apache.soap.server.http.RPCRouterServlet
> > 
> >   faultListener
> >  
> >
> org.apache.soap.server.DOMFaultListener
> > 
> >   
> >   
> > 
> >  
> > candeLoad
> > /candeLoad
> >   
> >   
> > rpcrouter
> > /rpcrouter
> >   
> > 
> > =
> > Jon Bricker
> > 
> > "You should never settle for the lesser of two
> > Weasels."
> > 
> > __
> > Do You Yahoo!?
> > Yahoo! Health - your guide to health and wellness
> > http://health.yahoo.com
> > 
> 
> 
> __
> Do You Yahoo!?
> Yahoo! Health - your guide to health and wellness
> http://health.yahoo.com
> 


=
Jon Bricker

"You should never settle for the lesser of two Weasels."

__
Do You Yahoo!?
Yahoo! Health - your guide to health and wellness
http://health.yahoo.com




RE: URGENT: Big issues with CMP 2.x and application-client !!!!

2002-05-01 Thread Gavin Spurling

I believe it only does this on fields named "password" as this can be a
reserved word in some DBs, it will do this if its autogenerating the
tables for you. You can always edit the orion-ejb-jar.xml file and
change the mapping to what suits you.

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]] On Behalf Of Vincent
Faidherbe
Sent: 30 April 2002 15:12
To: Orion-Interest
Subject: URGENT: Big issues with CMP 2.x and application-client 


Hello,

I'm running Orion on a SuSe Linux 7.0 with a Sun JDK 1.3.1_03. I've 
encountered two problems :
1. When using CMP 2.x entity bean, Orion adds  an underscore to the name

of some fields for the persitence-name and consequently, the generated 
SQL doesn't work ... Example : 
2. I've written n command-line client to different EJBs. If the 
application-client.xml bound with the client refers to an unknown remote

interface, the JVM of orion crashes with a stack overflow error.

Any idea ?

-- 
Vincent Faidherbe
icogs

"Do you think C++ is lovable? Unless you're into SM (Software
Masochism), probably not." (JLG)






RE: ORION 1.5.4 session bean serialization failed

2002-04-30 Thread Dvornikov Victor
Title: Meddelande



Am I 
alone with this problem?
 
Serialization of the session bean : JNDI lookup in the 
getEJBObject failed as if there is no the name sought.
I 
checked the name inside the readObject. It's OK. 
Although this problem (I fear to say bug) is 
not fatal. It's annoying.
 
 
  private void 
readObject(ObjectInputStream s) throws IOException,  
ClassNotFoundException  {    
s.defaultReadObject();    Handle handle = 
(Handle)s.readObject();
    Object obj= 
handle.getEJBObject();myRef = 
(Fluid)PortableRemoteObject.narrow(obj,MyClass.class);
  }Sincerely,
 
Victor Dvornikov,
IDE 
Technologies 
 


Re: CMP entity bean deployment compilation errors

2002-04-30 Thread Jeff Hubbach

Scott,

We are deploying ejb 2.0 beans with both the remote and local defined with 
no problems. We _did_ get that same error about the 
java.rmi.RemoteException must be caught or declared in the throws clause 
when setting exclusive-write-access to false in the orion-ejb-jar.xml. You 
might check this setting and try to redeploy.

Jeff.

On Mon, 29 Apr 2002, Scott Gaetjen wrote:

> A follow-up to this issue, which I feel is resolved. I tried 1.5.4 and then
> encountered the following compilation errors:
> 
> CodeListsEBLocalHome_EntityHomeWrapper10.java:156: Exception
> java.rmi.RemoteException must be c
> aught, or it must be declared in the throws clause of this method.
> EvermindEntityContext finderContext = this.getContextInstance(thread); Which
> I then saw in another message here.
> 
> I did some more investigation and found that the inclusion of the 
> and  elements as well as the  and  elements in my
> ejb-jar.xml was causing the original compilation errors. I then commented
> out either the / or the / and the
> deployment/compilation of generated classes worked. Seems you can possibly
> only use one of the pair. This is okay for me as I normally use the session
> bean as a facade pattern , so I should be fine just using the
> / pair.
> 
> Scott
> 
> Scott Gaetjen wrote:
> 
> > I've created a CMP entity bean based on some examples I've seen and am
> > encountering some compilation errors on the generated wrapper classes at
> > deployment time. Its seems the getter/setter methods and the remove
> > method are not recognized or available in the  generated wrapper
> > classes. I've look at various mailing lists and the bug database and
> > have not seen any similar problem. I've tried changing the use of Long
> > to "long" primitives and making the fields wholly lower case but have
> > not had any luck with that. If anyone has seen these errors before or
> > can give me any pointers on possible problem areas I would greatly
> > appreciate the help:
> >
> > There errors are as such:
> >
> > Auto-deploying leaders-ejb.jar (No previous deployment found)...
> > CodeListsEBRemote_EntityBeanWrapper2.java:281: Method __REMOTE__remove()
> > not found in class CodeListsEBRemote_EntityBeanWrapper2.
> > trail.__REMOTE__remove();
> >   ^
> > CodeListsEBRemote_EntityBeanWrapper2.java:571: Method
> > __REMOTE__getName() not found in class
> > CodeListsEBRemote_EntityBeanWrapper2.
> > return trail.__REMOTE__getName();
> >   ^
> >
> > CodeListsEBRemote_EntityBeanWrapper2.java:809: Method
> > __REMOTE__setName(java.lang.String) not found in class
> > CodeListsEBRemote_EntityBeanWrapper2.trail.__REMOTE__setName(argument0);
> >
> >^
> >
> > Regards,
> > Scott
> >
> > 
> > * My bean looks like:
> >
> > public abstract class CodeListsEB implements EntityBean
> >  
> > public abstract Long getId() ;
> > public abstract void setId(Long id) ;
> > public abstract String getName() ;
> > public abstract void setName(String name) ;
> >
> > 
> > * My remote is like:
> >
> > public interface CodeListsEBRemote extends EJBObject
> > ...
> > public Long getId() throws RemoteException;
> > public void setId(Long id) throws RemoteException;
> > public String getName() throws RemoteException;
> > public void setName(String name) throws RemoteException;
> >
> > 
> > * My ejb-jar is like:
> >  
> > Entity EJB providing CRUD transactions for the
> > LEADERS CODE_LISTS table
> > CodeListsEB
> > CodeListsEB
> > leader.ejb.entity.CodeListsEBHome
> > leader.ejb.entity.CodeListsEBRemote
> >
> > leader.ejb.entity.CodeListsEBLocalHome
> > leader.ejb.entity.CodeListsEBLocal
> > leader.ejb.entity.CodeListsEB
> > Container
> > CodeLists
> > 2.x
> > leader.ejb.entity.EntityPK
> > False
> >
> > id
> > name
> > ...
> >
> > 
> > 
> > 
> > 
> > findByName
> > 
> > java.lang.String
> > 
> > 
> > SELECT DISTINCT OBJECT(o) FROM CodeLists AS o
> > WHERE o.name = ?1
> > 
> > 
> > jdbc/MedicalDS
> > javax.sql.DataSource
> > Container
> > 
> > 
> >
> > 
> > * My orion-ejb-jar is like:
> >
> > 
> > 
> >  > location="leaders/CodeListsEB" table="CODE_LISTS"
> > data-source="jdbc/MedicalDS">
> > 
> > 
> > 
> >  > persistence-name="ID"/>
> > 
> > 
> > 
> > 
> > 
> > ...
> 





Re: SOAP and Orion

2002-04-30 Thread dracmed

Hi Jon,
We had a similar sounding problem with SOAP and when
we upgraded to orion 1.5.2 the problem was fixed.  I
wasn't the one working on the problem so I don't have
much more info.
Hope this helps.

-Heath

--- Jon Bricker <[EMAIL PROTECTED]> wrote:
> I really need some help getting a SOAP application
> to work on orion.
> 
> I have an application set up with a servlet front
> that will call the SOAP
> rpcrouter.  All in all the application is simular to
> the one in the Java SOAP
> book by Hernry Bequet. I put the soap.jar in my
> WEB-INF/lib in my application.
> 
> The problem I'm having is that the SOAP call can
> never find my class that is in
> my deployment discriptor. I've heard that this is a
> classpath issue but I just
> can not figure out what the problem is.
> 
> 
> here is the error:
> Ouch, the call failed: 
>   Fault Code   = SOAP-ENV:Server.BadTargetObjectURI
>   Fault String = Unable to resolve target object:
> com.lilly.javaatg.catd.servlet.DataLoaderImpl
> 
> 
> 
> I have soap in one location on my machine
> 
> Here is the deploymentDescriptor.xml
> 
xmlns:isd="http://xml.apache.org/xml-soap/deployment";
> id="urn:CanDEDataMgr">
>methods="isUserValid">
>   
class="com.lilly.javaatg.catd.servlet.DataLoaderImpl"
> static="false"/>  
>   
>
>
org.apache.soap.server.DOMFaultListener
> 
> 
> Here is the call I use to deploy it
> 
> java org.apache.soap...
> http://localhost:8088/servlet/rpcrouter deploy
> deplymentDescriptor.xml
> 
> here is my test code to call it.
> 
> URL url = new
>
URL("http://localhost:8088/cande/servlet/rpcrouter";);
> // Build the call.
> Call call = new Call ();
> call.setTargetObjectURI ("urn:CanDEDataMgr");
> call.setMethodName ("isUserValid");
> Vector params = new Vector ();
> params.addElement (new Parameter("userID",
> String.class, userID,
> Constants.NS_URI_SOAP_ENC));
> params.addElement (new Parameter("password",
> String.class, password,
> Constants.NS_URI_SOAP_ENC));
> call.setParams (params);
> 
> Here is my web.xml mappings
> 
> candeLoad
> CATD CanDE Patient Data load
> Servlet
> no description
>
>
com.lilly.javaatg.catd.servlet.CanDEDataLoad.CanDELoadServlet
>   
>   
> 
> rpcrouter
> Apache-SOAP RPC
> Router
> no description
>
>
org.apache.soap.server.http.RPCRouterServlet
> 
>   faultListener
>  
>
org.apache.soap.server.DOMFaultListener
> 
>   
>   
> 
>  
> candeLoad
> /candeLoad
>   
>   
> rpcrouter
> /rpcrouter
>   
> 
> =
> Jon Bricker
> 
> "You should never settle for the lesser of two
> Weasels."
> 
> __
> Do You Yahoo!?
> Yahoo! Health - your guide to health and wellness
> http://health.yahoo.com
> 


__
Do You Yahoo!?
Yahoo! Health - your guide to health and wellness
http://health.yahoo.com




Re: Please Unsubscribe Me

2002-04-29 Thread Sorin Pop

remove me





RE: Message Driven Beans

2002-04-29 Thread Justin Wood

Implementing a Message-Driven Bean in Orion.

(Tested with orion 1.5.4)

1.) ==  The MDB code - LogBean

package mycode.ejb.mdb;

import javax.ejb.*;
import javax.jms.*;

public class LogBean implements MessageDrivenBean, MessageListener {

 protected MessageDrivenContext ctx;

 public void setMessageDrivenContext(MessageDrivenContext ctx) {
  this.ctx = ctx;
 }

 public void ejbCreate() {
  System.out.println("ejbCreate()");
 }

 public void onMessage(Message msg) {

  TextMessage tm = (TextMessage) msg;

  try {
   String text = tm.getText();
   System.out.println("Received new message : " + text);
  }
  catch(JMSException e) {
   e.printStackTrace();
  }
 }

 public void ejbRemove() {
  System.out.println("ejbRemove()");
 }
}

2.) == The deployment descriptor (ejb.jar)


http://java.sun.com/j2ee/dtds/ejb-jar_1_2.dtd";>


Test Message Bean
A test of message beans

 

 
 Log

 
 mycode.ejb.mdb.LogBean

 
 Container

 
 
javax.jms.Queue
 











3.) ==  Activate (uncomment) jms in server.xml



4.) ==  Update jms.xml to include the queue


Test queue for MDB LogBean



5.) ==  Update web.xml to include the resource references to 
jms factory and queue



jms/theQueueConnectionFactory
javax.jms.QueueConnectionFactory
Container



jms/theLog
javax.jms.Queue
Container


6.) ==  Send a message to the jms queue from application code 
(jsp in this case)


<%@ page import="javax.naming.*" %>
<%@ page import="javax.jms.*" %>

<%

try
{
Context context = new InitialContext();
  QueueConnectionFactory factory = 
(QueueConnectionFactory)context.lookup("java:comp/env/jms/theQueueConnectionFactory");


QueueConnection connection = factory.createQueueConnection();
Queue queue = (Queue)context.lookup("java:comp/env/jms/theLog");
connection.start();

QueueSession sess = connection.createQueueSession(false, 
QueueSession.AUTO_ACKNOWLEDGE);

QueueSender sender = sess.createSender(queue);

int delivery_mode = DeliveryMode.PERSISTENT;
TextMessage message = sess.createTextMessage("well hello there...");
sender.send(message, delivery_mode, 1, 0);

sess.close();
connection.close();

} catch(JMSException e) {
System.err.println("JMS Communication error: " + e.getMessage());
} catch(NamingException e) {
System.err.println("Naming Error looking up objects: " + 
e.getMessage());
}

%>



Asp Services - Test






Done.



7.) ==  Done. 

Note: LogBean example was taken from "Mastering Enterprise Beans II (draft)" from 
theServerSide.com



 


-Original Message-
From: Michael Maurer [mailto:[EMAIL PROTECTED]]
Sent: 29 April 2002 01:20 PM
To: Orion-Interest
Subject: Message Driven Beans 



I am trying to deploy a message driven bean on the Oracle9iAS
(9.0.3.0.0) 

Are there some good examples where all necessary settings are described?
(Starting from jms.xml to orion-ejb-jar.xml!)

Or can anybody help me out with some important hints ?

 
Regards Michael








Re: JMS and load balancing

2002-04-29 Thread kumarpal jain



Hi
there is a nice documentaion for this at this 
link
 
http://www.orionserver.com/docs/http-clustering.html
 
hope this will help you,
 
Kumar
 

  - Original Message - 
  From: 
  Jorge Jimenez C 

  To: Orion-Interest 
  Sent: Monday, April 29, 2002 6:40 
PM
  Subject: JMS and load balancing
  
  Hi.
   
  If someone knows a tutorial that cover this 
  topic, please send me a link.
   
  It is posible to configure load balancing over 
  JMS and two app. servers ?
   
  Each server must point to a diferent queue or it 
  is a shared one ?
   
  What happen if one server crashes with the 
  messages that were not processed ? It is 
  posible for the other server to process these messages ?
   
  Thanks in advance.
   
  JJ


Re: CMP entity bean deployment compilation errors

2002-04-29 Thread Scott Gaetjen

A follow-up to this issue, which I feel is resolved. I tried 1.5.4 and then
encountered the following compilation errors:

CodeListsEBLocalHome_EntityHomeWrapper10.java:156: Exception
java.rmi.RemoteException must be c
aught, or it must be declared in the throws clause of this method.
EvermindEntityContext finderContext = this.getContextInstance(thread); Which
I then saw in another message here.

I did some more investigation and found that the inclusion of the 
and  elements as well as the  and  elements in my
ejb-jar.xml was causing the original compilation errors. I then commented
out either the / or the / and the
deployment/compilation of generated classes worked. Seems you can possibly
only use one of the pair. This is okay for me as I normally use the session
bean as a facade pattern , so I should be fine just using the
/ pair.

Scott

Scott Gaetjen wrote:

> I've created a CMP entity bean based on some examples I've seen and am
> encountering some compilation errors on the generated wrapper classes at
> deployment time. Its seems the getter/setter methods and the remove
> method are not recognized or available in the  generated wrapper
> classes. I've look at various mailing lists and the bug database and
> have not seen any similar problem. I've tried changing the use of Long
> to "long" primitives and making the fields wholly lower case but have
> not had any luck with that. If anyone has seen these errors before or
> can give me any pointers on possible problem areas I would greatly
> appreciate the help:
>
> There errors are as such:
>
> Auto-deploying leaders-ejb.jar (No previous deployment found)...
> CodeListsEBRemote_EntityBeanWrapper2.java:281: Method __REMOTE__remove()
> not found in class CodeListsEBRemote_EntityBeanWrapper2.
> trail.__REMOTE__remove();
>   ^
> CodeListsEBRemote_EntityBeanWrapper2.java:571: Method
> __REMOTE__getName() not found in class
> CodeListsEBRemote_EntityBeanWrapper2.
> return trail.__REMOTE__getName();
>   ^
>
> CodeListsEBRemote_EntityBeanWrapper2.java:809: Method
> __REMOTE__setName(java.lang.String) not found in class
> CodeListsEBRemote_EntityBeanWrapper2.trail.__REMOTE__setName(argument0);
>
>^
>
> Regards,
> Scott
>
> 
> * My bean looks like:
>
> public abstract class CodeListsEB implements EntityBean
>  
> public abstract Long getId() ;
> public abstract void setId(Long id) ;
> public abstract String getName() ;
> public abstract void setName(String name) ;
>
> 
> * My remote is like:
>
> public interface CodeListsEBRemote extends EJBObject
> ...
> public Long getId() throws RemoteException;
> public void setId(Long id) throws RemoteException;
> public String getName() throws RemoteException;
> public void setName(String name) throws RemoteException;
>
> 
> * My ejb-jar is like:
>  
> Entity EJB providing CRUD transactions for the
> LEADERS CODE_LISTS table
> CodeListsEB
> CodeListsEB
> leader.ejb.entity.CodeListsEBHome
> leader.ejb.entity.CodeListsEBRemote
>
> leader.ejb.entity.CodeListsEBLocalHome
> leader.ejb.entity.CodeListsEBLocal
> leader.ejb.entity.CodeListsEB
> Container
> CodeLists
> 2.x
> leader.ejb.entity.EntityPK
> False
>
> id
> name
> ...
>
> 
> 
> 
> 
> findByName
> 
> java.lang.String
> 
> 
> SELECT DISTINCT OBJECT(o) FROM CodeLists AS o
> WHERE o.name = ?1
> 
> 
> jdbc/MedicalDS
> javax.sql.DataSource
> Container
> 
> 
>
> 
> * My orion-ejb-jar is like:
>
> 
> 
>  location="leaders/CodeListsEB" table="CODE_LISTS"
> data-source="jdbc/MedicalDS">
> 
> 
> 
>  persistence-name="ID"/>
> 
> 
> 
> 
> 
> ...


begin:vcard 
n:Gaetjen;Scott 
tel;cell:703.728.1301
tel;fax:540.882.4233
tel;work:540.882.4233
x-mozilla-html:FALSE
url:http://www.solutionsauthority.com
org:President - Solutions Authority, LLC
adr:;;38607 Millstone Drive;Purcellville;VA;20132;USA
version:2.1
email;internet:[EMAIL PROTECTED]
title:540.882.4233 (office) - 703.728.1301 (mobile)
end:vcard



RE: XSL and Sitemesh on Orion

2002-04-29 Thread prasanth sb

Dearest elephantwalker and other dearest friends,
   I have a doubt in this xsl rendering.
I used xalan and xerces parser which orion uses for xml to html rendering. I 
used my own xsl servlet to port my code to any application server which is 
not having an xsl servlet. But I am ending up in one trouble. Transformation 
is working fine. But if I need to output as xml,
I will use response.setContentType("text/xml"); this works fine in servlets. 
But when I use the same in jsps in an ear file, this donot happen. Can we 
change the content type of jsp's?

thanks,
Prasanth.






>From: "The elephantwalker" <[EMAIL PROTECTED]>
>Reply-To: Orion-Interest <[EMAIL PROTECTED]>
>To: Orion-Interest <[EMAIL PROTECTED]>
>Subject: RE: XSL and Sitemesh on Orion
>Date: Mon, 22 Apr 2002 20:19:27 -0700
>
>retry ...
>-Original Message-
>From: The elephantwalker [mailto:[EMAIL PROTECTED]]
>Sent: Monday, April 22, 2002 8:59 AM
>To: Orion-Interest; [EMAIL PROTECTED]
>Subject: RE: XSL and Sitemesh on Orion
>
>
>Dear Peter,
>
>Theres a bug in sitemesh so that only jsp files work. I believe that xsl
>would have the same limitation. I reported this on sourceforge. There's an
>easy fix to this:
>
>http://sourceforge.net/tracker/index.php?func=detail&aid=534456&group_id=989
>0&atid=109890
>
>and
>
>http://sourceforge.net/tracker/index.php?func=detail&aid=534772&group_id=989
>0&atid=109890
>
>Of course you will need to make the changes in the sitemesh code, and
>re-build it, but that's a snap. I would attach the fix on elephantwalker,
>but I am unclear about the Opensymphony license...any way the links above
>give the exact changes necessary to make this work.
>
>Regards,
>
>the elephantwalker
>www.elephantwalker.com
>
>
>
>
>
>-Original Message-
>From: [EMAIL PROTECTED]
>[mailto:[EMAIL PROTECTED]]On Behalf Of Peter Beck
>Sent: Monday, April 22, 2002 5:11 AM
>To: Orion-Interest
>Subject: XSL and Sitemesh on Orion
>
>
>I am using OpenSymphony Sitemesh on Orion Application Server 1.5.4.
>
>The Orion XSL servlet (default config in global-web-application.xml)
>is used to transform XML files to HTML.
>The transformation works fine, but the transformed HTML is no longer
>passed to the sitemesh filter and is displayed without layout.
>
>What can I do to make this work?
>Does anybody have a hint, please?
>
>Peter
>
>--
>Peter Beck, JOANNEUM RESEARCH Forschungsges.m.b.H.
>[EMAIL PROTECTED]
>
>
>
>


s

_
MSN Photos is the easiest way to share and print your photos: 
http://photos.msn.com/support/worldwide.aspx





Re: Re: how to shutdown orion app server?

2002-04-29 Thread Lachezar Dobrev



  Hi. Again.
  Now. The code seems correct. Except, the 
url, that MAY require to be of the type: 
ormi://localhost/Your_App_Name.
  If you have deployed your beans in an 
application, and NOT in the default APP, you HAVE to use the url with the 
app_name at the end.
  in config/server.xml
    
  in properties:
    
java.naming.provider.url=ormi://your.host.your.domain/Your_App_Name
   or
    
java.naming.provider.url=ormi://localhost/Your_App_Name << FOR LINUX 
MAINLY!
  in java code:
    p.put(Context.PROVIDER_URL, 
"ormi://localhost/Your_App_Name");
 
  Then you will find your ejbs.
  I would sincerly offer you to look-up the 
name of the bean without any prefixes. It is hard to move to other app server 
sometimes. In your case if you have no ejb-link, ejb-ref and so on stuff, just 
look-up OrgOrganizations:
   
ctx.lookup("OrgOrganizations");
 
  Also let's note, that if you use the 
java:comp/* context it may not port well on different servers.
 
  Lachezar.
  P.S. Give it a try and write 
again.
 

  but i can't look up my ejb,how to config it.
  thanks
   
  
  


  

    Hi.
    Make sure you remove 
  the 'deactivated="false"' for admin in 
  config/principals.xml
   
    Lachezar.
  
Hi,
I writed one EJB and deployed it successful 
on Orion 1.5.4. But i get the Exception when i test it used one 
client application:
javax.naming.AuthenticationException: 
Invalid username/password for default 
(admin)    at 
com.evermind._dn._mu(.:2173)    
at 
com.evermind._dn._mu(.:2009)    
at 
com.evermind._dn._es(.:1590)    
at 
com.evermind._bp._es(.:357)    
at 
com.evermind.server.rmi.RMIContext.lookup(.:106)    
at 
javax.naming.InitialContext.lookup(InitialContext.java:347)    
at ejbtest.Test1.main(Test1.java:24)
code:
Properties p = new 
Properties();  p.put(Context.INITIAL_CONTEXT_FACTORY, 
"com.evermind.server.rmi.RMIInitialContextFactory");  p.put(Context.PROVIDER_URL, 
"ormi://211.167.71.60:23791");  p.put(Context.SECURITY_PRINCIPAL, 
"admin");  p.put(Context.SECURITY_CREDENTIALS, 
"123");try 
{   Context ctx = new 
InitialContext(p);   OrganizationsHome home = 
(OrganizationsHome)ctx.lookup("ejb/OrgOrganizations");   Organizations 
remote = (Organizations)home.create();  } catch 
(Exception ex) 
{   ex.printStackTrace();  }
help 
  me!
  
  = = = = = = = = = = = = = = = = = = = = = = 

  ÖÂÀñ£¡
  Liu Bin
    [EMAIL PROTECTED]¡¡2002-04-29
   


Re: Re: how to shutdown orion app server?

2002-04-29 Thread Liu Bin



but i can't look up my ejb,how to config it.
thanks
 


  
  

  
  Hi.
  Make sure you remove 
the 'deactivated="false"' for admin in 
config/principals.xml
 
  Lachezar.

  Hi,
  I writed one EJB and deployed it successful on 
  Orion 1.5.4. But i get the Exception when i test it used one 
  client application:
  javax.naming.AuthenticationException: Invalid 
  username/password for default 
  (admin)    at 
  com.evermind._dn._mu(.:2173)    
  at 
  com.evermind._dn._mu(.:2009)    
  at 
  com.evermind._dn._es(.:1590)    
  at 
  com.evermind._bp._es(.:357)    
  at 
  com.evermind.server.rmi.RMIContext.lookup(.:106)    
  at 
  javax.naming.InitialContext.lookup(InitialContext.java:347)    
  at ejbtest.Test1.main(Test1.java:24)
  code:
  Properties p = new 
  Properties();  p.put(Context.INITIAL_CONTEXT_FACTORY, 
  "com.evermind.server.rmi.RMIInitialContextFactory");  p.put(Context.PROVIDER_URL, 
  "ormi://211.167.71.60:23791");  p.put(Context.SECURITY_PRINCIPAL, 
  "admin");  p.put(Context.SECURITY_CREDENTIALS, 
  "123");try 
  {   Context ctx = new 
  InitialContext(p);   OrganizationsHome home = 
  (OrganizationsHome)ctx.lookup("ejb/OrgOrganizations");   Organizations 
  remote = (Organizations)home.create();  } catch 
  (Exception ex) 
  {   ex.printStackTrace();  }
  help me!

= = = = = = = = = = = = = = = = = = = = = = 
ÖÂÀñ£¡
Liu Bin
  [EMAIL PROTECTED]¡¡2002-04-29
 


FOX.GIF
Description: GIF image


Re: how to shutdown orion app server?

2002-04-29 Thread Renaud Bruyeron


That command seems to hang on linux 2.4.x / 1.3.1 as soon as you've deployed
something.

It works great on win2k, though, so I suspect the linux JVM.

Under linux, I usually have to CTRL-C or kill the process.

 - Renaud

- Original Message -
From: "Jesper Rasmussen" <[EMAIL PROTECTED]>
To: "Orion-Interest" <[EMAIL PROTECTED]>
Sent: Monday, April 29, 2002 7:22 AM
Subject: SV: how to shutdown orion app server?


java -jar admin.jar ormi://localhost admin 1234 -shutdown

where admin is username and 1234 is password

For more info:
java -jar admin.jar ormi://localhost admin 1234 -help

-Oprindelig meddelelse-
Fra: gusl [mailto:[EMAIL PROTECTED]]
Sendt: 28. april 2002 05:26
Til: Orion-Interest
Emne: how to shutdown orion app server?


Hi all,
I want to know how to shutdown orion app server ??? Use kill
???(under linux)






Re: how to shutdown orion app server?

2002-04-29 Thread Mark Kettner

Hi Liu,

Did you run

orion -install

when you installed orion (or changed admin password in principals.xml)?
This username/password should correspond with the username/password from
the jndi.properties file of the client application

Mark

On Sun, 2002-04-28 at 13:02, Liu Bin wrote:
> Hi,
> I writed one EJB and deployed it successful on Orion 1.5.4. But i get
the Exception when i test it used one client application:
> javax.naming.AuthenticationException: Invalid username/password for
default (admin)
> at com.evermind._dn._mu(.:2173)
> at com.evermind._dn._mu(.:2009)
> at com.evermind._dn._es(.:1590)
> at com.evermind._bp._es(.:357)
> at com.evermind.server.rmi.RMIContext.lookup(.:106)
> at javax.naming.InitialContext.lookup(InitialContext.java:347)
> at ejbtest.Test1.main(Test1.java:24)
> code:
> Properties p = new Properties();
>   p.put(Context.INITIAL_CONTEXT_FACTORY,
"com.evermind.server.rmi.RMIInitialContextFactory");
>   p.put(Context.PROVIDER_URL, "ormi://211.167.71.60:23791");
>   p.put(Context.SECURITY_PRINCIPAL, "admin");
>   p.put(Context.SECURITY_CREDENTIALS, "123");
>   
>   try {
>Context ctx = new InitialContext(p);
>OrganizationsHome home =
(OrganizationsHome)ctx.lookup("ejb/OrgOrganizations");
>Organizations remote = (Organizations)home.create();
>   } catch (Exception ex) {
>ex.printStackTrace();
>   }
> help me!

-- 
--o-o--
Mark Kettner
http://www.fredhopper.com
Amsterdam, The Netherlands
Phone:  +31 20 3206203 Mobile: +31 620 609 817
fax:+31 20 8848747
E-mail: [EMAIL PROTECTED], [EMAIL PROTECTED]






Re: how to shutdown orion app server?

2002-04-28 Thread Lachezar Dobrev



  Hi.
  Make sure you remove 
the 'deactivated="false"' for admin in config/principals.xml
 
  Lachezar.

  Hi,
  I writed one EJB and deployed it successful on Orion 
  1.5.4. But i get the Exception when i test it used one client 
  application:
  javax.naming.AuthenticationException: Invalid 
  username/password for default 
  (admin)    at 
  com.evermind._dn._mu(.:2173)    at 
  com.evermind._dn._mu(.:2009)    at 
  com.evermind._dn._es(.:1590)    at 
  com.evermind._bp._es(.:357)    at 
  com.evermind.server.rmi.RMIContext.lookup(.:106)    
  at 
  javax.naming.InitialContext.lookup(InitialContext.java:347)    
  at ejbtest.Test1.main(Test1.java:24)
  code:
  Properties p = new 
  Properties();  p.put(Context.INITIAL_CONTEXT_FACTORY, 
  "com.evermind.server.rmi.RMIInitialContextFactory");  p.put(Context.PROVIDER_URL, 
  "ormi://211.167.71.60:23791");  p.put(Context.SECURITY_PRINCIPAL, 
  "admin");  p.put(Context.SECURITY_CREDENTIALS, 
  "123");try {   Context ctx 
  = new InitialContext(p);   OrganizationsHome home = 
  (OrganizationsHome)ctx.lookup("ejb/OrgOrganizations");   Organizations 
  remote = (Organizations)home.create();  } catch (Exception ex) 
  {   ex.printStackTrace();  }
  help me!


RE: NullPointerException on CMP entity bean deployment

2002-04-28 Thread Jeff Schnitzer

Hey, what magical incantation produced a non-obfuscated version of
Orion?  

I have stack-trace envy.

Jeff Schnitzer
[EMAIL PROTECTED]

> -Original Message-
> From: Scott Gaetjen [mailto:[EMAIL PROTECTED]]
> Sent: Friday, April 26, 2002 11:03 PM
> To: Orion-Interest
> Subject: NullPointerException on CMP entity bean deployment
> 
> 
> I've created a CMP-based entity bean and encounter a NPE exception
when
> the .EAR is deployed. I've searched high and low and reviewed my XML
and
> Java, but I cannot determine the problem. Any help or insight anyone
can
> provide would be appreciated.
> 
> The exception I get is as follows:
> 
> Auto-deploying leaders-ejb.jar (No previous deployment found)...
> java.lang.NullPointerException
> at com.evermind.util.ClassUtils.getSourceNotation(ClassUtils.java:280)
> at
com.evermind.server.ejb.compilation.CMPObjectCompilation.processConta
> 
> inerManagedField(CMPObjectCompilation.java:299)
> at
> com.evermind.server.ejb.compilation.CMPObjectCompilation.processField
> s(CMPObjectCompilation.java:242)
> at
> com.evermind.server.ejb.compilation.PersistenceManagerCompilation.com
> pile(PersistenceManagerCompilation.java:53)
> at
> com.evermind.server.ejb.compilation.EntityBeanCompilation.compile(Ent
> ityBeanCompilation.java:324)
> at
> com.evermind.server.ejb.compilation.Compilation.compile(Compilation.j
> ava:215)
> at
> com.evermind.server.ejb.EJBContainer.postInit(EJBContainer.java:545)
> at
> com.evermind.server.Application.postInit(Application.java:429)
> at
> com.evermind.server.Application.setConfig(Application.java:136)
> at
> com.evermind.server.ApplicationServer.addApplication(ApplicationServe
> r.java:1479)
> at
> com.evermind.server.ApplicationServer.initializeApplications(Applicat
> ionServer.java:1436)
> at
> com.evermind.server.ApplicationServer.setConfig(ApplicationServer.jav
> a:1099)
> at
> com.evermind.server.ApplicationServerLauncher.run(ApplicationServerLa
> uncher.java:93)
> at java.lang.Thread.run(Thread.java:484)
> at
> com.evermind.util.ThreadPoolThread.run(ThreadPoolThread.java:49)
> 
> Regards,
> Scott




Re: how to shutdown orion app server?

2002-04-28 Thread Liu Bin



Hi,
I writed one EJB and deployed it successful on Orion 
1.5.4. But i get the Exception when i test it used one client 
application:
javax.naming.AuthenticationException: Invalid 
username/password for default 
(admin)    at 
com.evermind._dn._mu(.:2173)    at 
com.evermind._dn._mu(.:2009)    at 
com.evermind._dn._es(.:1590)    at 
com.evermind._bp._es(.:357)    at 
com.evermind.server.rmi.RMIContext.lookup(.:106)    
at 
javax.naming.InitialContext.lookup(InitialContext.java:347)    
at ejbtest.Test1.main(Test1.java:24)
code:
Properties p = new 
Properties();  p.put(Context.INITIAL_CONTEXT_FACTORY, 
"com.evermind.server.rmi.RMIInitialContextFactory");  p.put(Context.PROVIDER_URL, 
"ormi://211.167.71.60:23791");  p.put(Context.SECURITY_PRINCIPAL, 
"admin");  p.put(Context.SECURITY_CREDENTIALS, 
"123");try {   Context ctx = 
new InitialContext(p);   OrganizationsHome home = 
(OrganizationsHome)ctx.lookup("ejb/OrgOrganizations");   Organizations 
remote = (Organizations)home.create();  } catch (Exception ex) 
{   ex.printStackTrace();  }
help me!


FOX.GIF
Description: GIF image


Re: Cached data in entity beans

2002-04-27 Thread Joseph Ottinger

Set the orion-ejb-jar.xml to not cache the EJB data. You'll destroy
performance this way, but it won't show you cached data.

-
Joseph B. Ottinger [EMAIL PROTECTED]
http://enigmastation.comIT Consultant

On Sat, 27 Apr 2002, Sergey Ponomarev wrote:

> Hi
>
> I  have  several entity beans under Orion 1.5.2. I have a problem with
> caching   data   by  these  beans. I get data from table with EJB. Then I
> change   data   through   it.  But  when  I  retrieve data again (with
> different  bean)  I  get  old  data.  How  can I force EJBs to re-read
> changed data from table?
>
> Sergey
>
>





Re: Virus Alert

2002-04-26 Thread huynhha

please, remove me






Re: OffTopic: Entity-Beans and relational structure (out ofoffice 4/24-4/26)

2002-04-26 Thread Jennifer Goree


I will be out of the office from the afternoon of Wednesday April 24th  through the 
afternoon of Friday April 26th. 
If you have an emergency problem with the website, please contact Russell Dodds. 

thanks,
Jen





Re: EJB load error on 1.5.4 (out of office 4/24-4/26)

2002-04-26 Thread Jennifer Goree


I will be out of the office from the afternoon of Wednesday April 24th  through the 
afternoon of Friday April 26th. 
If you have an emergency problem with the website, please contact Russell Dodds. 

thanks,
Jen





Re: timezone issue (out of office 4/24-4/26)

2002-04-26 Thread Jennifer Goree


I will be out of the office from the afternoon of Wednesday April 24th  through the 
afternoon of Friday April 26th. 
If you have an emergency problem with the website, please contact Russell Dodds. 

thanks,
Jen





Re: OffTopic: Entity-Beans and relational structure

2002-04-26 Thread Warren Hedley

Hi Max,

I don't know if it's much use, but an old tutorial I wrote on handling 
many-to-many relationships in Orion, using the exact same example you use, might 
be of use to you. You can find it here (it's also on Atlassian.com, but I don't 
have the link handy).

http://users.sdsc.edu/~whedley/ejb/object_relational_mapping_in_orion.html
http://users.sdsc.edu/~whedley/ejb/object_relational_mapping_in_orion.pdf

A few things to note:
* This is for EJB 1.1, EJB 2.0 defines a standard mechanism for handling this 
sort of problem.
* This works on Orion 1.5.2 and OC4J 1.0.2.2.0, but I've received error reports 
on other versions of Orion.

Someday, I'll get around to updating this document for EJB 2.0, but I'm swamped 
at the moment.

Hope that helps,
Warren


Maximilian Eberl wrote:
> Excuse me for asking off topic (and stupid), I am just learning to use
> Entity Beans on Orion.
> 
> In most tutorials entity beans only represent ONE ROW from ONE TABLE, but
> relational databases go far beyond that.
> 
> I have a relational database for movies, actors, directors & writers.
> ...
-- 
Warren Hedley
Alliance For Cell Signaling
San Diego Supercomputer Center





Re: timezone issue

2002-04-26 Thread Pierre Metrailler - shockfish /


I thought that the timezone had nothing to do with Orion, too. But when I 
run the same code in a standalone application (i.e. not loading the class 
within Orion), I get a correct behaviour. And I'm using the same VM.

So, the standalone app yields a timezone w/ DST and a class within Orion 
yields a TZ wo/ DST.

Weird. Any idea ?

regards,

Pierre

At 09:47 23.04.2002 +1000, you wrote:
>ello,
>
>Timezone is implemented as part of JDK, has nothing to do with the
>application servers. I noticed that JDK1.3.0 had problems with timezone for
>Sydney (Sydney had special daylight saving in year 2000 due to Olympic). But
>JDK1.3.1 had fixed the problem.
>
>cheers
>romen
>
>- Original Message -
>From: "Pierre Metrailler - shockfish /" <[EMAIL PROTECTED]>
>To: "Orion-Interest" <[EMAIL PROTECTED]>
>Sent: Monday, April 22, 2002 8:02 PM
>Subject: timezone issue
>
>
> > Hi all,
> >
> > i've encountered a weird problem regarding timezones :
> >
> > My system timezone is set to Europe/Zurich, GMT+2, since we are in DST.
> >
> > Running a standalone java application and querying TimeZone.getDefault()
> > returns the correct timezone, i.e. the one with the correct ID
> > "Europe/Zurich". The time is also correct.
> >
> > Querying TimeZone.getDefault() within Orion yields a timezone with ID
> > "Custom" ! The offset is almost correct, excepted that it doesnt support
> > the daylight saving. (GMT+1). (TimeZone.getDefault()).useDaylightTime()
> > returns false, which is incorrect. Hence, the time is 1 hour late.
> >
> > In short, Orion does not properly build the right timezone from the system
> > settings. Is there any way to address this problem ?
> >
> > Regards,
> >
> > Pierre
> >
> > ___
> > Pierre Metrailler, Software Engineer & System Administrator
> > S h o c k f i s h Ltd, Event Communication Systems
> > PSE C - Parc Scientifique, CH-1015 Lausanne EPFL
> > Switzerland
> >
> > public key http://shockfish.com/keys/pierre.asc
> >
> > "Enabling face-to-face communication."
> >
> >
> >





RE: MySQL Connection Pool? (out of office 4/24-4/26)

2002-04-26 Thread Jennifer Goree


I will be out of the office from the afternoon of Wednesday April 24th  through the 
afternoon of Friday April 26th. 
If you have an emergency problem with the website, please contact Russell Dodds. 

thanks,
Jen





RE: MySQL Connection Pool?

2002-04-26 Thread Koster, K.J.

Dear All,

> 
> what about the database schema?
> 
http://kjkoster.org/java/ Hunt around in the menue for MySQL connection for
Orion. It's somewhere near the Tomcat tutorial.

Kees Jan

=
 You can't have everything.  Where would you put it?
 [Steven Wright]




RE: Accessing an EJB in Orion App server from a servlet in Iplanet

2002-04-25 Thread nishant usapkar

Hi.

I have never tried the specific combination.I will however suggest you to check wheter 
the orion specific jars are in the IPlanet server classpath.

Regards
Nishant

-Original Message-
From: Grum Ketema [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, April 24, 2002 10:39 PM
To: Orion-Interest
Subject: RE: Accessing an EJB in Orion App server from a servlet in
Iplanet


Hello,

I have tried several times with different options
1. If I try
Object homeObject = ctx.lookup("java:comp/env/fred/fredBean");
instead of
Object homeObject = ctx.lookup("fred/fredBean");
I get NameNotFound exception which makes sense since I am doing a name look
up
not EJB reference lookup -
2. Occasionally I get the exception Connection broken by the peer exception
and other times
I get exception that says the protocol used is not ORMI
3. For the most part it hangs

Has anybody tried Orion with Iplanet
Regards,
Grum

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]On Behalf Of sbpodila
Sent: Wednesday, April 24, 2002 12:20 AM
To: Orion-Interest
Subject: Re: Accessing an EJB in Orion App server from a servlet in
Iplanet


Did you got any error or exception while trying to access the bean?I think
you may get a security related exception

regards
Sasi.

- Original Message -
From: "Grum Ketema" <[EMAIL PROTECTED]>
To: "Orion-Interest" <[EMAIL PROTECTED]>
Sent: Wednesday, April 24, 2002 6:54 AM
Subject: Accessing an EJB in Orion App server from a servlet in Iplanet


> Hello,
>
> I have been trying to access an EJB deployed in Orion app server from a
> servlet deployed in Iplanet. I have
> the following code in the servlet
>
> Hashtable env = new Hashtable();
>
> env.put(Context.INITIAL_CONTEXT_FACTORY,
> "com.evermind.server.rmi.RMIInitialContextFactory");
> env.put(Context.PROVIDER_URL, "ormi://nap1/fredWeb");
> env.put(Context.SECURITY_PRINCIPAL, "admin");
> env.put(Context.SECURITY_CREDENTIALS, "xyz");
> Context ctx = new InitialContext(env);
>
> Object homeObject = ctx.lookup("fred/fredBean");
>
> The ctx.lookup() call hangs for ever. If I replace
> Object homeObject = ctx.lookup("fred/fredBean");
>
> With this same code I can access the bean from a stand alone client.
> I have been struggling with this for a few days and nothing seems to work.
> All suggestions are appreciated
> Regards,
> Grum
>
>
>
>







RE: OffTopic: Entity-Beans and relational structure

2002-04-25 Thread Jeff Schnitzer

You don't need BMP to do this, CMP works just fine.  Create separate
entity beans for Movie, Actor, etc and establish many-to-many
relationships between them.

However, I will provide this warning:  If you don't already know how to
do this, that is, if you haven't already climbed the EJB learning curve,
you will be a *lot* happier if you choose some other O/R mapping tool.
Torque, Castor, Hibernate, JDO, or even just straight JDBC; with any of
these solutions, your project will be up and running long before an
entity bean solution, and it will perform a lot better too.
Relationships in particular are hopelessly immature in Orion, and
they're even painful in WebLogic.

Jeff Schnitzer
[EMAIL PROTECTED]

> -Original Message-
> From: Chris Nias [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, April 24, 2002 7:49 AM
> To: Orion-Interest
> Subject: RE: OffTopic: Entity-Beans and relational structure
> 
> If you get the Java 2 Enterprise Edition Developers Guide (I have v
> 1.2.1 pdf) from www.java.sun.com
> Then it is on page 135 - Mapping Table Relationships to Entity beans
> It goes on to describe when you should use entity beans, and when to
use
> helper classes (hint: that is what you need!)
> It also gives a good example with source code.
> Be warned though; you will have to use BMP!
> 
> 
> -Original Message-
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED]] On Behalf Of Maximilian
> Eberl
> Sent: 24 April 2002 13:13
> To: Orion-Interest
> Subject: OffTopic: Entity-Beans and relational structure
> 
> Excuse me for asking off topic (and stupid), I am just learning to use
> Entity Beans on Orion.
> 
> In most tutorials entity beans only represent ONE ROW from ONE TABLE,
> but
> relational databases go far beyond that.
> 
> I have a relational database for movies, actors, directors & writers.
> 
> So I have a table tblMovies
> INT id, VARCHAR title, INT year, VARCHAR description
> e.g.:
> 1, 'Casablanca',1942,'the classical movie'
> 2, 'The Maltese Falcon',1946,'begin of the dark series'
> 3, 'The Seawulf',1947,'after the novel from Jack London'
> ...
> 
> I have a tblActors (INT id, VARCHAR name)
> 1,'Humphrey Bogart'
> 2,'Ingrid Bergman'
> 3,'Edward G. Robinson'
> ...
> 
> and in the same manner tblDirectors, tblWriters
> 
> And I have tables for the relations, e.g.
> 
> tblRoles (INT filmid, INT actorid)
> 1,1
> 2,1
> 1,2
> 3,3
> ..
> and also tblMisEnScene, tblScreenplay
> 
> meaning: Humphrey Bogart (actorid: 1) appeared in 'Casablanca'
(filmid:
> 1)
> and 'The Maltese Falcon' (filmid: 2), Ingrid Bergman (actorid: 2)
> appeared
> in 'Casablanca' (filmid: 1), Edward G. Robinson (actorid: 3) appeared
in
> 'The Seawulf' (filmid: 3) . So this relational structure allows that
one
> film can have multiple actors, writers, directors and one actor can
> appear
> in multiple films. Relational basework, of course.
> 
> If I want to extract those films in which Humphrey Bogart appeared I
can
> do
> this easily in SQL (used by a Servlet) with:
> 
> SELECT title FROM tblFilms WHERE id IN (SELECT filmid FROM tblRoles
> WHERE
> actorid=(SELECT id FROM tblActors WHERE name='Humphrey Bogart'))
> 
> (or as in my case with JOINS from MySQL)
> 
> When I do want to write an EJB-Application using this database, how do
I
> do
> this ? How do I represent the relational data ?
> 
> Do I have to keep Entity Beans for EVERY row of ANY table ? Do I have
to
> create temporary tables with all information merged ? This creates a
> problem
> because one film can have one or more writers (Casablanca had three)
and
> (in
> most cases) more than one actor.
> 
> This way  ?
> 
> public class MovieBean implements javax.ejb.EntityBean
> {
> String Title;
> String[] Actors;
> ...
> public String getTitle() throws RemoteException;
> {...
> }
> public String[] getActors() throws RemoteException;
> {
> return Actors[];
> }
> }
> 
> using Arrays filled from the database with all actors, directors,
> writers ?
> 
> Please give me a hint ! (Well, I know I am stupid. But it is a good
work
> to
> help stupid persons)
> 
> 
> Maximilian Eberl
> http://www.derdickemax.de
> mailto:[EMAIL PROTECTED]
> 
> 
> 
> 





Re: Error while accessing http://localhost

2002-04-24 Thread Scott Farquhar

This sounds like you have some very serious problems.

http://java.sun.com/j2se/1.3/docs/api/java/lang/IllegalAccessError.html

I would try reinstalling - I haven't seen this error before.

Cheers,
Scott

Dinesh Kandambeth wrote:
> Dear All,
> 
> I have installed Orion 1.5.2 and started the same on my machine.When I tried this 
>url http://localhost then the followong error was shown. Could anyone help please.
> 
> 
> 500 Internal Server Error
> 
> java.lang.IllegalAccessError: com/evermind/server/http/EvermindHttpServletRequest
> void com.evermind[Orion/1.5.2 (build 
>10460)]._ah._upb(javax.servlet.ServletRequest, javax.servlet.ServletResponse, 
>java.io.File, com.evermind[Orion/1.5.2 (build 10460)].util.ByteString, boolean, 
>com.evermind[Orion/1.5.2 (build 10460)]._si)
> void com.evermind[Orion/1.5.2 (build 
>10460)]._cvb._uec(javax.servlet.ServletRequest, 
>javax.servlet.http.HttpServletResponse)
> boolean com.evermind[Orion/1.5.2 (build 
>10460)]._io._twc(com.evermind[Orion/1.5.2 (build 
>10460)].server.ApplicationServerThread, com.evermind[Orion/1.5.2 (build 
>10460)].server.http.EvermindHttpServletRequest, com.evermind[Orion/1.5.2 (build 
>10460)].server.http.EvermindHttpServletResponse, java.io.InputStream, 
>java.io.OutputStream, boolean)
> void com.evermind[Orion/1.5.2 (build 10460)]._io._gc(java.lang.Thread)
> void com.evermind[Orion/1.5.2 (build 10460)]._if.run()
> 
> 
> Have a nice day and take care. Hope to hear from u soon
> Cheers,
> Dinesh
> 
> 
> 
> - Live life in T-Motion. Get an SMS alert to your mobile every time you get an 
>email. That's ANY mobile phone. Register for FREE with T-Motion at www.t-motion.co.uk 
>to access your own bookmarks and contacts via web and WAP -
> 
>  
> 
> 
> 
> 


-- 
Scott Farquhar :: [EMAIL PROTECTED]

Atlassian :: http://www.atlassian.com
  Supporting YOUR J2EE World






RE: Accessing an EJB in Orion App server from a servlet in Iplanet

2002-04-24 Thread Grum Ketema

Hello,

I have tried several times with different options
1. If I try
Object homeObject = ctx.lookup("java:comp/env/fred/fredBean");
instead of
Object homeObject = ctx.lookup("fred/fredBean");
I get NameNotFound exception which makes sense since I am doing a name look
up
not EJB reference lookup -
2. Occasionally I get the exception Connection broken by the peer exception
and other times
I get exception that says the protocol used is not ORMI
3. For the most part it hangs

Has anybody tried Orion with Iplanet
Regards,
Grum

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]On Behalf Of sbpodila
Sent: Wednesday, April 24, 2002 12:20 AM
To: Orion-Interest
Subject: Re: Accessing an EJB in Orion App server from a servlet in
Iplanet


Did you got any error or exception while trying to access the bean?I think
you may get a security related exception

regards
Sasi.

- Original Message -
From: "Grum Ketema" <[EMAIL PROTECTED]>
To: "Orion-Interest" <[EMAIL PROTECTED]>
Sent: Wednesday, April 24, 2002 6:54 AM
Subject: Accessing an EJB in Orion App server from a servlet in Iplanet


> Hello,
>
> I have been trying to access an EJB deployed in Orion app server from a
> servlet deployed in Iplanet. I have
> the following code in the servlet
>
> Hashtable env = new Hashtable();
>
> env.put(Context.INITIAL_CONTEXT_FACTORY,
> "com.evermind.server.rmi.RMIInitialContextFactory");
> env.put(Context.PROVIDER_URL, "ormi://nap1/fredWeb");
> env.put(Context.SECURITY_PRINCIPAL, "admin");
> env.put(Context.SECURITY_CREDENTIALS, "xyz");
> Context ctx = new InitialContext(env);
>
> Object homeObject = ctx.lookup("fred/fredBean");
>
> The ctx.lookup() call hangs for ever. If I replace
> Object homeObject = ctx.lookup("fred/fredBean");
>
> With this same code I can access the bean from a stand alone client.
> I have been struggling with this for a few days and nothing seems to work.
> All suggestions are appreciated
> Regards,
> Grum
>
>
>
>






Re: A very excite game

2002-04-24 Thread KirkYarina

They seem to be coming from dial up connections with an ISP in Argentina, 
SiON Telematica.

Quite possible it's yet another kiddie that needs a good whack where it 
would do the most good...

It's a good reason to strip attachments from mail-list messages, and not 
allow posts from non-list members.  That would weed out most of the spam, 
too.  Most widely used list managers can do this.

Kirk Yarina


At 05:31 PM 4/23/02 -0500, you wrote:
>it is another virus trying to catch us
>It is not the first time that this happens here.
>regards
>
>
>
>- Original Message -
>From: Torstein P. Nilsen
>To: Orion-Interest
>Sent: Monday, April 22, 2002 6:32 AM
>Subject: SV: A very excite game
>
>Hello,
>
>What game are you talking about?
>
>Regards Torstein
>-Oprindelig meddelelse-
>Fra: orion-interest [mailto:[EMAIL PROTECTED]]
>Sendt: 22. april 2002 13:15
>Til: [EMAIL PROTECTED]
>Emne: A very excite game
>
>This is a excite game
>This game is my first work.
>You're the first player.
>I hope you would like it.





Re: Internal Server Error

2002-04-24 Thread Castello Cities Internet Network, Inc.

Please remove [EMAIL PROTECTED]
from this mailing list!


- Original Message - 
From: "magnus-jowena chua" <[EMAIL PROTECTED]>
To: "Orion-Interest" <[EMAIL PROTECTED]>
Sent: Wednesday, April 24, 2002 1:53 AM
Subject: Internal Server Error


> Has anyone encountered this error? 
> 
> Syntax error in source
> /admin/secure/role_management/roles.jsp.java:13: Superclass
> com.orionserver.http.OrionHttpJspPage of class
> /admin/secure/role_management/roles.jsp not found. 
> public class /admin/secure/role_management/roles.jsp extends
> com.orionserver.http.OrionHttpJspPage
> 
> 
> 
> Jo
> 
> 





RE: OffTopic: Entity-Beans and relational structure

2002-04-24 Thread Chris Nias

If you get the Java 2 Enterprise Edition Developers Guide (I have v
1.2.1 pdf) from www.java.sun.com 
Then it is on page 135 - Mapping Table Relationships to Entity beans
It goes on to describe when you should use entity beans, and when to use
helper classes (hint: that is what you need!)
It also gives a good example with source code.
Be warned though; you will have to use BMP!


-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]] On Behalf Of Maximilian
Eberl
Sent: 24 April 2002 13:13
To: Orion-Interest
Subject: OffTopic: Entity-Beans and relational structure

Excuse me for asking off topic (and stupid), I am just learning to use
Entity Beans on Orion.

In most tutorials entity beans only represent ONE ROW from ONE TABLE,
but
relational databases go far beyond that.

I have a relational database for movies, actors, directors & writers.

So I have a table tblMovies
INT id, VARCHAR title, INT year, VARCHAR description
e.g.:
1, 'Casablanca',1942,'the classical movie'
2, 'The Maltese Falcon',1946,'begin of the dark series'
3, 'The Seawulf',1947,'after the novel from Jack London'
...

I have a tblActors (INT id, VARCHAR name)
1,'Humphrey Bogart'
2,'Ingrid Bergman'
3,'Edward G. Robinson'
...

and in the same manner tblDirectors, tblWriters

And I have tables for the relations, e.g.

tblRoles (INT filmid, INT actorid)
1,1
2,1
1,2
3,3
..
and also tblMisEnScene, tblScreenplay

meaning: Humphrey Bogart (actorid: 1) appeared in 'Casablanca' (filmid:
1)
and 'The Maltese Falcon' (filmid: 2), Ingrid Bergman (actorid: 2)
appeared
in 'Casablanca' (filmid: 1), Edward G. Robinson (actorid: 3) appeared in
'The Seawulf' (filmid: 3) . So this relational structure allows that one
film can have multiple actors, writers, directors and one actor can
appear
in multiple films. Relational basework, of course.

If I want to extract those films in which Humphrey Bogart appeared I can
do
this easily in SQL (used by a Servlet) with:

SELECT title FROM tblFilms WHERE id IN (SELECT filmid FROM tblRoles
WHERE
actorid=(SELECT id FROM tblActors WHERE name='Humphrey Bogart'))

(or as in my case with JOINS from MySQL)

When I do want to write an EJB-Application using this database, how do I
do
this ? How do I represent the relational data ?

Do I have to keep Entity Beans for EVERY row of ANY table ? Do I have to
create temporary tables with all information merged ? This creates a
problem
because one film can have one or more writers (Casablanca had three) and
(in
most cases) more than one actor.

This way  ?

public class MovieBean implements javax.ejb.EntityBean
{
String Title;
String[] Actors;
...
public String getTitle() throws RemoteException;
{...
}
public String[] getActors() throws RemoteException;
{
return Actors[];
}
}

using Arrays filled from the database with all actors, directors,
writers ?

Please give me a hint ! (Well, I know I am stupid. But it is a good work
to
help stupid persons)


Maximilian Eberl
http://www.derdickemax.de
mailto:[EMAIL PROTECTED]








Re: Accessing an EJB in Orion App server from a servlet in Iplanet

2002-04-23 Thread sbpodila

Did you got any error or exception while trying to access the bean?I think
you may get a security related exception

regards
Sasi.

- Original Message -
From: "Grum Ketema" <[EMAIL PROTECTED]>
To: "Orion-Interest" <[EMAIL PROTECTED]>
Sent: Wednesday, April 24, 2002 6:54 AM
Subject: Accessing an EJB in Orion App server from a servlet in Iplanet


> Hello,
>
> I have been trying to access an EJB deployed in Orion app server from a
> servlet deployed in Iplanet. I have
> the following code in the servlet
>
> Hashtable env = new Hashtable();
>
> env.put(Context.INITIAL_CONTEXT_FACTORY,
> "com.evermind.server.rmi.RMIInitialContextFactory");
> env.put(Context.PROVIDER_URL, "ormi://nap1/fredWeb");
> env.put(Context.SECURITY_PRINCIPAL, "admin");
> env.put(Context.SECURITY_CREDENTIALS, "xyz");
> Context ctx = new InitialContext(env);
>
> Object homeObject = ctx.lookup("fred/fredBean");
>
> The ctx.lookup() call hangs for ever. If I replace
> Object homeObject = ctx.lookup("fred/fredBean");
>
> With this same code I can access the bean from a stand alone client.
> I have been struggling with this for a few days and nothing seems to work.
> All suggestions are appreciated
> Regards,
> Grum
>
>
>
>





Re: A very excite game

2002-04-23 Thread JorgeDeFlon
Title: Meddelelse



it is another virus trying to catch us
It is not the first time that this happens 
here.
regards
 
 
 

  - Original Message - 
  From: 
  Torstein P. Nilsen 
  
  To: Orion-Interest 
  Sent: Monday, April 22, 2002 6:32 
AM
  Subject: SV: A very excite game
  
  Hello,
   
  What 
  game are you talking about?
   
  Regards Torstein
  

-Oprindelig meddelelse-Fra: orion-interest 
[mailto:[EMAIL PROTECTED]] Sendt: 22. april 2002 
13:15Til: [EMAIL PROTECTED]Emne: A very 
excite gameThis is a excite gameThis 
game is my first work.You're the first player.I hope you would like 
it. 


Re: Does Orion support PHP? How to enable it?

2002-04-23 Thread sachin mahajan



try this link 
 
http://www.orionsupport.com/articles/php.html
 
sachin

  - Original Message - 
  From: 
  wzfg 
  To: Orion-Interest 
  Sent: Tuesday, April 23, 2002 7:29 
  AM
  Subject: Does Orion support PHP? How to 
  enable it?
  
  Hi,Friend,
  As Httpd Server, Does Orion support PHP? if yes, 
  How can I enable it?
  Thanks a 
lot.


RE: XSL and Sitemesh on Orion

2002-04-22 Thread The elephantwalker



retry 
... 
-Original Message-From: The elephantwalker 
[mailto:[EMAIL PROTECTED]]Sent: Monday, April 22, 2002 8:59 
AMTo: Orion-Interest; [EMAIL PROTECTED]Subject: RE: 
XSL and Sitemesh on Orion
Dear Peter,
Theres a bug in sitemesh so that only jsp files work. I believe 
that xsl would have the same limitation. I reported this on sourceforge. There's 
an easy fix to this:http://sourceforge.net/tracker/index.php?func=detail&aid=534456&group_id=9890&atid=109890andhttp://sourceforge.net/tracker/index.php?func=detail&aid=534772&group_id=9890&atid=109890Of 
course you will need to make the changes in the sitemesh code, and re-build it, 
but that's a snap. I would attach the fix on elephantwalker, but I am unclear 
about the Opensymphony license...any way the links above give the exact changes 
necessary to make this work.Regards,the elephantwalkerwww.elephantwalker.com
-Original Message-From: 
[EMAIL PROTECTED][mailto:[EMAIL PROTECTED]]On 
Behalf Of Peter BeckSent: Monday, April 22, 2002 5:11 AMTo: 
Orion-InterestSubject: XSL and Sitemesh on OrionI am using 
OpenSymphony Sitemesh on Orion Application Server 1.5.4.The Orion XSL 
servlet (default config in global-web-application.xml)is used to transform 
XML files to HTML.The transformation works fine, but the transformed HTML is 
no longerpassed to the sitemesh filter and is displayed without 
layout.What can I do to make this work?Does anybody have a hint, 
please?Peter--Peter Beck, JOANNEUM RESEARCH 
Forschungsges.m.b.H.[EMAIL PROTECTED]


Re: timezone issue

2002-04-22 Thread Romen Law

ello,

Timezone is implemented as part of JDK, has nothing to do with the
application servers. I noticed that JDK1.3.0 had problems with timezone for
Sydney (Sydney had special daylight saving in year 2000 due to Olympic). But
JDK1.3.1 had fixed the problem.

cheers
romen

- Original Message -
From: "Pierre Metrailler - shockfish /" <[EMAIL PROTECTED]>
To: "Orion-Interest" <[EMAIL PROTECTED]>
Sent: Monday, April 22, 2002 8:02 PM
Subject: timezone issue


> Hi all,
>
> i've encountered a weird problem regarding timezones :
>
> My system timezone is set to Europe/Zurich, GMT+2, since we are in DST.
>
> Running a standalone java application and querying TimeZone.getDefault()
> returns the correct timezone, i.e. the one with the correct ID
> "Europe/Zurich". The time is also correct.
>
> Querying TimeZone.getDefault() within Orion yields a timezone with ID
> "Custom" ! The offset is almost correct, excepted that it doesnt support
> the daylight saving. (GMT+1). (TimeZone.getDefault()).useDaylightTime()
> returns false, which is incorrect. Hence, the time is 1 hour late.
>
> In short, Orion does not properly build the right timezone from the system
> settings. Is there any way to address this problem ?
>
> Regards,
>
> Pierre
>
> ___
> Pierre Metrailler, Software Engineer & System Administrator
> S h o c k f i s h Ltd, Event Communication Systems
> PSE C - Parc Scientifique, CH-1015 Lausanne EPFL
> Switzerland
>
> public key http://shockfish.com/keys/pierre.asc
>
> "Enabling face-to-face communication."
>
>
>





Re: WARNING. You tried to send a potential virus or unauthorised code

2002-04-22 Thread Robert E. Moran

can you eliminate this???

[EMAIL PROTECTED] wrote:

>The Star Internet anti-virus service, powered by MessageLabs, discovered
>a potential virus or unauthorised code (such as a joke program or
>trojan) in an email sent by you.
>
>The email has now been quarantined and was not delivered.
>
>To help identify the mail:
>
>The message sender was 
>[EMAIL PROTECTED]
>[EMAIL PROTECTED]
>[EMAIL PROTECTED]
>[EMAIL PROTECTED]
>
>The message was titled The Garden of Eden
>The message recipients were 
>[EMAIL PROTECTED]
>[EMAIL PROTECTED]
>
>The message date is Mon, 22 Apr 2002 12:42:09 +0300
>The virus or unauthorised code identified in the email is:
>/var/qmail/queue/split/0/339476_2MAUDIO-X-MIDI_CTPlug.exe
>Found the W32/Klez.gen@MM virus !!!
>
>
>Some viruses forge the sender address.  For more information on this 
>please use the link to the FAQ's at the bottom of this page.
>
>The message was diverted into the virus holding pen on
>mail server server-18.tower-1.messagelabs.com (pen id 339476_1019486287)
>and will be held for 30 days before being destroyed.
>
>For more information please visit
>http://www.star.net.uk/Support/Faq/FAQ.asp
>
>Corporate Users:
>If you sent the email from a corporate network, you should first 
>contact your local IT Helpdesk or System Administrator for advice.
>They will be able to help you disinfect your workstation.
>
>If you would like further information on how to subscribe to the Star
>Internet anti-virus service, a proactive anti-virus service working 
>around the clock, around the globe, please complete our enquiry form
>
>Personal or Home Users:
>If you sent the email from a personal computer or home account,
>you will need to disinfect your computer yourself.  Please contact
>your anti-virus software vendor for support or obtain help from
>http://www.star.net.uk/Support/Faq/FAQ.asp
>
>
>This email has been scanned for all viruses by the MessageLabs SkyScan
>service. For more information on a proactive anti-virus service working
>around the clock, around the globe, visit http://www.messagelabs.com
>
>
>
>

-- 
Robert E. Moran
Digital Constructs Inc.
759 North Park Avenue
Redding, CT 06896
Tel: 203-452-1116  Fax: 203-452-0416
www.dconstructs.com
E-mail [EMAIL PROTECTED]
Travel e-mail [EMAIL PROTECTED]
"Confusion is a misapprehension of a higher order." - Henry Miller








RE: problems w/ multiple queues w/ MDBs

2002-04-22 Thread Shawn Pourchot

Orion's JMS is really buggy, it fails almost all the compatibility tests for
JMS.

We did a similar thing that you are experimenting with, only the MDB
response queue is a queue on OpenJMS.  I believe our first attempts to do
this on Orion completely failed.  I haven't tried it with 1.5.4, but until
someone says Orion passes all JMS tests I wouldn't bother.

I've found OpenJMS to be stable and we use it for all the topics and queues
accept a few which are attached MDB's.

http://openjms.exolab.org/

-Original Message-
From: Kosten, Steve [mailto:[EMAIL PROTECTED]]
Sent: Thursday, April 18, 2002 1:29 PM
To: Orion-Interest
Subject: problems w/ multiple queues w/ MDBs


Hi,

Was wondering if anyone ran into this problem and has insight they can
share.

I started experimenting w/ Message Driven Beans and  have deployed a MDB
that was attached to a Queue.  It worked and was performing my logic w/in
onMessage().  I wanted to have it reply to another Queue so created a second
Queue to reply to (simply by adding it to jms.xml)  and this was deployed
(as witnessed on the orion console).  The problem I'm encountering is that
my original messages are no longer received once I added the second queue
w/in jms.xml.  I haven't even changed any code.  By commenting out the new
Queue w/in jms.xml, my original MDB again works.  Any ideas on this?  

I'm running 1.5.2.

My jms.xml looks like


http://www.orionserver.com/dtds/jms-server.dtd";>




  




Test of MDB
 



reply Queue












Thanks,

Steve





Re: Orion with Axis Part 2

2002-04-22 Thread Peter Beck


Hello Eddie!

Today I started with SOAP on Orion, and I get almost the same error 
message as you do.
Did you solve the problem you had (below).
Which sample did you try?

I tried the addr example.
(First you have to prepare and compile it, then deploy the service and 
run the demo)
When I move the orion default website to http://localhost:8080/ it 
works, otherwise it fails with the error message below.

Using proxy without session maintenance.
 >> Storing address for 'Purdue Boilermaker'
Exception in thread "main" The AXIS engine could not find a target 
service to in
voke!  targetService is null
at org.apache.axis.message.SOAPFaultBuilder.endElement(Unknown 
Source)
at 
org.apache.axis.encoding.DeserializationContextImpl.endElement(Unknown 
Source)
at 
org.apache.xerces.parsers.AbstractSAXParser.endElement(AbstractSAXParser.java:559)

Maybe we can have a look at it together.
On the orion mailing list there are not too many responses on that, I'm 
afraid...

regards,
Peter

Eddie Post wrote:

> Hellu,
>
> Ok, so I had my Axis working under TomCat.
> I am now trying to have it work under Orion, which is what I really want.
> However I do get an error when deploying the service, namely:
> ---
>http://xml.apache.org/axis/";>The AXIS 
> engine could not find a target service to invoke!  targetService is 
> http://xml.apache.org/axis/wsdd/
;
> at org.apache.axis.server.AxisServer.invoke(AxisServer.java:282)
> at 
> org.apache.axis.transport.http.AxisServlet.doPost(AxisServlet.java:485)
 
>
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:211)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:309)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:336)
> at com.evermind._deb._lnc(.:514)
> at com.evermind._deb._wmb(.:170)
> at com.evermind._co._wbb(.:581)
> at com.evermind._co._fs(.:189)
> at com.evermind._bt.run(.:62)
> 
> ---
>
> Please some help as I don't understand well where he is looking ?
> My configuration: I have configured Axis as a J2EE application with 
> only one Web part. The Axis home page and everyting works, but when 
> deploying the service it goes wrong (I use Orion 1.5.4).
>
> I followed the instrcutions on:
> http://www.candlelightsoftware.com/orion-axis.html
> and on:
> http://kb.atlassian.com/content/tutorials/candlelight/axis.html
> but no luck.
>
> Also am I a bit confused about the correct jar version of Xerces.jar, 
> Xalan.jar, etc maybe that this cause a problem but I am not sure.
>
>
> Please some help ?
> Eddie
>
> _
> Chat with friends online, try MSN Messenger: http://messenger.msn.com
>
>
>
-- 
Peter Beck, JOANNEUM RESEARCH Forschungsges.m.b.H.
[EMAIL PROTECTED]







RE: How can I simplify a URL?

2002-04-22 Thread Alex Paransky

I decided to take Scott's Farquhar approach to url simplification, here is
what I decided on:

http://www.myprofiles.com/member/profile/apara_personal

Other options were viable but I did not choose them for the following
reasons:

1. A filter would have difficulties distinguishing between IMG and other
types of requests

2. Using HTTP error 404 page to attempt to read the profile did not seem
clean

3. Using a virtual server along with response.sendRedirect(new server) would
have exposed the
virtual server to the user.  I did not want to do this, since once the user
gets to the virtual server it's difficult to return back to the original.
Besides, now I would have to maintain two different applications.

Thanks for all your help.

-AP_
http://www.alexparansky.com
Java/J2EE Architect/Consultant
http://www.myprofiles.com/member/profile/apara_personal

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]On Behalf Of Scott Farquhar
Sent: Thursday, April 18, 2002 3:04 AM
To: Orion-Interest
Subject: Re: How can I simplify a URL?


Just have one directory level.

eg:
http://view.myprofiles.com/p/127

Then map the servlet to /p*

That avoids problems with images.

Cheers,
Scott

Alex Paransky wrote:
> I have a url which looks like this:
>
> http://www.myprofiles.com/view.do?profileId=127
>
> I would like to be able to replace it with:
>
> http://view.myprofiles.com/127
>
> I know how to create a new website with view.myprofiles being serviced by
> orion.  I am just not sure how to map the /127 to execute
> /view.do?profileId=127.
>
> I was thinking of mapping a servlet to "/" context, however, the concern I
> have is that if there are any images I don't want to servlet to process
> them.  Also, will the 
> Thanks for any suggestions.
>
> -AP_
> http://www.alexparansky.com
> Java/J2EE Architect/Consultant
> http://www.myprofiles.com/member/view.do?profileId=127
>
>
>


--
Scott Farquhar :: [EMAIL PROTECTED]

Atlassian :: http://www.atlassian.com
  Supporting YOUR J2EE World







Re: JNDI question: client talking to EJBs on multiple app servers

2002-04-19 Thread Lachezar Dobrev

  Well... "dedicated.connection=true" is not documented :)))
  Second. There ARE drawbacks.
  The method you show in the message will lead you to resource leakage.
  Try reusing contexts for one and the same target.
  Anyway. The Answer is: YES, it WILL work.

  However. The classes, for the Home and remote interfaces for the beans you
are looking-up for have to be in the Bootstrap class-path (in most cases in
the boot jar, or specified on the commandline). Otherwise you will get a
ClassCastException ( "MyClass" implements "MyInterface" and not
"MyInterface" and the VM thinks these are different classes :((( ).

  Anyway. for a simple stand-alone client this works fine, as long as you
stay out of dynamic-class-loading and keep in mind, that each ne Context
gets another thread, socket and leads to resource shortage.

  Otherwise the code in your case would work just fine. :)))

  Lachezar

> Brilliant -- thanks. What I couldn't find was any documentation
> on what goes in the environment Hashtable. :)
>
> What does the dedicated.connection=true property do? If I were
> to do this:
>
>   public FooRemote getRemote(String jndiURL)
>   {
>  Hashtable env = new Hashtable();
>  env.put(Context.PROVIDER_URL, jndiURL);
>  InitialContext context = new InitialContext(env);
>  Object ref = context.lookup(EJB_NAME);
>  FooHome home =
>   (FooHome)PortableRemoteObject.narrow(ref, FooHome.class);
>  FooRemote remote = home.create();
>  return fooRemote;
>   }
>
>   public void doStuff()
>   {
> FooRemote beanOne = getRemote("ormi://fred/app");
> FooRemote beanTwo = getRemote("ormi://wilma/app");
> // do stuff...
>   }
>
> Will it work? Or is the remote going to get confused as to
> which server it points to?
>
> On Thu, 2002-04-18 at 00:53, Lachezar Dobrev wrote:
> >   Hi.
> >   A working model is to create two Initial Context-s for each server.
> >   Use a "dedicated.connection=true" property to create the context.
> >   The "dedicated.connection" however leads to resource leakage, and if
you
> > keep creating more and more of them you will eventualy get
> > "java.lang.OutOfMemoryError: Can not create native thread" at some
200-300
> > contexts.
> >   If you create an context for both servers, and then use them later you
> > might not have this problem.
> >
> >   public static Context[] connections;
> >
> >   public void ejbCreate(){
> > if ( connections != null ) return;
> > Hashtable env = new Hashtable();
> >
> > // Use any of these.
> > env.put("dedicated.connection", Boolean.TRUE );
> > //env.put("dedicated.connection", "true");
> >
> > // Set up user, pass,
> > // factory (RMIInitialContextFactory).
> > env.put("...", ""); // Set up things
> >
> > connections = new Context[2];
> >
> > // For The first server
> > env.put(Context.PROVIDER_URL, "ormi://Comp1/App1");
> > connections[0] = new InitialContext(env);
> >
> > // Now for the other server
> > env.put(Context.PROVIDER_URL, "ormi://Comp2/App2");
> > connections[1] = new InitialContext(env);
> >   }
> >
> >   public void connectServer1(){
> > connections[0].lookup("MyBean1");
> >   }
> >   public void connectServer2(){
> > connections[1].lookup("MyBean2");
> >   }
> >
> >You DO understand this is Orion-specific, right?
> >
> >   Good luck. Lachezar.
> >
> > > I've got the same beans deployed on two different app servers (each
> > > backed by a different database). I want my client to talk to both.
> > > Say the two app servers are running on machines named Fred and Wilma;
> > >
> > > I know I can choose which one I talk to by setting
> > >
> > >   java.naming.provider.url=ormi://fred/app
> > >
> > > or
> > >
> > >   java.naming.provider.url=ormi://wilma/app
> > >
> > > But how do I switch at run time? I don't want to keep changing the
> > > system property every time I get an InitialContext(), because the
> > > system property is a global setting and one piece of code might not
> > > know what another piece of code is doing. Is there a way to specify
> > > the JNDI url when you create an InitialContext?
> > >
> > >
> > >
> >
> >
> >
>
>





Re: Creating a Service for launching Orion in Windows 2000

2002-04-18 Thread Scott Farquhar

There are many ways of running as a service documented here:

   http://kb.atlassian.com/content/orionsupport/articles/orserv.html

Cheers,
Scott

Matt Siegfried wrote:
> I have followed the steps I found in the posting on OrionServer.com to
> create a service that will automatically launch Orion, but I have not
> managed to make this work.  Currently the Dos window must stay open to keep
> Orion initialized.  I do not want to have this dos window always open.  How
> can I solve this?  If anyone has done this before, I would really appreciate
> all the information you could give to accomplish this.
> 
> Thank you
> Matt
> 
> 


-- 
Scott Farquhar :: [EMAIL PROTECTED]

Atlassian :: http://www.atlassian.com
  Supporting YOUR J2EE World






Re: Creating a Service for launching Orion in Windows 2000

2002-04-18 Thread Brian Smith

Here is my srvstart.exe INI file for OC4J. I suppose one for Orion would 
be similar.

[OracleOC4J]
#to install the service: srvstart install OracleOC4J -c 
c:\oracle\conf\oc4j\service.ini
#to remove  the service: srvstart remove  OracleOC4J
#make sure that the system PATH inclues the folder
#containing the srvstart.exe
#the next item is all on one line
startup=e:\software\sun\jdk1.3.1_03\jre\bin\java -Xrs -jar 
c:\oracle\j2ee\home\orion.jar -config 
c:\oracle\j2ee\home\config\server.xml -err 
c:\oracle\j2ee\home\log\stderr.log -out c:\oracle\j2ee\home\log\stdout.log

startup_dir=c:\oracle\j2ee\home
shutdown_method=command
# the next item is all on one line
shutdown=e:\software\sun\jdk1.3.1_03\jre\bin\java -Xrs -jar 
c:\oracle\j2ee\home\admin.jar ormi://localhost/ admin password -shutdown

auto_restart=y
restart_interval=30





Re: JNDI question: client talking to EJBs on multiple app servers

2002-04-18 Thread David Moles

Brilliant -- thanks. What I couldn't find was any documentation
on what goes in the environment Hashtable. :) 

What does the dedicated.connection=true property do? If I were
to do this:

  public FooRemote getRemote(String jndiURL)
  {
 Hashtable env = new Hashtable();
 env.put(Context.PROVIDER_URL, jndiURL);
 InitialContext context = new InitialContext(env);
 Object ref = context.lookup(EJB_NAME);
 FooHome home = 
  (FooHome)PortableRemoteObject.narrow(ref, FooHome.class);
 FooRemote remote = home.create();
 return fooRemote;
  }

  public void doStuff()
  {
FooRemote beanOne = getRemote("ormi://fred/app");
FooRemote beanTwo = getRemote("ormi://wilma/app");
// do stuff...
  }

Will it work? Or is the remote going to get confused as to
which server it points to?

On Thu, 2002-04-18 at 00:53, Lachezar Dobrev wrote:
>   Hi.
>   A working model is to create two Initial Context-s for each server.
>   Use a "dedicated.connection=true" property to create the context.
>   The "dedicated.connection" however leads to resource leakage, and if you
> keep creating more and more of them you will eventualy get
> "java.lang.OutOfMemoryError: Can not create native thread" at some 200-300
> contexts.
>   If you create an context for both servers, and then use them later you
> might not have this problem.
> 
>   public static Context[] connections;
> 
>   public void ejbCreate(){
> if ( connections != null ) return;
> Hashtable env = new Hashtable();
> 
> // Use any of these.
> env.put("dedicated.connection", Boolean.TRUE );
> //env.put("dedicated.connection", "true");
> 
> // Set up user, pass,
> // factory (RMIInitialContextFactory).
> env.put("...", ""); // Set up things
> 
> connections = new Context[2];
> 
> // For The first server
> env.put(Context.PROVIDER_URL, "ormi://Comp1/App1");
> connections[0] = new InitialContext(env);
> 
> // Now for the other server
> env.put(Context.PROVIDER_URL, "ormi://Comp2/App2");
> connections[1] = new InitialContext(env);
>   }
> 
>   public void connectServer1(){
> connections[0].lookup("MyBean1");
>   }
>   public void connectServer2(){
> connections[1].lookup("MyBean2");
>   }
> 
>You DO understand this is Orion-specific, right?
> 
>   Good luck. Lachezar.
> 
> > I've got the same beans deployed on two different app servers (each
> > backed by a different database). I want my client to talk to both.
> > Say the two app servers are running on machines named Fred and Wilma;
> >
> > I know I can choose which one I talk to by setting
> >
> >   java.naming.provider.url=ormi://fred/app
> >
> > or
> >
> >   java.naming.provider.url=ormi://wilma/app
> >
> > But how do I switch at run time? I don't want to keep changing the
> > system property every time I get an InitialContext(), because the
> > system property is a global setting and one piece of code might not
> > know what another piece of code is doing. Is there a way to specify
> > the JNDI url when you create an InitialContext?
> >
> >
> >
> 
> 
> 






Re: Creating a Service for launching Orion in Windows 2000

2002-04-18 Thread Shal Jain

If you are using JNT to to launch orion as a service and assuming orion in
installed on d:\orion

the following line will install orion to run as a service named Orion_Server

jnt "/InstallAsService:Orion_Server" "/SDd:\orion" -jar orion.jar -out
d:\orion\log\stdout.log -err d:\orion\log\stderr.log

You need to then go ahead and manually start the service in the SCM.From
this point on, orion will restart when the os restarts.
I have this running under Win2K w/out any issues.





- Original Message -
From: "Matt Siegfried" <[EMAIL PROTECTED]>
To: "Orion-Interest" <[EMAIL PROTECTED]>
Sent: Wednesday, April 17, 2002 9:46 AM
Subject: Creating a Service for launching Orion in Windows 2000


> I have followed the steps I found in the posting on OrionServer.com to
> create a service that will automatically launch Orion, but I have not
> managed to make this work.  Currently the Dos window must stay open to
keep
> Orion initialized.  I do not want to have this dos window always open.
How
> can I solve this?  If anyone has done this before, I would really
appreciate
> all the information you could give to accomplish this.
>
> Thank you
> Matt
>
>





Re: How can I simplify a URL?

2002-04-18 Thread vertigrated

how does this obfuscation "simplify" the processing?
> I have a url which looks like this:
> 
> http://www.myprofiles.com/view.do?profileId=127
> 
> I would like to be able to replace it with:
> 
> http://view.myprofiles.com/127
> 
> I know how to create a new website with view.myprofiles being serviced by
> orion.  I am just not sure how to map the /127 to execute
> /view.do?profileId=127.
> 
> I was thinking of mapping a servlet to "/" context, however, the concern I
> have is that if there are any images I don't want to servlet to process
> them.  Also, will the  
> Thanks for any suggestions.
> 
> -AP_
> http://www.alexparansky.com
> Java/J2EE Architect/Consultant
> http://www.myprofiles.com/member/view.do?profileId=127
> 
> 




RE: JNDI question: client talking to EJBs on multiple app servers

2002-04-18 Thread Greg Davis

We have a similary situation where a tool we use needs to switch between
development,test,and production. We just setup a simple class to reset our
InitialContext by closing the old one and passing in the properties when the
switch is requested.  We created a property file like this:

development.applicationServer=com.evermind.server.ApplicationClientInitialCo
ntextFactory
development.applicationServerUrl=ormi://fred
development.appServerLogin=user
development.appServerPassword=1234
production.applicationServer=com.evermind.server.ApplicationClientInitialCon
textFactory
production.applicationServerUrl=ormi://wilma
production.appServerLogin=user
production.appServerPassword=1234

When we initialize the app we have a member variable jndiContext which is
used in the app.  The following is our method stripped down to give you the
basics. With it you can both set the memeber varaible and return the
context. You could use it either way.

  /**
   * Gets the context.
   * @param environment Should be the prefix in the properties file (i.e.
development,test,production)
   * @returns The jndiContext to the App Server.
   */
  protected Context getContext(String environment)
  {
if(jndiContext == null)
{
jndiContext.close();
}
  try
  {
String applicationServer = System.getProperty(environment +
".applicationServer");
String applicationServerUrl = System.getProperty(environment +
".applicationServerUrl");
String appServerLogin = System.getProperty(environment +
".appServerLogin");
String appServerPassword = System.getProperty(environment +
".appServerPassword");

Hashtable props = new Hashtable();
props.put("java.naming.factory.initial", applicationServer);
props.put("java.naming.provider.url", applicationServerUrl);
props.put("java.naming.security.principal", appServerLogin);
props.put("java.naming.security.credentials", appServerPassword);

jndiContext = new InitialContext(props);
  }
  catch(Exception e)
  {}
}
return jndiContext;
  }

Hope this helps...

Greg

-Original Message-
From: David Moles [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, April 17, 2002 4:06 PM
To: Orion-Interest
Subject: JNDI question: client talking to EJBs on multiple app servers


I've got the same beans deployed on two different app servers (each
backed by a different database). I want my client to talk to both.
Say the two app servers are running on machines named Fred and Wilma;

I know I can choose which one I talk to by setting

  java.naming.provider.url=ormi://fred/app

or

  java.naming.provider.url=ormi://wilma/app

But how do I switch at run time? I don't want to keep changing the
system property every time I get an InitialContext(), because the
system property is a global setting and one piece of code might not
know what another piece of code is doing. Is there a way to specify
the JNDI url when you create an InitialContext?







RE: How can I simplify a URL?

2002-04-18 Thread Juan Pablo Lorandi

Ideas:

1) Create a filter to handle this.

OR

2) Use an error page for HTTP error 404 which redirects or includes

HTH,

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 
> Alex Paransky
> Sent: Thursday, April 18, 2002 7:07 AM
> To: Orion-Interest
> Subject: How can I simplify a URL?
> 
> 
> I have a url which looks like this:
> 
> http://www.myprofiles.com/view.do?profileId=127
> 
> I would like to be able to replace it with:
> 
http://view.myprofiles.com/127

I know how to create a new website with view.myprofiles being serviced
by orion.  I am just not sure how to map the /127 to execute
/view.do?profileId=127.

I was thinking of mapping a servlet to "/" context, however, the concern
I have is that if there are any images I don't want to servlet to
process them.  Also, will the http://www.alexparansky.com
Java/J2EE Architect/Consultant
http://www.myprofiles.com/member/view.do?profileId=127







Re[2]: How can I simplify a URL?

2002-04-18 Thread Robert Virkus

Hallo Axel,

you also can set up a virtual server like www1.myprofiles.com
in which you can run your applications.
(http://kb.atlassian.com/content/orionsupport/articles/vhosts.html)

Then map "/*" of your main-domain (www.myprofiles.com) to your servlet and redirect
every request to your virtual server.
(response.sendRedirect("http://www1.myprofiles.com/view.do?profileId=127";); )
Put pictures and so on on your virtual server, then you have no probs.

Greetings
   Robert


Thursday, April 18, 2002, 12:03:44 PM, you wrote:


SF> Just have one directory level.

SF> eg:
SF> http://view.myprofiles.com/p/127

SF> Then map the servlet to /p*

SF> That avoids problems with images.

SF> Cheers,
SF> Scott

SF> Alex Paransky wrote:
>> I have a url which looks like this:
>> 
>> http://www.myprofiles.com/view.do?profileId=127
>> 
>> I would like to be able to replace it with:
>> 
>> http://view.myprofiles.com/127
>> 
>> I know how to create a new website with view.myprofiles being serviced by
>> orion.  I am just not sure how to map the /127 to execute
>> /view.do?profileId=127.
>> 
>> I was thinking of mapping a servlet to "/" context, however, the concern I
>> have is that if there are any images I don't want to servlet to process
>> them.  Also, will the > 
>> Thanks for any suggestions.
>> 
>> -AP_
>> http://www.alexparansky.com
>> Java/J2EE Architect/Consultant
>> http://www.myprofiles.com/member/view.do?profileId=127
>> 
>> 
>> 




Mit freundlichen Grüßen,
  Robert Virkus
  Director Mobile Solutions

-- 
Robert Virkus
scaraboo GmbH
mobile Entertainment
Georg-Wulf-Str.4-6
28199 Bremen
Germany
phone  +49 - (0)421 - 59 67 549
fax+49 - (0)421 - 59 67 567
mobile +49 - (0)171 - 35 31 635
[EMAIL PROTECTED]
www.scaraboo.de
wap.scaraboo.de


Aus Rechts- und Sicherheitsgruenden ist die in dieser E-Mail gegebene
Information nicht rechtsverbindlich. Eine rechtsverbindliche Bestaetigung
reichen wir Ihnen gerne auf Anforderung in schriftlicher Form nach. Beachten
Sie bitte, dass jede Form der unautorisierten Nutzung, Veroeffentlichung,
Vervielfaeltigung oder Weitergabe des Inhalts dieser E-Mail nicht gestattet
ist. Diese Nachricht ist ausschliesslich fuer den bezeichneten Adressaten
oder dessen Vertreter bestimmt. Sollten Sie nicht der vorgesehene Adressat
dieser E-Mail oder dessen Vertreter sein, so bitten wir Sie, sich mit dem
Absender der E-Mail in Verbindung zu setzen.

For legal and security reasons the information provided in this e-mail is
not legally binding. Upon request we would be pleased to provide you with a
legally binding confirmation in written form. Any form of unauthorised use,
publication, reproduction, copying or disclosure of the content of this
e-mail is not permitted. This message is exclusively for the person
addressed or their representative. If you are not the intended recipient of
this message and its contents, please notify the sender immediately.





Re: how to use unchecked tag?

2002-04-18 Thread Ray Harrison
 You aren't missing anything. Orion 1.5.4 ignores this flag completely and was reported as bug #732 in bugzilla. This has been fixed for the next release but in the meantime you'll have to get creative - comment out the method-check section of the ejb-jar.xml, that sort of thing. Although if you are using security, as you seem to be, you may want to double-check your principals.xml file to verify that all is well with that - I never tried invoking methods from Swing clients but JSP clients after logging in worked just fine.
Cheers
Ray
  Anil D <[EMAIL PROTECTED]> wrote: 
Hi allI have a question regarding the use of tag in ejb-jar.xml. The docs says if we specify a method as unchecked in the ejb-jar.xml no user name and password nee d to be given while invoking that method. But when I run such a method(from a Swing client) the login screen is shown and evenif I give a valid username and password it throws an exception saying that "admin is not authorized to call this method."What am I missing?I am using orion 1.5.4TIA AnilDo You Yahoo!?
Yahoo! Tax Center - online filing with TurboTax

Re: How can I simplify a URL?

2002-04-18 Thread Scott Farquhar

Just have one directory level.

eg:
http://view.myprofiles.com/p/127

Then map the servlet to /p*

That avoids problems with images.

Cheers,
Scott

Alex Paransky wrote:
> I have a url which looks like this:
> 
> http://www.myprofiles.com/view.do?profileId=127
> 
> I would like to be able to replace it with:
> 
> http://view.myprofiles.com/127
> 
> I know how to create a new website with view.myprofiles being serviced by
> orion.  I am just not sure how to map the /127 to execute
> /view.do?profileId=127.
> 
> I was thinking of mapping a servlet to "/" context, however, the concern I
> have is that if there are any images I don't want to servlet to process
> them.  Also, will the  
> Thanks for any suggestions.
> 
> -AP_
> http://www.alexparansky.com
> Java/J2EE Architect/Consultant
> http://www.myprofiles.com/member/view.do?profileId=127
> 
> 
> 


-- 
Scott Farquhar :: [EMAIL PROTECTED]

Atlassian :: http://www.atlassian.com
  Supporting YOUR J2EE World





Re: JNDI question: client talking to EJBs on multiple app servers

2002-04-17 Thread Lachezar Dobrev

  Hi.
  A working model is to create two Initial Context-s for each server.
  Use a "dedicated.connection=true" property to create the context.
  The "dedicated.connection" however leads to resource leakage, and if you
keep creating more and more of them you will eventualy get
"java.lang.OutOfMemoryError: Can not create native thread" at some 200-300
contexts.
  If you create an context for both servers, and then use them later you
might not have this problem.

  public static Context[] connections;

  public void ejbCreate(){
if ( connections != null ) return;
Hashtable env = new Hashtable();

// Use any of these.
env.put("dedicated.connection", Boolean.TRUE );
//env.put("dedicated.connection", "true");

// Set up user, pass,
// factory (RMIInitialContextFactory).
env.put("...", ""); // Set up things

connections = new Context[2];

// For The first server
env.put(Context.PROVIDER_URL, "ormi://Comp1/App1");
connections[0] = new InitialContext(env);

// Now for the other server
env.put(Context.PROVIDER_URL, "ormi://Comp2/App2");
connections[1] = new InitialContext(env);
  }

  public void connectServer1(){
connections[0].lookup("MyBean1");
  }
  public void connectServer2(){
connections[1].lookup("MyBean2");
  }

   You DO understand this is Orion-specific, right?

  Good luck. Lachezar.

> I've got the same beans deployed on two different app servers (each
> backed by a different database). I want my client to talk to both.
> Say the two app servers are running on machines named Fred and Wilma;
>
> I know I can choose which one I talk to by setting
>
>   java.naming.provider.url=ormi://fred/app
>
> or
>
>   java.naming.provider.url=ormi://wilma/app
>
> But how do I switch at run time? I don't want to keep changing the
> system property every time I get an InitialContext(), because the
> system property is a global setting and one piece of code might not
> know what another piece of code is doing. Is there a way to specify
> the JNDI url when you create an InitialContext?
>
>
>





  1   2   3   4   5   6   7   8   9   10   >