Re: starting orion application server

2001-10-09 Thread Mark Bernardinis

i actually spelled mine persistence and it worked. i had the same problem
when i first installed on a win32 system and i just created the directory
and it worked upon loading up the second time. the file that is called
transaction.state does not need to be created (in my instance). i am using
jdk1.3 from sun on a windows 98 machine. just give it a try and create the
directory with that spelling i gave you and see how it goes (it can't hurt
:-) hope all goes well.

mark

- Original Message -
From: yilmaz [EMAIL PROTECTED]
To: Orion-Interest [EMAIL PROTECTED]
Sent: Tuesday, October 09, 2001 4:46 PM
Subject: Re: starting orion application server


 though in my last email i misspelled it , the directory name i created is
 correct (persistance, right?)
 cheers...
 - Original Message -
 From: Mark Bernardinis [EMAIL PROTECTED]
 To: Orion-Interest [EMAIL PROTECTED]
 Sent: Tuesday, October 09, 2001 7:02 AM
 Subject: Re: starting orion application server


  have you spelled persistance right???
 
   hi E.W!
   thanks for your reply, but it seems you didn't receive my last
   message. i am on win 2000, and i used winzip to unpack orion package.
   tools.jar is already in c:\orion directory and i already created a
   persistence directory, but everysthing is still same. What can be
   wrong, where am i mistaken? Can you help me with this?
   thank you very much for taking time and for your concern.
   best regards :)
   - Original Message -
   From: The elephantwalker [EMAIL PROTECTED]
   To: Orion-Interest [EMAIL PROTECTED]
   Sent: Monday, October 08, 2001 12:14 PM
   Subject: RE: starting orion application server
  
  
   Dear Yilmaz,
  
   I have seen this problem before in linux. If you used jar to unzip
   the
   Orion distribution, the directories created did not have the bit set
   for each orion directory. This prevents Orion from creating files in
   these directories. You need to do a chmod +d to all of these
   directories, and their sub directories. Its a pain in the arse (excuse
   my old english), but so it goes.
  
   Regards,
  
   the elephantwalker
   www.elephantwalker.com
  
   -Original Message-
   From: [EMAIL PROTECTED]
   [mailto:[EMAIL PROTECTED]]On Behalf Of yilmaz
   Sent: Sunday, October 07, 2001 6:44 PM
   To: Orion-Interest
   Subject: Re: starting orion application server
  
  
   hi Steve,
   thanks for your kind reply.
   I created the persistance directory, but the error is still
   persisting :) ( i already copied the tools.jar into the orion home
   directory, and i am using sun's jdk1.3.1 )
   below is the log file i tried to start it up:
  
   2001/10/8 ä¸Så^ 9:41 1.5.2 Started
   2001/10/8 ä¸Så^ 9:41 1.5.2 Stopped (JVM termination)
  
   i am having the same error message saying that
   (persistance/transaction.state) doesn't exist.Obviously it can't find
   the transaction.state file. How should i create it , or do you have a
   sample
   one
   so that i can configure according to my environment.Thanks in
   advance. cheers :)
   - Original Message -
   From: Stephen Davidson [EMAIL PROTECTED]
   To: Orion-Interest [EMAIL PROTECTED]
   Sent: Saturday, October 06, 2001 11:05 PM
   Subject: Re: Orion-Interest subscription notification
  
  
Hi Yilmaz.
   
You are obviously new here, or you would know that you do not need
to threaten in order to get help.
   
On the topic of the persitance directory, there is an issue where
this directory is not created automatically under WinNT/Win2K.  So
you have to create it manually yourself.  You do NOT need to put
the orion directory into your classpath.
   
The following command issued in the orion directory should fix your
issue with the transaction.state file.
   
C:\orionmkdir persistance
   
I know about this because one of the developers on my team ran into
this issue yesterday when setting up Orion on his Win2K box.
   
If you have not done so already, you also need to copy the
tools.jar file from your jdk directory into your c:\orion
directory.
   
FYI, our testing has indicated that orion works best on Bea's JDK,
Sun's JDK, or IBM's Hotspot JDK.  On Microsoft's JVM, we sometimes
get for no apparent reason some rather funky errors that go away
when we switch JVM's.
   
Regards,
Steve
   
   
yilmaz wrote:

 hi guys,
 i am new to orion,
 i already downloaded orion application server, and unzipped under
   c:\orion
 directory.
 according to instructions i also put the tools.jar under c:\orion
 Next on command window , i ran  java -jar orion.jar -install
 which prompted me to enter a password, and it said installation
 was
   done
 though i was surprised to  finish so fast,  i tried running orion
 by java -jar orion.jar
 as i expected it didn't start , but gave me the following strange
   error:

 C:\orionjava -jar orion.jar
 Fatal Error

Re: starting orion application server

2001-10-08 Thread Mark Bernardinis

have you spelled persistance right???

 hi E.W!
 thanks for your reply, but it seems you didn't receive my last
 message. i am on win 2000, and i used winzip to unpack orion package.
 tools.jar is already in c:\orion directory and i already created a
 persistence directory, but everysthing is still same. What can be
 wrong, where am i mistaken? Can you help me with this?
 thank you very much for taking time and for your concern.
 best regards :)
 - Original Message -
 From: The elephantwalker [EMAIL PROTECTED]
 To: Orion-Interest [EMAIL PROTECTED]
 Sent: Monday, October 08, 2001 12:14 PM
 Subject: RE: starting orion application server
 
 
 Dear Yilmaz,

 I have seen this problem before in linux. If you used jar to unzip
 the
 Orion distribution, the directories created did not have the bit set
 for each orion directory. This prevents Orion from creating files in
 these directories. You need to do a chmod +d to all of these
 directories, and their sub directories. Its a pain in the arse (excuse
 my old english), but so it goes.

 Regards,

 the elephantwalker
 www.elephantwalker.com

 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED]]On Behalf Of yilmaz
 Sent: Sunday, October 07, 2001 6:44 PM
 To: Orion-Interest
 Subject: Re: starting orion application server


 hi Steve,
 thanks for your kind reply.
 I created the persistance directory, but the error is still
 persisting :) ( i already copied the tools.jar into the orion home
 directory, and i am using sun's jdk1.3.1 )
 below is the log file i tried to start it up:

 2001/10/8 上午 9:41 1.5.2 Started
 2001/10/8 上午 9:41 1.5.2 Stopped (JVM termination)

 i am having the same error message saying that
 (persistance/transaction.state) doesn't exist.Obviously it can't find
 the transaction.state file. How should i create it , or do you have a
 sample
 one
 so that i can configure according to my environment.Thanks in
 advance. cheers :)
 - Original Message -
 From: Stephen Davidson [EMAIL PROTECTED]
 To: Orion-Interest [EMAIL PROTECTED]
 Sent: Saturday, October 06, 2001 11:05 PM
 Subject: Re: Orion-Interest subscription notification


  Hi Yilmaz.
 
  You are obviously new here, or you would know that you do not need
  to threaten in order to get help.
 
  On the topic of the persitance directory, there is an issue where
  this directory is not created automatically under WinNT/Win2K.  So
  you have to create it manually yourself.  You do NOT need to put
  the orion directory into your classpath.
 
  The following command issued in the orion directory should fix your
  issue with the transaction.state file.
 
  C:\orionmkdir persistance
 
  I know about this because one of the developers on my team ran into
  this issue yesterday when setting up Orion on his Win2K box.
 
  If you have not done so already, you also need to copy the
  tools.jar file from your jdk directory into your c:\orion
  directory.
 
  FYI, our testing has indicated that orion works best on Bea's JDK,
  Sun's JDK, or IBM's Hotspot JDK.  On Microsoft's JVM, we sometimes
  get for no apparent reason some rather funky errors that go away
  when we switch JVM's.
 
  Regards,
  Steve
 
 
  yilmaz wrote:
  
   hi guys,
   i am new to orion,
   i already downloaded orion application server, and unzipped under
 c:\orion
   directory.
   according to instructions i also put the tools.jar under c:\orion
   Next on command window , i ran  java -jar orion.jar -install
   which prompted me to enter a password, and it said installation
   was
 done
   though i was surprised to  finish so fast,  i tried running orion
   by java -jar orion.jar
   as i expected it didn't start , but gave me the following strange
 error:
  
   C:\orionjava -jar orion.jar
   Fatal Error: Transaction log file
 (/C:/orion/persistence/transaction.state)
   did
   not exist and was not possible to create, the most common reason
   for
 this is
   an
   invalid path or Orion lacking security to write to that path:
   /C:/orion/persiste
   nce/transaction.state
   (系統æ?¾ä¸?å^°æ??å®sçs?è·¯å¾?ã?,) (the
 last
 part
 of the message
   says
   system couldn't find the path in chinese).
   can someone help me please with this,
   so far i have used tomacat3, tomcat 4, jsdk, etc..
   i have never seen this kind of strange problem, and i don't have
   any
 idea
   how to solve it
   i tried several methods in vain.
   i put c:\orion in my path, it didn't help
   please give me some help, ( before i decide to switch to another
   one) thanks for your concern
   cheers :)
 
  --
  Stephen Davidson
  Java Consultant
  Delphi Consultants, LLC
  http://www.delphis.com
  Phone: 214-696-6224 x208
 
 
 






RE: EJB Clustering -- ANYONE? [Urgent!]

2001-02-22 Thread Mark Bernardinis

I think that we also need an explanation of what goes in the field, not 
what are valid values that it accepts. Some fields I look at in the XML are 
totally a question to me and I don't know why you would put one value in 
when compared to another.

 I would like to see the documentation for the orion deployment
 descriptors fleshed out.  Right now it's sparse and choppy, with some
 sentences just cut off in the middle.  Verbose explanations with
 examples would be a major improvement.
 
 More than anything else, though, I think Orion needs a FAQ-O-MATIC.
 
 Jeff
 
-Original Message-
From: Magnus Stenman [mailto:[EMAIL PROTECTED]]
Sent: Thursday, February 22, 2001 7:43 AM
To: Orion-Interest
Subject: Re: EJB Clustering -- ANYONE? [Urgent!]


Hello,
stay tune for a little while longer (if you want to and are 
able to). There will be a clustering-howto released in roughly 
a week or so (no promises though, just an estimate), and yes 
there's plenty of support (and more to come). The doc will be 
kind of an 'umbrella doc' to the already released 
http-clustering-howto covering the other tiers of an application.

While on that note, what are the other especially wanted areas 
for improved/more elaborate documentation (howto's and 
similar)? Please be as specific as possible (ie the opposite 
of "improved overall documentation" :) and keep in mind that 
the security-primer is already in the pipe. Thanks in advance!

/Magnus Stenman, the Orion team

PS. Not getting a reply when asking where to send money do 
sound strange indeed. We're understaffed relative to the 
demand so we have a hard time getting back to sales queries 
etc, but actual ordering should not be any problem whatsoever. 
Can you please forward what you sent to [EMAIL PROTECTED] 
and to me as well and I'll try to see what has happened to it. Thanks!


- Original Message - 
From: "Dylan Parker" [EMAIL PROTECTED]
To: "Orion-Interest" [EMAIL PROTECTED]
Sent: Wednesday, February 21, 2001 7:33 PM
Subject: EJB Clustering -- ANYONE? [Urgent!]


 Hello, all.
 
 My company is about to drop Orion.
 
 The documentation issues, the dead website, the documentation issues,
 the absence of company responses, the documentation issues...
 
 We've contacted them asking where to send our money. Nothing back.
 
 In one last futile attempt to keep Orion afloat in my 
company a little
 longer, can anyone provide me with the following information?
 
 How does one do EJB Clustering with Orion?
 Has anyone made this work?
 Can anyone give some background on the configuration steps?
 
 If I don't hear anything... then JRun, here we come.
 
 Thanks,
 Dylan Parker
 
 






Re: Mixing secure non-secure pages in the same application

2001-02-19 Thread Mark Bernardinis

That solution doesn't get around having multiple pages secure and some non
secure though. Ibelieve you need to use URL redirection within your servlets
and that should work. It would be good if we could do something similar to
Apache with the .htaccess files as that is how I have worked this solution
(only for static web site though).

Mark

 In ${orion_home}/default-web-app make an index.html that redirect to
 port 443 that should do it.
 
 Matt
 
 Thomas Pridham wrote:
 
 I have jumped through the Verisign hoops and have installed my
 certificate. Here is my issue:

 How do you serve both secure and non-secure pages from the same
 application

 Right now, my entire application is secure and served from port 443. 
 If someone types in the URL, the server does not respond because I am
 not running anything on port 80.  For a VERY temporary fix, I turned
 on IIS on the same box, and do a redirect from IIS:80 to Orion:443.

 My goal is to have one application, serve the splash screen in
 non-secure mode, and serve the rest of the screens in secure mode.

 I searched the documentation / mailing list, but did not find
 anything.

 Thanks,
 Tom Pridham
 Software Engineer
 Computer Management Consultants
 6951 Pistol Range Road
 Tampa, FL  33536
 813-935-7332 ext. 165
 813-854-4538 - Fax
 http://www.cmctpa.com
 http://www.oakscape.com






Re: project manager - Orion

2001-02-13 Thread Mark Bernardinis

I have been using Dynamo Application Server for over 6 months now and it is
quite a nice app server for a programmer with not much app server
experience. Although it is quite restricted when it comes to development.
You have to restart the app server with every change of a class file except
jsp of course. Orion on the other hand does not require this which will save
development time hugely. Also licensing issues are a pain in the butt. We
had problems with development licenses with Dynamo, Orion is absolutely no
problem.

Orion is an excellent server although does fall down with documentation.
This list is one of the best sources of information and most answers can be
found here. I have found that with Dynamo some small bugs exist with servlet
specifications and work arounds are required. (In other words, don't expect
a new release of Dynamo for these bugs as they won't happent). Orion on the
other hand will release updates frequently and are usually quite up to date
with the latest specs.

I have not had much experience with Weblogic.

My recommendation would be to look at Orion in more detail and see how well
it suits your needs. You will find it initially harder to use but you will
understand the application server that much better.

 Hi Guys,
 
 I've been exploring the appservers for some time now
 and it is high time we selected the appserver for our
 project.
 
 I'm contemplating the usual big one i.e. weblogic,
 dynamo ...and Orion.
 
 Any pointers to how Orion would and perform in a
 production environmnet to further argue and support
 the decision making of selecting Orion as main
 appserver ?
 
 All your input are welcome !
 
 thanks
 
 denis
 
 __
 Do You Yahoo!?
 Get personalized email addresses from Yahoo! Mail - only $35 
 a year!  http://personal.mail.yahoo.com/






RE: Benchmarks should be better

2001-02-04 Thread Mark Bernardinis

On Sun, 4 Feb 2001, Michael Quinn wrote:

 Just a little update..
 I have completed benchmarks for the initial apache default index.html.en
 with 4 different http servers on Redhat 6.2 with AMD Thunderbird 650 and
 128MB Ram.
 Apache 1.3.14
 Tomcat 3.2
 Weblogic 5.1
 Orion 1.4.5

 I couldn't believe my eyes when Orion served the static html faster than all
 of them (Beating apache by about a 30% margin using 20 threads with 5
 sockets per thread.  Another amazing thing was resource usage..  The highest
 CPU Usage I saw from Orion during the test was a mere 30 percent.  If that
 is not a convincing factor, then I don't know what is.

 I still have some concerns about the security of orion (running on port 80
 as root), and Apache is by nature a more memory intensive application.  It

Running Orion as root is not recommended. There have been tutorials
available from www.orionsupport.com that recommend better alternatives
such as running Orion from port 8080 or whatever and using port
redirection. This is what I currently use and I can run Orion as the orion
user which I have created.

I am pleased with Orion's results in CPU usage and memory. Keep the bench
marks coming.

 uses a multi-process -vs- orion's multithreaded technique.  Each process
 uses a few megs of memory, so for a large request base, apache will need
 more memory so it isn't getting page faults all over the place. ( I am also
 running oracle on this box which uses tonnes of memory as many know )
 I'll slap in another 128M and see what happens.

 Any comments would be appreciated.

 Michael Quinn
 Software Engineer

 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED]]On Behalf Of Michael Quinn
 Sent: Friday, February 02, 2001 11:19 AM
 To: Orion-Interest
 Subject: Benchmarks should be better


 Hey all,

 I was checking out the benchmarks on www.orionserver.com and they are quite
 interesting.

 There are a couple of things I am wondering, however.  How does Orion
 serving dynamic content pit itself -vs- apache serving static content or
 mod_perl stuff.
 It would be nice to take the other "sucky" java servers out of the picture
 and see a baseline comparison of Orion -vs- Apache on a lot of different
 scenarios.

 On a side note, can somebody forward me some performance comparisons from
 weblogic?  I know they can't be posted on the website, but I would like to
 see them.

 The reason I ask is of the following importance:

 I see a lot of job postings for knowledge of Weblogic.  And about 50% of
 telephone interviews ask about it, or bring it up.
 I want to know how it performs.

 I'm thinking about setting up Weblogic with Apache and Orion, and doing some
 performance comparisons which I will be glad to share with everyone.

 Thanks for your interest,

 Michael


 _
 Do You Yahoo!?
 Get your free @yahoo.com address at http://mail.yahoo.com


 _
 Do You Yahoo!?
 Get your free @yahoo.com address at http://mail.yahoo.com








Deploying EJB Application - NULL Pointer Exception

2001-02-02 Thread Mark Bernardinis

I am deploying an EJB Application and I am receiving this message. It is not
very descriptive so could someone please shed some light on this error
message.

Auto-deploying testapplication-ejb (No previous deployment found)...
java.lang.NullPointerException
at com.evermind.server.ejb.deployment.BeanDescriptor.equals(JAX)
at
com.evermind.server.ejb.deployment.ContainerManagedField.equals(JAX)
at java.util.AbstractCollection.remove(AbstractCollection.java:260)
at com.evermind.server.ejb.deployment.EntityBeanDescriptor.zv(JAX)
at com.evermind.server.ejb.deployment.EntityBeanDescriptor.aba(JAX)
at com.evermind.server.ejb.compilation.f4.init(JAX)
at com.evermind.server.ejb.compilation.ga.s_(JAX)
at com.evermind.server.ejb.EJBContainer.bz(JAX)
at com.evermind.server.Application.bz(JAX)
at com.evermind.server.Application.gf(JAX)
at com.evermind.server.ApplicationServer.rv(JAX)
at com.evermind.server.ApplicationServer.aqb(JAX)
at com.evermind.server.ApplicationServer.gf(JAX)
at com.evermind.server.hg.run(JAX)
at java.lang.Thread.run(Thread.java:498)
at com.evermind.util.f.run(JAX)

Thanks.

Mark





Re: Deploying EJB Application - NULL Pointer Exception

2001-02-02 Thread Mark Bernardinis

Ignore this email. After a lot of effort I finally worked out where the
problem was. I wish the errors were a bit more descriptive though.

Mark

 I am deploying an EJB Application and I am receiving this message. It
 is not very descriptive so could someone please shed some light on this
 error message.
 
 Auto-deploying testapplication-ejb (No previous deployment found)...
 java.lang.NullPointerException
 at
 com.evermind.server.ejb.deployment.BeanDescriptor.equals(JAX)
 at
 com.evermind.server.ejb.deployment.ContainerManagedField.equals(JAX)
 at
 java.util.AbstractCollection.remove(AbstractCollection.java:260)
 at
 com.evermind.server.ejb.deployment.EntityBeanDescriptor.zv(JAX)
 at
 com.evermind.server.ejb.deployment.EntityBeanDescriptor.aba(JAX)
 at com.evermind.server.ejb.compilation.f4.init(JAX)
 at com.evermind.server.ejb.compilation.ga.s_(JAX)
 at com.evermind.server.ejb.EJBContainer.bz(JAX)
 at com.evermind.server.Application.bz(JAX)
 at com.evermind.server.Application.gf(JAX)
 at com.evermind.server.ApplicationServer.rv(JAX)
 at com.evermind.server.ApplicationServer.aqb(JAX)
 at com.evermind.server.ApplicationServer.gf(JAX)
 at com.evermind.server.hg.run(JAX)
 at java.lang.Thread.run(Thread.java:498)
 at com.evermind.util.f.run(JAX)
 
 Thanks.
 
 Mark






Re: Session EJB Accessibility

2001-01-30 Thread Mark Bernardinis

I don't want to do any database activity. I just want this Java Object to be
accessible as an EJB accessible by many different clients hosted by an
Application Server. The object doesn't have to be stateful either.

 It sounds like you're describing an entity bean more than a session
 bean.  An entity bean can be called by many clients although access is
 serialized.  And certainly the role of an entity bean is to
 encapsulate data in a apparently-storage-mechanism-independent manner,
 from the client's perspective...
 
 How does the notion of a session play into what you want the bean
 to do?
 
   Gary
 
 Mark Bernardinis ([EMAIL PROTECTED]) wrote:

 Requirements:
 An EJB to be Stateful
 Accessible by more than client
 Share the same data object and information

 Summarising the above information, I would like to have an EJB that
 can be called by many clients yet share the same underlying data
 within the bean. These clients may be another application running
 under Orion or a stand-alone application.

 Is this possible, and if it is, what special requirements do I need to
 meet. I have looked at SessionContext but does this have anything to
 do with it?

 Thanks in advance.

 Mark






RE: Session EJB Accessibility

2001-01-30 Thread Mark Bernardinis

You hit the nail on the head. This is exactly what I want to do. I am
beginning to realise that maybe EJB is not the way to go with this example.

 I'm confused by your comments; does it need to manage state, or doesn't
 it?  I'm assuming it does, otherwise you would just use a stateless
 session bean.
 
 Here's some fodder for conversation:
 
 I don't think there is an EJB facility which will help you.  SLSBs are
 pooled and can timeout, SFSBs have no lookup mechanism, can timeout,
 and aren't reentrant (although Orion, despite the spec, serializes
 calls, which is good), and entity beans will get all wacky because of
 the multiple instances you will get from an optimistic concurrency
 model.
 
 It seems like what you want is either a SLSB which never times out and
 is guaranteed to only have one instance in the pool, or a BMP entity
 bean with a guarantee of serialized transactions.
 

This is exactly what I want to do. The only reason why I wanted to use EJB
was to get a bit more experience using them.

What I really want is many pooled objects that share one Master java object
so that any number of users can access the java object without being locked
out.

 Is it possible to make Orion do either of these?  And what would happen
 in a clustered solution?
 
 I propose that the only server-independent way to do what you want is
 to use an RMI server.  The EJB specification really needs a
 "SingletonBean", preferrably one which allows concurrent calls (and
 thus reasonable performance).
 
 Comments?
 
 Jeff
 
 
-Original Message-----
From: Mark Bernardinis [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, January 30, 2001 12:18 AM
To: Orion-Interest
Subject: Re: Session EJB Accessibility


I don't want to do any database activity. I just want this 
Java Object to be
accessible as an EJB accessible by many different clients hosted by an
Application Server. The object doesn't have to be stateful either.

 It sounds like you're describing an entity bean more than a session
 bean.  An entity bean can be called by many clients although 
access is
 serialized.  And certainly the role of an entity bean is to
 encapsulate data in a 
apparently-storage-mechanism-independent manner,
 from the client's perspective...
 
 How does the notion of a session play into what you want the bean to
 do?
 
     Gary
 
 Mark Bernardinis ([EMAIL PROTECTED]) wrote:

 Requirements:
 An EJB to be Stateful
 Accessible by more than client
 Share the same data object and information

 Summarising the above information, I would like to have an EJB that
 can be called by many clients yet share the same underlying data
 within the bean. These clients may be another application running
 under Orion or a stand-alone application.

 Is this possible, and if it is, what special requirements 
do I need to
 meet. I have looked at SessionContext but does this have anything to
 do with it?

 Thanks in advance.

 Mark






RE: Session EJB Accessibility

2001-01-30 Thread Mark Bernardinis

And I also want these objects to be accessible remotely via RMI or some
other method as I have a number of different clients accessing the data.
Such as Servlets / JSP's, remote clients who do not need to know the
implementation of it and also I will be able to manage the objects.

 You hit the nail on the head. This is exactly what I want to do. I am
 beginning to realise that maybe EJB is not the way to go with this
 example.
 
 I'm confused by your comments; does it need to manage state, or
 doesn't it?  I'm assuming it does, otherwise you would just use a
 stateless session bean.
 
 Here's some fodder for conversation:
 
 I don't think there is an EJB facility which will help you.  SLSBs are
 pooled and can timeout, SFSBs have no lookup mechanism, can timeout,
 and aren't reentrant (although Orion, despite the spec, serializes
 calls, which is good), and entity beans will get all wacky because of
 the multiple instances you will get from an optimistic concurrency
 model.
 
 It seems like what you want is either a SLSB which never times out and
 is guaranteed to only have one instance in the pool, or a BMP entity
 bean with a guarantee of serialized transactions.
 
 
 This is exactly what I want to do. The only reason why I wanted to use
 EJB was to get a bit more experience using them.
 
 What I really want is many pooled objects that share one Master java
 object so that any number of users can access the java object without
 being locked out.
 
 Is it possible to make Orion do either of these?  And what would
 happen in a clustered solution?
 
 I propose that the only server-independent way to do what you want is
 to use an RMI server.  The EJB specification really needs a
 "SingletonBean", preferrably one which allows concurrent calls (and
 thus reasonable performance).
 
 Comments?
 
 Jeff
 
 
-Original Message-----
From: Mark Bernardinis [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, January 30, 2001 12:18 AM
To: Orion-Interest
Subject: Re: Session EJB Accessibility


I don't want to do any database activity. I just want this 
Java Object to be
accessible as an EJB accessible by many different clients hosted by an
Application Server. The object doesn't have to be stateful either.

 It sounds like you're describing an entity bean more than a session
 bean.  An entity bean can be called by many clients although 
access is
 serialized.  And certainly the role of an entity bean is to
 encapsulate data in a 
apparently-storage-mechanism-independent manner,
 from the client's perspective...
 
 How does the notion of a session play into what you want the bean to
 do?
 
    Gary
 
 Mark Bernardinis ([EMAIL PROTECTED]) wrote:

 Requirements:
 An EJB to be Stateful
 Accessible by more than client
 Share the same data object and information

 Summarising the above information, I would like to have an EJB that
 can be called by many clients yet share the same underlying data
 within the bean. These clients may be another application running
 under Orion or a stand-alone application.

 Is this possible, and if it is, what special requirements 
do I need to
 meet. I have looked at SessionContext but does this have anything
 to do with it?

 Thanks in advance.

 Mark






Session EJB Accessibility

2001-01-29 Thread Mark Bernardinis


Requirements:
An EJB to be Stateful
Accessible by more than client
Share the same data object and information

Summarising the above information, I would like to have an EJB that can be
called by many clients yet share the same underlying data within the bean.
These clients may be another application running under Orion or a
stand-alone application.

Is this possible, and if it is, what special requirements do I need to meet.
I have looked at SessionContext but does this have anything to do with it?

Thanks in advance.

Mark





EJB Error Message in Orion Log File

2000-12-28 Thread Mark Bernardinis

When deploying an ejb application and tables need to be created, no
matter which tutorial I follow I seem to get this error included within
the logs first time.

BEGIN ERROR MESSAGE
---
Auto-deploying helios-ejb (ejb-jar.xml had been touched since the
previous deployment)... SQL error: ERROR:  parser: parse error at or
near ")"
---
 END ERROR MESSAGE

From what I can see, everything else seems to be running fine. The table
is created in the DB and there are rows being populated in the tables as
well.

Server specific information is:
Orion v1.4.4
PostgreSQL 7.0.2
Linux 2.2.17
IBM JDK 1.3.0

If there is any more information required please email me. Thanks for
your help.

Regards,

Mark

begin:vcard 
n:Bernardinis;Mark
x-mozilla-html:FALSE
org:Westfield;eCommerce Development
adr:;;
version:2.1
email;internet:[EMAIL PROTECTED]
x-mozilla-cpt:;0
fn:Mark Bernardinis
end:vcard



Directories in applications

2000-12-28 Thread Mark Bernardinis

I have created a sample directory underneath an application I created
called samples so that I could test cocoon's abilities. I am able to
browse to that directory but once all files and directories are listed,
their corresponding sizes are all 0KB including the index.xml files. If
I attempt to load any of them I get a resource not found.

I have checked all the permissions and they seem to be alright. They are
rwx - rw - r with orion as the owner and j2ee as the group.

Does anyone have any ideas. If I move these files into the root of my
application I have no problem, but once I enter the directory structure
of samples underneath my app the problems start.

Mark

begin:vcard 
n:Bernardinis;Mark
x-mozilla-html:FALSE
org:Westfield;eCommerce Development
adr:;;
version:2.1
email;internet:[EMAIL PROTECTED]
x-mozilla-cpt:;0
fn:Mark Bernardinis
end:vcard



Re: Directories in applications

2000-12-28 Thread Mark Bernardinis

Forgive me for being stupid, I forgot to add execute permissions to
directories.

Mark Bernardinis wrote:
 
 I have created a sample directory underneath an application I created
 called samples so that I could test cocoon's abilities. I am able to
 browse to that directory but once all files and directories are listed,
 their corresponding sizes are all 0KB including the index.xml files. If
 I attempt to load any of them I get a resource not found.
 
 I have checked all the permissions and they seem to be alright. They are
 rwx - rw - r with orion as the owner and j2ee as the group.
 
 Does anyone have any ideas. If I move these files into the root of my
 application I have no problem, but once I enter the directory structure
 of samples underneath my app the problems start.
 
 Mark

begin:vcard 
n:Bernardinis;Mark
x-mozilla-html:FALSE
org:Westfield;eCommerce Development
adr:;;
version:2.1
email;internet:[EMAIL PROTECTED]
x-mozilla-cpt:;0
fn:Mark Bernardinis
end:vcard



EJB Context

2000-12-20 Thread Mark Bernardinis

Hello all Orion Users,

I have been going through the tutorial on the java.sun.com web site and
I was able to successfully deploy an EJB but I got stumped at the last
stage. The following code segment is for WebLogic. Does anyone know the
changes I need to make to this segment of code to be Orion specific.

 package ejb.demo;

   import javax.ejb.*;

   import javax.naming.*;

   import java.rmi.*;

   import java.util.Properties;

 /**
 * DemoClient demonstrates using a minimal
stateless
 * session bean.
 * Remember view session beans as an extension
of your
 * client running in the server.
 */

   public class DemoClient {
 public static void main(String[] args) {
   System.out.println("\nBegin
DemoClient...\n");

   parseArgs(args);
   try {
   // Create A DemoBean object, in the server
   // Note: the name of the class corresponds to

the
   // JNDI property declared in the
   // DeploymentDescriptor
   // From DeploymentDescriptor ...
   // beanHomeName demo.DemoHome
 Context ctx = getInitialContext();
 DemoHome dhome = (DemoHome)
   ctx.lookup("demo.DemoHome");

  // Now you have a reference to the DemoHome
object
  // factory use it to ask the container to
creat an
  // instance of the Demo bean
System.out.println("Creating Demo\n");
Demo demo = dhome.create();

  // Here is the call that executes the method
on the
  // server side object
System.out.println("The result is "
  + demo.demoSelect());


   }
   catch (Exception e) {
 System.out.println(" = Error =");
 e.printStackTrace();
   }
   System.out.println("\nEnd DemoClient...\n");
 }

 static void parseArgs(String args[]) {
   if ((args == null) || (args.length == 0))
 return;
   for (int i = 0; i  args.length; i++) {
 if (args[i].equals("-url"))
   url = args[++i];
 else if (args[i].equals("-user"))
   user = args[++i];
 else if (args[i].equals("-password"))
   password = args[++i];
   }
 }

 static String user = null;
 static String password = null;
 static String url = "t3://localhost:7001";

  /**
  * Gets an initial context.
  *
  * @return Context
  * @exception java.lang.Exception if there is
  * an error in getting a Context
  */
 static public Context getInitialContext()
 throws Exception {
   Properties p = new Properties();
   p.put(Context.INITIAL_CONTEXT_FACTORY,
 "weblogic.jndi.T3InitialContextFactory");
   p.put(Context.PROVIDER_URL, url);
   if (user != null) {
 System.out.println ("user: " + user);
 p.put(Context.SECURITY_PRINCIPAL, user);
 if (password == null)
   password = "";
 p.put(Context.SECURITY_CREDENTIALS,
password);
   }
   return new InitialContext(p);
 }
   }

The last section of code where the initial context is being looked up
seems to be where my problem lies. I have
replaced the string that says "weblogic.jndi" with
"com.evermind.server.ApplicationClientInitialContextFactory".

Is this correct? What should the URL be? I have not been able to find
any doco on this (I am probably looking in the
wrong place.

The error I get when running this is,

javax.naming.NamingException: 

URL Redirecting

2000-12-10 Thread Mark Bernardinis

When a user goes to a certain part of my application (Web-Site) I would
like them to be redirected to the secure part of my site and vice versa.

For example, when "/payment" is in the URL I would like the user to be
redirected to the SSL part of the web site. When this URL does not
exist, I would like them to be transferred out of the SSL encryption and
to the normal part of the site.

Is this possible? I know it is possible with Apache but I prefer not to
use it at all if I can help it.

Regards,

Mark
Westfield


begin:vcard 
n:Bernardinis;Mark
x-mozilla-html:FALSE
org:Westfield;eCommerce Development
adr:;;
version:2.1
email;internet:[EMAIL PROTECTED]
x-mozilla-cpt:;0
fn:Mark Bernardinis
end:vcard