Reading Properties File

2001-08-22 Thread Naresh Sharma

Hello Everybody,


I have to read a properties file inside my EJB's method(I know the about
EJB specs. restriction).

As far as I know, to read a properties file in Orion we can specify the
name of properties file with -p switch at orion server starting, or copy
the properties file in ORION_HOME\lib directory(this directory is
included in classpath setting through the manifest file).

This solution works for me only if i read the properties file using
getResource method of java.lang.Classloader for getting the
URL of the resource, but if i use getSystemResource it fails.

1) So what's the difference in between getResource and getSystemResource
method of java.lang.Classloader?? I read the java docs for these methods
but it is still not very clear to me.


Secondly, But In our application we don't want anything like above
solution, we wish to include the Properties file in system classpath,
and then our EJB should be able to read the properties file.

2) Is this is the right way ??   I tried but it was unsuccessful. May be
i am missing something. I couldn't figure out why getSystemResource
method is failing in this scenario, where system Classpath contains the
conf file.


any clue??


Thanks
Naresh











Invoke a method on myself in a Stateful Session Bean.

2001-08-22 Thread Mikael Ståldal

When I try to do like the code below, I get this error:

com.evermind[Orion/1.5.2 (build 10460)].server.rmi.OrionRemoteException:
Recursive call to non-reentrant bean

Is there any other way to do this? I don't want to invoke the methods
directly, since I want to make use of container managed transactions.


/**
 * @ejb:ejb-name Foo
 * @ejb:stateful-session
 */
public class FooBean extends SessionBean 
{
private Foo me;

/**
 * @ejb:create-method
 */
public void ejbCreate() 
{
me = (Foo)PortableRemoteObject.narrow(
sessionContext.getEJBObject(),
Foo.class);
}


/**
 * @ejb:remote-method
 */
public void foo() 
{
// do something interesting
me.bar();
// do something interesting
}


/**
 * @ejb:remote-method
 */
public void bar() 
{
// do something interesting
}   
}




Re: SMP/Linux/Hotspot/Orion problem.

2001-08-22 Thread Robert Krüger


Which jdk/kernel/glibc are you using? We have two production systems running 
a similar setup without any serious problems.

Regards,

Robert 

On Tuesday 21 August 2001 22:35, you wrote:
 Did anyone find a real solution to this problem?  I have 2 smp linux boxes
 that running -classic mode (which is painfully slow).  I have considered
 removing (disabling) one of the CPS to fix it.

 The symptoms are long pauses of up to 5+ minutes, then everything is ok.

 Thanks,
 James




start applications after starting Orion ?

2001-08-22 Thread Eddie Post

Hellu,

How can I configure Orion to start applications/scripts/commands after it
has successfully started ??

Eddie




Stateful session bean creating two entity beans

2001-08-22 Thread Markus Härnvi


App-server: Orion 1.51, Windows 2000
Databas: Sybase 11.9.2 on Solaris
JDBC: JConnect 5.2

Hi!

We have a problem with an stateful session bean creating two entity beans.
About one time out of four, only one of them is created and we get a
rollback. We cannot find a pattern. And the exception we get is really hard
to decipher.

We have tested the application on other machines, and cannot reproduce the
bug. We have Orion and Sybase running in the developing environment too.

The big things that happen in the code is this:

We try to create a entity bean called WizardData. This always succeedes.
Then we try to create another entity bean, and that fails sometimes.
The message from the exception is this:

Exception.toString()- java.lang.ClassCastException: [Ljava.lang.String;
Exception.getMessage()- [Ljava.lang.String;

[Ljava.lang.String seems to be an array of Strings. Why does the exception
return an array? How can we get more information about this exception from
Orion?

  /Markus






Strange jsp-error.

2001-08-22 Thread Michiel Meeuwissen


Hello,

Does anybody know what the following error means?

Error creating jsp-page instance: java.lang.VerifyError: (class:
__jspPage0_mmbase_edit_change_node_jsp, method: _jspService signature:
(Ljavax/servlet/http/HttpServletRequest;Ljavax/servlet/http/HttpServletResponse;)V)
Register 31 contains wrong type

(using Orion 1.5.2)

It does not occur in all jsp-pages, but I've no idea what's happening,
neither how to solve it. 

  Michiel



-- 
Michiel Meeuwissen - NOS internet 
Mediacentrum kamer 203 - tel. +31 (0)35 6773065
http://www.mmbase.org  
http://www.purl.org/NET/mihxil/





This mailing list

2001-08-22 Thread Mikael Ståldal

Why is this mailing list hosted on such a lousy server?




Re: PrOperTies ??

2001-08-22 Thread Eddie Post
Title: SV: Roll-BACK question.



Noc noc,

Can someone please still have some advice on the 
question I posted below ??


Eddie

  - Original Message - 
  From: 
  Eddie 
  Post 
  To: Orion-Interest 
  Sent: Tuesday, August 14, 2001 9:18 
  AM
  Subject: PrOperTies ??
  
  Hellu,
  
  Where do you define your properties/constants 
  which you want to use in your ejb's and servlets (I am using CMP) 
  ??
  
  I am wandering if, putting it all in a property 
  file is the best way to do it (the EJB spec don't 'allow' it), concerning 
  performance and the xml files to store properties. Howcan you define 
  constants in a xml file that are both seen by the servlets and ejb's 
  ??
  
  Some advice on this issue please ?
  
  Eddie


RE: Strange jsp-error.

2001-08-22 Thread Mike Cannon-Brookes

I've had this error using Jikes before, I switched to javac and it went
away. It's something to do with the compiler giving bad bytecodes.

Also try commenting out large chunks of your JSP page to find out where the
bad bytecode is, I'm sure the IronFlare guys will want to know (I believe
mine was in a jsp:useBean block).

-mike


Mike Cannon-Brookes :: [EMAIL PROTECTED]

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



 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED]]On Behalf Of Michiel
 Meeuwissen
 Sent: Friday, August 17, 2001 11:43 PM
 To: Orion-Interest
 Subject: Strange jsp-error.



 Hello,

 Does anybody know what the following error means?

 Error creating jsp-page instance: java.lang.VerifyError: (class:
 __jspPage0_mmbase_edit_change_node_jsp, method: _jspService signature:
 (Ljavax/servlet/http/HttpServletRequest;Ljavax/servlet/http/HttpSe
 rvletResponse;)V)
 Register 31 contains wrong type

 (using Orion 1.5.2)

 It does not occur in all jsp-pages, but I've no idea what's happening,
 neither how to solve it.

   Michiel



 --
 Michiel Meeuwissen - NOS internet
 Mediacentrum kamer 203 - tel. +31 (0)35 6773065
 http://www.mmbase.org
 http://www.purl.org/NET/mihxil/








Fw: Orion and session fail-over..

2001-08-22 Thread Morten Wilken

this is a reply to kevin duffeys questions regarding sessionfailover that i
thought might be of interest to others on the list


- Original Message -
From: Morten Wilken [EMAIL PROTECTED]
To: Duffey, Kevin [EMAIL PROTECTED]
Sent: Wednesday, August 22, 2001 12:25 PM
Subject: Re: Orion and session fail-over..



 - Original Message -
 From: Duffey, Kevin [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Sent: Wednesday, August 22, 2001 2:57 AM
 Subject: Orion and session fail-over..


 hi kevin, as i said in my post, what i did was to add the load-on-startup
to
 to web-app tag... and then i found that the other servers started
recieving
 right away.
 i run all my apps in the default web site i dont know if that factors
 into it aswell.. i suppose i shouldn't.
 im not sure which of my posts you're referring to as i posted a couple of
 them about this, but i followed the clustering howto from orion, plus i
 addede the load-on-startup=true attribute.
 you could post me your configs and i could have a look :-)

 as for how orion implements loadbalancing, i wrote a small multicast
client
 and set it up to listen to the port, plus i added the -debug flag to see
 what really went on, and it seems that it replicates the object in the
 session when you change it, and not the entire session. and ofcourse it
only
 replicates it to its own clusterisland.
 this would mean tht if you had a 500mb session (which i wouldnt recommend
 :-)) then either you have a bunch of objects that each is replicated when
 they're accesed, or you have a 500mb object in your session, in which case
 it would replicate it all.

 another thing that i had to change in my original design was that i had to
 explicitly set the session object in order for it to be flagged for
 replication ie:

 not:

 object a  =session.getAttribute(someObject);
 a.method();

 but:
 object a  =session.getAttribute(someObject);
 a.method();
 session.setAttribute(someObject, a);

 hope some of this helps, and if not please write me again :-)
 anf good luck with your book

 sincerely
 Morten Wilken
  Hi there,
 
  I just posted a message to the list about clustering. I happened to be
  deleting the 7000 emails I have in archive of the Orion-list and decided
 to
  search for clustering. I cam across your thread, and I am having EXACTLY
 the
  same problem you are. The only difference is, I have the load-on-startup
 in
  my web-site tag, and I am still seeing the same results. One server
 shows
  the Sending... the other one shows nothing. Not sure if it is supposed
 to
  or not. I would list my config, but its at home. I am hoping you can
help
 me
  figure this out as I am writing a chapter on scalability using a simple
 cart
  based web-app, and I want to test it for session fail-over, and explain
 how
  it works in this chapter.
 
  In my email to the list I am trying to find out how in general servlet
  containers fail over. When you use the setAttribute() call, does it copy
 the
  entire session of that user to the other server(s) in the cluster? Or
does
  it just copy the one object and the other server(s) are smart enough to
  insert it into the right session? OR..worse..does it copy ALL sessions
of
  all users to the other servers??!! If so, what happens when you have a
  session of 500MB of objects..does it take like 2 minutes to replicate
the
  session, bring Orion to a crawl, etc?
 
  Thanks for your help and info.
 
 






Re: Re: SMP/Linux/Hotspot/Orion problem.

2001-08-22 Thread skyman

robert

can you tell us a little about your stable setup?

David

Orion-Interest [EMAIL PROTECTED] wrote:
 
Which jdk/kernel/glibc are you using? We have two production systems running 
a similar setup without any serious problems.

Regards,

Robert 

On Tuesday 21 August 2001 22:35, you wrote:
 Did anyone find a real solution to this problem?  I have 2 smp linux boxes
 that running -classic mode (which is painfully slow).  I have considered
 removing (disabling) one of the CPS to fix it.

 The symptoms are long pauses of up to 5+ minutes, then everything is ok.

 Thanks,
 James






http://www.orionsupport.com

2001-08-22 Thread Mike Shoemaker

Anyone know what happened to this site?  

Mike


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





Re: SMP/Linux/Hotspot/Orion problem.

2001-08-22 Thread Wendell Nichols

I am using an smp machine with 2.2..17 kernel.  I find the classic vm to 
be slow but nothing like a 5 min pause.  Can you tell us more about your 
config and what your doing?
wcn

James Hill wrote:

Did anyone find a real solution to this problem?  I have 2 smp linux boxes
that running -classic mode (which is painfully slow).  I have considered
removing (disabling) one of the CPS to fix it.

The symptoms are long pauses of up to 5+ minutes, then everything is ok.

Thanks,
James







[Fwd: Re: Orion and JMS: javax.naming.NameNotFoundException]

2001-08-22 Thread Daniel Lopez

Hi (third try to the list, first ones didn't make it),

I haven't got a single answer, so I'm wondering if nobody is using Orion

JMS or this mailing list is playing funny with me. Has anybody
configured and used Orion JMS? Could somebody please elaborate on the
steps necessary to get this thing working?
Thanks in advance,
D.

Daniel López wrote:

 Hi,

 I know this topic has been discussed a lot in here, but I haven't been

 able to find the answer in the archive or in the documentation. The
 problem is: I decided to have a go with JMS but I can't even start to
 play with it, as all I get is javax.naming.NameNotFoundException.
 These are the steps I have followed:
 .- Configure server.xml with the following line:
 ...
 jms-config path=./jms.xml /
 ...
 .- Configure jms.xml with this content:
 jms-server port=9127 host=localhost
 queue-connection-factory
 location=jms/QueueConnectionFactory/
 queue name=Demo Queue location=jms/demoQueue
 descriptionA dummy queue/description
 /queue
 log
 file path=../logs/jms.log /
 /log
 /jms-server
 .- Add jndi.properties to my application's classes(WEB-INF/classes),
 with the following content:


java.naming.factory.initial=com.evermind.server.ApplicationClientInitialContextFactory

 java.naming.provider.url=ormi://localhost/
 java.naming.security.principal=admin
 .- Then in my servlet, I just try to see if the objects are there:
 ...
 Context ctx = new InitialContext();
 QueueConnectionFactory queueConnectionFactory =
 (QueueConnectionFactory)
 ctx.lookup(java:comp/env/jms/QueueConnectionFactory);
 // Exception is thrown in the line above
 ...
 The facts:
 .- JMS Server seems to have been started, as I can see the
jms.log file
 and reads (Date 1.4.5 Started)
 .- I have tried with various names, with and without
java:comp/env, and
 with various methods (list, listBindings...) with no look. I cannot
get
 a single object to be looked up.
 .- Platform is WinNt 4.0, JDK1.3.0-c hotspot, Orion 1.4.5 (I
also tried
 1.5.2 with the same results)

 So, what have I forgotten to do? It seems like I just forgot to do
some
 essential step. I tried to find the JMS how to by Kesav Kumar but I
 couldn't find it. Anybody, please?
 Thank you in advance,
 D.

 PD: On a side note, I have seen man people trying to use external JMS
 providers with Orion, is that so because Orion JMS is buggy? Would it
be
 better to use some external tool like OpenJMS or so? I had thought it
 would be nice to have everything in the same place, this way you just
 have to take care of one server. Comments?




How to unsubscribe

2001-08-22 Thread Paul Sprague




Thank you for subscribing to the orion mailing list. 
A message has now 
been sent to the address you subscribed. If you want to unsubscribe, simply send 
a mail to [EMAIL PROTECTED] 
with the following command in the body of your email message:
unsubscribe
Or from another 
account, besides the email account you subscribed to:
unsubscribe 
your email address


SV: Strange jsp-error.

2001-08-22 Thread Magnus Rydin

Hi.
Try to remove the files from your persistence dir for the web-app and see if
that solves it.
WR

-Ursprungligt meddelande-
Fran: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]For Michiel Meeuwissen
Skickat: den 17 augusti 2001 15:43
Till: Orion-Interest
Amne: Strange jsp-error.



Hello,

Does anybody know what the following error means?

Error creating jsp-page instance: java.lang.VerifyError: (class:
__jspPage0_mmbase_edit_change_node_jsp, method: _jspService signature:
(Ljavax/servlet/http/HttpServletRequest;Ljavax/servlet/http/HttpServletRespo
nse;)V)
Register 31 contains wrong type

(using Orion 1.5.2)

It does not occur in all jsp-pages, but I've no idea what's happening,
neither how to solve it.

  Michiel



--
Michiel Meeuwissen - NOS internet
Mediacentrum kamer 203 - tel. +31 (0)35 6773065
http://www.mmbase.org
http://www.purl.org/NET/mihxil/






RE: Invoke a method on myself in a Stateful Session Bean.

2001-08-22 Thread Juan Lorandi (Chile)

Neat. I've been having similar problems trying to execute a findByPrimaryKey
in the ejbCreate method of a bean. Errors, however, just come and go away
randomly.

 -Original Message-
 From: Mikael Ståldal [mailto:[EMAIL PROTECTED]]
 Sent: Miércoles, 22 de Agosto de 2001 3:34
 To: Orion-Interest
 Subject: Invoke a method on myself in a Stateful Session Bean.
 
 
 When I try to do like the code below, I get this error:
 
 com.evermind[Orion/1.5.2 (build 
 10460)].server.rmi.OrionRemoteException:
 Recursive call to non-reentrant bean
 
 Is there any other way to do this? I don't want to invoke the methods
 directly, since I want to make use of container managed transactions.
 
 
 /**
  * @ejb:ejb-name Foo
  * @ejb:stateful-session
  */
 public class FooBean extends SessionBean 
 {
   private Foo me;
   
   /**
* @ejb:create-method
*/
   public void ejbCreate() 
   {
   me = (Foo)PortableRemoteObject.narrow(
   sessionContext.getEJBObject(),
 Foo.class);
   }
 
 
   /**
* @ejb:remote-method
*/
   public void foo() 
   {
   // do something interesting
   me.bar();
   // do something interesting
   }
 
   
   /**
* @ejb:remote-method
*/
   public void bar() 
   {
   // do something interesting
   }   
 }
 




Re: http://www.orionsupport.com

2001-08-22 Thread Scott Farquhar

Mike,

This box is hosted on someone's home box and goes down from time to time.

There are mirrors:
http://au.orionsupport.com/
http://de.orionsupport.com/
http://uk.orionsupport.com/

Cheers,
Scott
-- 
Scott Farquhar :: [EMAIL PROTECTED]

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


Mike Shoemaker wrote:
 Anyone know what happened to this site?  
 
 Mike
 
 
 _
 Do You Yahoo!?
 Get your free @yahoo.com address at http://mail.yahoo.com
 
 
 
 









RE: PrOperTies ??

2001-08-22 Thread Juan Lorandi (Chile)
Title: SV: Roll-BACK question.



env 
entries in the ejb-jar.xml, web.xml;
also, 
you could create a "load-on-startup" servlet, which is allowed to access disk, 
to create, say, a singleton
which 
in its constructor opens and loads the properties files. Therefore, you will be 
paying once per JVM for the initialization, and have it your 
way.

HTH
Juan 
Pablo

  -Original Message-From: Eddie Post 
  [mailto:[EMAIL PROTECTED]]Sent: Miércoles, 22 de Agosto de 
  2001 6:32To: Orion-InterestSubject: Re: PrOperTies 
  ??
  Noc noc,
  
  Can someone please still have some advice on the 
  question I posted below ??
  
  
  Eddie
  
- Original Message - 
From: 
Eddie 
Post 
To: Orion-Interest 
Sent: Tuesday, August 14, 2001 9:18 
AM
Subject: PrOperTies ??

Hellu,

Where do you define your properties/constants 
which you want to use in your ejb's and servlets (I am using CMP) 
??

I am wandering if, putting it all in a property 
file is the best way to do it (the EJB spec don't 'allow' it), concerning 
performance and the xml files to store properties. Howcan you define 
constants in a xml file that are both seen by the servlets and ejb's 
??

Some advice on this issue please ?

Eddie


RE: SMP/Linux/Hotspot/Orion problem.

2001-08-22 Thread James Hill

Jdk 1.3.1 
Libc 2.1.3
2.2.16 Kernel
(2 clustered identical boxes)
Oracle 8.x (seperate box)

This problem only shows itself under load.  I think it is somehow related to
the bug where hotspot (jdk1.3.0 under linux) crashes. 

Thanks!
James



-Original Message-
From: Robert Krüger [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, August 22, 2001 2:47 AM
To: Orion-Interest
Subject: Re: SMP/Linux/Hotspot/Orion problem.



Which jdk/kernel/glibc are you using? We have two production systems running

a similar setup without any serious problems.

Regards,

Robert 

On Tuesday 21 August 2001 22:35, you wrote:
 Did anyone find a real solution to this problem?  I have 2 smp linux boxes
 that running -classic mode (which is painfully slow).  I have considered
 removing (disabling) one of the CPS to fix it.

 The symptoms are long pauses of up to 5+ minutes, then everything is ok.

 Thanks,
 James




Message Listener ( JMS )

2001-08-22 Thread Vikas Malhotra



Hi everyone
i am facing a problem in the message listener in my application. 
Is seems that is is not responding et 
all.
Does anyone has a solution to 
this.

Vikas



*
Disclaimer

This message (including any attachments) contains 
confidential information intended for a specific 
individual and purpose, and is protected by law. 
If you are not the intended recipient, you should 
delete this message and are hereby notified that 
any disclosure, copying, or distribution of this
message, or the taking of any action based on it, 
is strictly prohibited.

*
Visit us at http://www.mahindrabt.com




RE: http://www.orionsupport.com

2001-08-22 Thread Mike Cannon-Brookes

It was down but is back up again.

There's always local mirrors up at :
http://au.orionsupport.com
http://uk.orionsupport.com
http://de.orionsupport.com

If you're having problems with the main site.

Cheers,
Mike


Mike Cannon-Brookes :: [EMAIL PROTECTED] 

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



 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED]]On Behalf Of Mike Shoemaker
 Sent: Wednesday, August 22, 2001 11:31 PM
 To: Orion-Interest
 Subject: http://www.orionsupport.com
 
 
 Anyone know what happened to this site?  
 
 Mike
 
 
 _
 Do You Yahoo!?
 Get your free @yahoo.com address at http://mail.yahoo.com
 
 
 




HAPPY BIRTHDAY Orion - turns 2!

2001-08-22 Thread Mike Cannon-Brookes

Just thought I'd like to remind everyone that Orion's 2nd birthday has just
passed ;)

-mike


Mike Cannon-Brookes :: [EMAIL PROTECTED]

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






RE: j_security_check not redirecting

2001-08-22 Thread Juan Lorandi (Chile)

yes, I get that too. Solved by removing j_security_check from the login
page's action, leaving it empty.
Regrettably, that's outside of the spec. Also, since that began to happen,
whenever there's a failed login, instead of showing the login-error-page,
the login-page is shown again. I think one of the guys down here added the
bug in bugzilla a month ago.

Juan Pablo

 -Original Message-
 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
 Sent: Miércoles, 22 de Agosto de 2001 10:17
 To: Orion-Interest
 Subject: j_security_check not redirecting
 
 
 Hi,
 
 I have a problem with securing our web application.
 I have followed the steps as described in the several
 documents (like orion security primer). Everything works
 fine: I enter the URL, the login servlet is called and
 displays the login web page.
 
 However, after entering the login information the real
 servlet is executed (i see it in the logs) but the browser
 displays an empty page with the url: 
   http://server/application/j_security_check
 
 Two problems here:
 
   a) the browser is not redirected to the real page
   b) the servlets output never finds its way back it seems
 
 Question is, does it have to do with our servlet structure. We
 have a central servlet dispatcher that calls the actual servlet
 using getNamedDispatcher()... and returns XML data that then is
 transformed using an XSLTFilter
 
 Leo.
 
 --
 neotis wissensmanagement GmbH
 EMail  : [EMAIL PROTECTED]
 Telefon: +49 (30) 6392 3591
 Telefax: +49 (30) 6392 3595
 
 




RE: SMP/Linux/Hotspot/Orion problem.

2001-08-22 Thread Aaron Tavistock

I currently have several SMP machines running Redhat 6.2 or 7.0, running
Orion 1.5.2, and using Suns JDK 1.3.0_02 or 1.3.1.

We did see some problems on hotspot when we were using 1.3.0 that caused
long unexplainable pauses (although ours were about 30 to 60 seconds).  We
spent a long time watching things like memory footprint (thinking it was
maybe garbage collection) and CPU load, but nothing seemed related.  

With a lot of beating our head into a wall and a week of high pressure, we
found that using the interpretted switch (-Xint) fixed these problems but
still retained a reasonable performance.   It appeared that just-in-time
compiling was causing big problems on SMP machines, but more interesting was
that moving to a newer JDK (e.g. 1.3.0_02 or 1.3.1) appears to fix the
problem without any options to the JVM.

-Original Message-
From: James Hill [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, August 21, 2001 1:35 PM
To: Orion-Interest
Subject: SMP/Linux/Hotspot/Orion problem.



Did anyone find a real solution to this problem?  I have 2 smp linux boxes
that running -classic mode (which is painfully slow).  I have considered
removing (disabling) one of the CPS to fix it.

The symptoms are long pauses of up to 5+ minutes, then everything is ok.

Thanks,
James




RE: porting from orion to oc4j, error message with CMP EJB

2001-08-22 Thread Andrew Chau

It turns out there are some compatibility issues with the old
orion-ejb-jar.xml and the new one and once we fixed those, the error
went away.

-Original Message-
From: Andrew Chau 
Sent: Tuesday, August 21, 2001 3:41 PM
To: Orion-Interest
Subject: porting from orion to oc4j, error message with CMP EJB


We have an J2EE application written originally to run on Orion 1.4.5.

We have decided to try to port this to oc4j and the version we are using
is 1.0.2.2

There is some minor reconfiguration issue but nothing really major.
All the servlet, jsp, and stateless session EJB runs without any
problem.

However, all the CMP EntityBean doesn't seem to like their new home.

During deployment, the container will complaints about every single
EntityBean with error message like the following:

JavaApplication_EntityBeanWrapper33.java:358: Exception
java.sql.SQLException is never thrown in the body of the corresponding
try statement.
catch(java.sql.SQLException e)

JavaApplication is one of our CMP EntityBean and the Wrapper is
supposingly created automatically by the container at deployment time.

Has anyone encountered this before? Any work around/solutions?

Thanks in advance

Andrew





Re: Reading Properties File

2001-08-22 Thread Marcel Schutte

See the attached files. We use them to read properties files off the
applications classpath. The properties files should be in the same directory
as the ProjectPropertiesHelper class.
This method works in both orion1.5.2 and weblogic6.1

Hope this helps,
Marcel

- Original Message -
From: Naresh Sharma [EMAIL PROTECTED]
To: Orion-Interest [EMAIL PROTECTED]
Sent: Wednesday, August 22, 2001 8:50 AM
Subject: Reading Properties File


 Hello Everybody,


 I have to read a properties file inside my EJB's method(I know the about
 EJB specs. restriction).

 As far as I know, to read a properties file in Orion we can specify the
 name of properties file with -p switch at orion server starting, or copy
 the properties file in ORION_HOME\lib directory(this directory is
 included in classpath setting through the manifest file).

 This solution works for me only if i read the properties file using
 getResource method of java.lang.Classloader for getting the
 URL of the resource, but if i use getSystemResource it fails.

 1) So what's the difference in between getResource and getSystemResource
 method of java.lang.Classloader?? I read the java docs for these methods
 but it is still not very clear to me.


 Secondly, But In our application we don't want anything like above
 solution, we wish to include the Properties file in system classpath,
 and then our EJB should be able to read the properties file.

 2) Is this is the right way ??   I tried but it was unsuccessful. May be
 i am missing something. I couldn't figure out why getSystemResource
 method is failing in this scenario, where system Classpath contains the
 conf file.


 any clue??


 Thanks
 Naresh










 PropertiesHelper.java
 ProjectPropertiesHelper.java


Re: This mailing list

2001-08-22 Thread Bill Clinton

good question!  will surely go unanswered

Mikael Ståldal wrote:

 Why is this mailing list hosted on such a lousy server?





RE: Orion and JMS: javax.naming.NameNotFoundException]

2001-08-22 Thread Kesav Kumar
Title: RE:  Orion and JMS: javax.naming.NameNotFoundException]





If you want to get any resource in your Servlet/jsp you got define resource-ref in your web.xml. 
One basic information as long as you are in the same container you don't need any parameters to JDNI context. 
You need jndi.properties only when you try to access from outside the container. Your servlets/jsp/ejb/applicationclient

are in the same orion container so in all these components you can directly get JNDI context by 
Context ctx = new InitialContext();
As long as you are in the same container there is no need for jndi.properties.


Regarding the JMS you got define resource-ref in your web.xml. Any container resource of ejb resource you want to use in web tier i.e in servlets/jsp you have to define resource-ref and ejb-ref correspondingly. For JMS which is a resource so you have to declare resource-ref in your web.xml like the following.

 resource-ref
  res-ref-namejms/theQueueConnectionFactory/res-ref-name
  res-typejavax.jms.QueueConnectionFactory/res-type
  res-authContainer/res-auth
 /resource-ref
 resource-ref
  res-ref-namejms/myQueue/res-ref-name
  res-typejavax.jms.Queue/res-type
  res-authContainer/res-auth
 /resource-ref


Inside your servlet/jsp for connection factory lookup for jms/theQueueConnectionFactory and for queue lookup for jms/myQueue.



 - Original Message -
 From: Daniel Lopez [EMAIL PROTECTED]
 To: Orion-Interest [EMAIL PROTECTED]
 Sent: Wednesday, August 22, 2001 8:48 AM
 Subject: [Fwd: Re: Orion and JMS: javax.naming.NameNotFoundException]
 
 
  Hi (third try to the list, first ones didn't make it),
 
  I haven't got a single answer, so I'm wondering if nobody 
 is using Orion
 
  JMS or this mailing list is playing funny with me. Has anybody
  configured and used Orion JMS? Could somebody please 
 elaborate on the
  steps necessary to get this thing working?
  Thanks in advance,
  D.
 
  Daniel López wrote:
  
   Hi,
  
   I know this topic has been discussed a lot in here, but I 
 haven't been
 
   able to find the answer in the archive or in the 
 documentation. The
   problem is: I decided to have a go with JMS but I can't 
 even start to
   play with it, as all I get is 
 javax.naming.NameNotFoundException.
   These are the steps I have followed:
   .- Configure server.xml with the following line:
   ...
   jms-config path=./jms.xml /
   ...
   .- Configure jms.xml with this content:
   jms-server port=9127 host=localhost
   queue-connection-factory
   location=jms/QueueConnectionFactory/
   queue name=Demo Queue location=jms/demoQueue
   descriptionA dummy queue/description
   /queue
   log
   file path=../logs/jms.log /
   /log
   /jms-server
   .- Add jndi.properties to my application's 
 classes(WEB-INF/classes),
   with the following content:
  
  
 
 java.naming.factory.initial=com.evermind.server.ApplicationCli
 entInitialCont
 extFactory
 
   java.naming.provider.url=ormi://localhost/
   java.naming.security.principal=admin
   .- Then in my servlet, I just try to see if the objects are there:
   ...
   Context ctx = new InitialContext();
   QueueConnectionFactory queueConnectionFactory =
   (QueueConnectionFactory)
   ctx.lookup(java:comp/env/jms/QueueConnectionFactory);
   // Exception is thrown in the line above
   ...
   The facts:
   .- JMS Server seems to have been started, as I can see the
  jms.log file
   and reads (Date 1.4.5 Started)
   .- I have tried with various names, with and without
  java:comp/env, and
   with various methods (list, listBindings...) with no 
 look. I cannot
  get
   a single object to be looked up.
   .- Platform is WinNt 4.0, JDK1.3.0-c hotspot, 
 Orion 1.4.5 (I
  also tried
   1.5.2 with the same results)
  
   So, what have I forgotten to do? It seems like I just forgot to do
  some
   essential step. I tried to find the JMS how to by Kesav 
 Kumar but I
   couldn't find it. Anybody, please?
   Thank you in advance,
   D.
  
   PD: On a side note, I have seen man people trying to use 
 external JMS
   providers with Orion, is that so because Orion JMS is 
 buggy? Would it
  be
   better to use some external tool like OpenJMS or so? I 
 had thought it
   would be nice to have everything in the same place, this 
 way you just
   have to take care of one server. Comments?
 
 
 





RE: Invoke a method on myself in a Stateful Session Bean.

2001-08-22 Thread David Libke

You code is illegally written. The following edit will accomplish what you
want.

 public class FooBean extends SessionBean 
 {
   
   /**
* @ejb:create-method
*/
   public void ejbCreate() 
   {
   }
 
 
   /**
* @ejb:remote-method  // do you mean a 'Business Method' that a Foo
client calls?
*/
   public void foo() 
   {
   // do something interesting
   bar();
   // do something interesting
   }
 
   
   /**
* @ejb:remote-method  // does a Foo client call this method?
*/
   public void bar() 
   {
   // do something interesting
   }   
 }

If foo() is under a transaction then calling bar() from foo() puts bar()
under the same tranaction. 

The question becomes does bar() really need to be public? Is bar() called by
the Foo client directly?

Dave

-Original Message-
From: Juan Lorandi (Chile) [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, August 22, 2001 10:51 AM
To: Orion-Interest
Subject: RE: Invoke a method on myself in a Stateful Session Bean.


Neat. I've been having similar problems trying to execute a findByPrimaryKey
in the ejbCreate method of a bean. Errors, however, just come and go away
randomly.

 -Original Message-
 From: Mikael Ståldal [mailto:[EMAIL PROTECTED]]
 Sent: Miércoles, 22 de Agosto de 2001 3:34
 To: Orion-Interest
 Subject: Invoke a method on myself in a Stateful Session Bean.
 
 
 When I try to do like the code below, I get this error:
 
 com.evermind[Orion/1.5.2 (build 
 10460)].server.rmi.OrionRemoteException:
 Recursive call to non-reentrant bean
 
 Is there any other way to do this? I don't want to invoke the methods
 directly, since I want to make use of container managed transactions.
 
 
 /**
  * @ejb:ejb-name Foo
  * @ejb:stateful-session
  */
 public class FooBean extends SessionBean 
 {
   private Foo me;
   
   /**
* @ejb:create-method
*/
   public void ejbCreate() 
   {
   me = (Foo)PortableRemoteObject.narrow(
   sessionContext.getEJBObject(),
 Foo.class);
   }
 
 
   /**
* @ejb:remote-method
*/
   public void foo() 
   {
   // do something interesting
   me.bar();
   // do something interesting
   }
 
   
   /**
* @ejb:remote-method
*/
   public void bar() 
   {
   // do something interesting
   }   
 }
 




No Subject

2001-08-22 Thread nmihali




**

This e-mail message is intended solely for the use of the addressee. The message
 may contain information that is privileged and confidential.  Disclosure to
anyone other than the intended recipient is prohibited. If you are not the
intended recipient, please do not disseminate, distribute or copy this
communication, by e-mail or otherwise. Instead, please notify us immediately by
return e-mail (including the original message with your reply) and then delete
and discard all copies of the message.
We  have taken precautions to minimize the risk of transmitting software viruses
 but nevertheless advise you to carry out your own virus checks on any
attachment to  this  message.  We  accept  no  liability  for any loss or damage
 caused by software viruses.

**






EJB1.1 - dependent objects are not deleted...

2001-08-22 Thread nmihali



I have an ejb called PersonEJB that is an 1.1 EJB.  PersonEJB has PersonOrdersDO
dependent objects.
The dependent objects are mapped to a second table in the database. When I
deploy the bean in Orion1.3.8, if I change the dependent objects, the container
will update the records in the database, which is what I want.

I just upgraded to Orion1.5.2 and deployed the same bean. There is one
difference: when the dependent objects get changed the container will insert new
records in the second table, rather than updating the existent ones. This is
wrong, because it should just update the records, not produce new ones.This
worked in 1.3.8, so is it a bug, and if it is in which server?

Any help is appreciated.

Thank you.
**

This e-mail message is intended solely for the use of the addressee. The message
 may contain information that is privileged and confidential.  Disclosure to
anyone other than the intended recipient is prohibited. If you are not the
intended recipient, please do not disseminate, distribute or copy this
communication, by e-mail or otherwise. Instead, please notify us immediately by
return e-mail (including the original message with your reply) and then delete
and discard all copies of the message.
We  have taken precautions to minimize the risk of transmitting software viruses
 but nevertheless advise you to carry out your own virus checks on any
attachment to  this  message.  We  accept  no  liability  for any loss or damage
 caused by software viruses.

**






Re: Reading Properties File

2001-08-22 Thread Michael J. Cannon

Excellent solution for all of our toolkits.  A great service.  Thank you,
Marcel.
- Original Message -
From: Marcel Schutte [EMAIL PROTECTED]
To: Orion-Interest [EMAIL PROTECTED]
Sent: Wednesday, August 22, 2001 12:57 PM
Subject: Re: Reading Properties File


 See the attached files. We use them to read properties files off the
 applications classpath. The properties files should be in the same
directory
 as the ProjectPropertiesHelper class.
 This method works in both orion1.5.2 and weblogic6.1

 Hope this helps,
 Marcel

 - Original Message -
 From: Naresh Sharma [EMAIL PROTECTED]
 To: Orion-Interest [EMAIL PROTECTED]
 Sent: Wednesday, August 22, 2001 8:50 AM
 Subject: Reading Properties File


  Hello Everybody,
 
 
  I have to read a properties file inside my EJB's method(I know the about
  EJB specs. restriction).
 
  As far as I know, to read a properties file in Orion we can specify the
  name of properties file with -p switch at orion server starting, or copy
  the properties file in ORION_HOME\lib directory(this directory is
  included in classpath setting through the manifest file).
 
  This solution works for me only if i read the properties file using
  getResource method of java.lang.Classloader for getting the
  URL of the resource, but if i use getSystemResource it fails.
 
  1) So what's the difference in between getResource and getSystemResource
  method of java.lang.Classloader?? I read the java docs for these methods
  but it is still not very clear to me.
 
 
  Secondly, But In our application we don't want anything like above
  solution, we wish to include the Properties file in system classpath,
  and then our EJB should be able to read the properties file.
 
  2) Is this is the right way ??   I tried but it was unsuccessful. May be
  i am missing something. I couldn't figure out why getSystemResource
  method is failing in this scenario, where system Classpath contains the
  conf file.
 
 
  any clue??
 
 
  Thanks
  Naresh
 
 
 
 
 
 
 
 
 






Re: PrOperTies ??

2001-08-22 Thread Eddie Post
Title: SV: Roll-BACK question.



Thanks Juan, I like the load-on-startup alternative 
and will play around with it.

Ed

  - Original Message - 
  From: 
  Juan 
  Lorandi (Chile) 
  To: Orion-Interest 
  Sent: Wednesday, August 22, 2001 5:14 
  PM
  Subject: RE: PrOperTies ??
  
  env 
  entries in the ejb-jar.xml, web.xml;
  also, you could create a "load-on-startup" servlet, 
  which is allowed to access disk, to create, say, a 
  singleton
  which in its constructor opens and loads the 
  properties files. Therefore, you will be paying once per JVM for the 
  initialization, and have it your way.
  
  HTH
  Juan 
  Pablo
  
-Original Message-From: Eddie Post 
[mailto:[EMAIL PROTECTED]]Sent: Miércoles, 22 de Agosto de 
2001 6:32To: Orion-InterestSubject: Re: PrOperTies 
??
Noc noc,

Can someone please still have some advice on 
the question I posted below ??


Eddie

  - Original Message - 
  From: 
  Eddie 
  Post 
  To: Orion-Interest 
  Sent: Tuesday, August 14, 2001 9:18 
  AM
  Subject: PrOperTies ??
  
  Hellu,
  
  Where do you define your properties/constants 
  which you want to use in your ejb's and servlets (I am using CMP) 
  ??
  
  I am wandering if, putting it all in a 
  property file is the best way to do it (the EJB spec don't 'allow' it), 
  concerning performance and the xml files to store properties. Howcan 
  you define constants in a xml file that are both seen by the servlets and 
  ejb's ??
  
  Some advice on this issue please 
  ?
  
  Eddie


RE: NEWS: Orion Server Growth - 1400% in 12 months

2001-08-22 Thread Mike Cannon-Brookes

Message seemed to get eaten by the Orion-interest gremlins - resending.

 
 Congrats Ironflare!
 
 The latest Netcraft figures for July, 2001 are in and it's good 
 news - Orion posted another solid month of server growth, racing 
 to become the 55th most used webserver on the planet - 1 place 
 behind WebLogic! Read all about it - 
 http://www.atlassian.com/article/oriongrowth.html
 
 -mike
 
 PS Any and all conclusions drawn from Netcraft figures are 
 inherently dodgy and not to be trusted ;)
 
 
 Mike Cannon-Brookes :: [EMAIL PROTECTED] 
 
 Atlassian :: http://www.atlassian.com
  Supporting YOUR J2EE World





Trouble with Tomcat Client connecting to Orion Server EJB Bean

2001-08-22 Thread Robins, Roger




I have a java bean in a JSP page on a Tomcat Server that is 
trying to talk to a EJB on an Orion Server.
The connection hangs trying to establish initialContext with the 
remote server. No error message appears, and the connection never times 
out.
Note: The Orion Server also has a client that talks to the EJB 
locally and this works.
If I sit on the console of the Tomcat server, and "telnet 
OrionServer 23971" then type some crap, I get:
"illegal ORMI request or request performed" proving the Orion 
Server is listening on the port.
Client Code:
// Our Main Query 
public String getResults(String UserName) {
try {
System.out.println("Start GetResults");
SecurityHome secHome = lookupSecurityHome();
Security secObject = secHome.create();
System.out.println("After Create secObject");
} catch (javax.naming.NamingException ne) {
System.out.println("lookupHome, NamingException: 
"+ne.getMessage());
}
catch (java.rmi.RemoteException re) {
System.out.println("lookupHome, RemoteException: 
"+re.getMessage());
}
catch (javax.ejb.CreateException ce) {
System.out.println("lookupHome, CreateException: 
"+ce.getMessage());
} // End Try/Catch
return UserName;
} // getResults

public SecurityHome lookupSecurityHome()
throws NamingException {

try {
System.out.println("Entering lookupSecurityHome");
Context ctx = getInitialContext();
System.out.println("End of getInitialContext");
Object home = (SecurityHome) 
ctx.lookup("ejb/SecurityHome");
System.out.println("After Lookup");
return (SecurityHome) PortableRemoteObject.narrow(home, 
SecurityHome.class);
} catch (NamingException ne) {
System.out.println("[DPSFacade] lookupHome, NamingException: 
"+ne.getMessage());
throw ne;
} // End try/catch


} // Lookup Security Home
/**
*
* Using a Properties object will work on JDK 1.1.x and 
Java2
* clients
*/
public Context getInitialContext() throws NamingException 
{
try {
// Get an InitialContext
Properties h = new Properties();
h.put(Context.INITIAL_CONTEXT_FACTORY, 
"com.evermind.server.ApplicationClientInitialContextFactory");
h.put(Context.PROVIDER_URL, 
"ormi://itut42.inettest.det.nsw.edu.au:23791/ejb");
return new InitialContext(h); //  Never get past here 
*

// return new InitialContext();
} catch (NamingException ne) {
throw ne;
} // end try catch
} //getInitialContext
} // End Class
Does anybody have any ideas??
Thanks,
Roger
Roger Robins 
Middle Ware Support 
[EMAIL PROTECTED] 9942 9715 



I think, I will start a support site too....

2001-08-22 Thread Alex Paransky

(in style of Andy Rooney)

I see everyone is starting their support sites for Orion.  I think it's a
poor solution for something that's broken, mainly, this mailing list.  How
many support sites do we actually have now?  Why is it such a problem to
keep the mailing list up and running?

Now, we need to post the message to at least 3 places to make sure it gets
maximum exposure.  I think I will start a support site, that posts to all
other support sites, just so that people don't have to search various
support sites for help.

I don't mind so many support sites starting up, I just think they are
starting up for poor reasons and fragmenting what little knowledge we
already have about this product.

What is the problem with the list?  Why is it down half the time? I hope
it's not running under Orion...

-AP_





Orion Clustering problems..

2001-08-22 Thread Duffey, Kevin

HI all,
 
Hopefully this will make the list.
 
I am working on a chapter for a book about scalability. I am also needing to
get our site ready for scaling. I am using Orion to test my web-app that
needs to be a demonstration of a scalable Servlet 2.2 web application. I
have a couple of questions to ask about session fail-over, and how to get
Orion to do this.
 
I followed the cluster doc to the tee, and everything works fine except that
the SessionServlet example does NOT keep the count going when I shut down
the server that the first request to it created a session on. It starts over
on the count. So I assume either my config is somehow just not correct, or
that this is a bug with Orion. Here is what I have in my web-site.xml file:
 
?xml version=1.0?
!DOCTYPE web-site PUBLIC Orion Web Site
http://www.orionserver.com/dtds/web-site.dtd
web-site host=192.168.0.10 port=8080 display-name=My Cluster Site
cluster-island=1
  frontend host=192.168.0.20 port=80/
  default-web-app application=MyApp name=www/
  access-log path=./logs/access.log/
/web-site
 
I have the identical web-app and orion config setup for two machines. The
second machine uses a different host ip address, but does use port 8080.
Same island, and the frontend is set to the same IP as the one above. I also
set the cluster-config/ tag in the /config/global-web-app.xml file of
Orion, so that all web-apps deployed will be clustered. Finally, each
web-app web.xml has the distirbutable/ tag in it.
 
I run the loadbalance.jar file with the -debug option, and run each orion
server with the two HTTP debug options. Everything runs fine. The
loadbalancer starts up, I start the two servers, I see them both being
added. I then make a request to the /servlet/SessionServlet. Comes up fine.
The loadbalancer window shows the session id and what server it goes to.
That server's orion window shows the session being created, etc. I open a
new window and do the same thing, and this time the loadbalancer routes it
to the other server and all is fine. Continuing requests from both browsers
continue to send the requests to the same server their original
request/session was created on. Now, if I shut one of the two down, the
browser that has requests going to that server sometimes shows the 404 error
as if the loadbalancer is not able to redirect its requests to the other
server still running. Other times, it works, but the session counter starts
over again. Also, I DO see from both orion server windows when I hit the
SessionServlet and refresh it that it says sending.. or something like
that, which I assumes means its sending the session data. However, on the
other orion window I don't see receiving.. if that is even supposed to
show up. Also, this doesn't do it every time I refresh the window..just some
of the times. This I attribute to possible browser caching of the page..not
sure though.
 
So I am stumped as to why the sessions are not replicating properly, or at
all. If someone can help out on this, that would be great. But this leads me
into a few technical questions about session fail-over in general.
 
First, I read one article, and someone here (or in the jsp-interest list)
had explained how to replicate a session you must always use the
setAttribute() or putValue() calls. The reason makes sense. If you run this
code:
 
MyBean myBean = (MyBean) session.getAttribute(MyBean);
myBean.setName(SomeName);
 
RequestDispatcher rd =
request.getRequestDispatcher(/somepage.jsp).forward(request,response);
 
then in the JSP page have:
 
jsp:useBean id=MyBean scope=session class=mypackage.MyBean/
 
%= MyBean.getName() %
 
You'll see that it works correctly..spits out the SomeName. However, the
problem with this..at least from what I have read about writing scalable
web-apps, is that the container has not replicated this change to another
server (or servers) in the same cluster. The reason is, there is no way for
the container to know a change to a field of an object in the HtppSession
has changed. So this leads me to believe one of two things. Session
fail-over only works if you call the setAttribute() call, which the
container can implement to properly replicate the session to another server
(in whatever manner is needed but I think multi-cast is the most common), or
that the container MUST constantly replicate the session at some interval in
order to make sure the other servers sessions are all kept in sync with this
one (and vice versa for those servers sessions). 
 
So this raises a few problems and/or questions. First, if the container
constantly replicates the session at some interval, how badly does that
degrade the performance of the server (and the cluster as replicating
involves serializing, sending, then deserializing and storing the
deseralized objects (or object) into that servers session)? Also, how
exactly is this done..I mean, is the entire Hashtable of ALL user sessions
serialized, sent, and deserialized by the other servers, and at that point
each of 

Re: I think, I will start a support site too....

2001-08-22 Thread Michael J. Cannon

I personally think third-party support sites are a good thing.  All of them
I have seen so far are primarily commercial in nature, in order to counter
the complaints of the corporate users that there was no 'credible support.'
It's capitalism in action:  see a need in the market and meet it.

...as to what the maillist runs, it really doesn't matter.  All websites go
down...Hotmail, Yahoo, even Slashdot...the rumor - never confirmed - was
that it did indeed run on Orionserver.  So what?  Now you have another place
to go when it is down (the new support sites).

...and if Orion is good enough for you to run a web site - (and it is:
http:/www.standardset.com/ )
well, it should be good enough for Orion, especially since they developed it
and this is one of the 'load and valence test platforms (if it does indeed
run on Orion) for the product.

Finally, the more info the merrier, and, given the levels of interest and
participation by the people who have started these support sites and the
support they have shown everyone on this maillist, I don't think any of us
are going to suffer.

Michael J. Cannon
- Original Message -
From: Alex Paransky [EMAIL PROTECTED]
To: Orion-Interest [EMAIL PROTECTED]
Sent: Wednesday, August 22, 2001 9:13 PM
Subject: I think, I will start a support site too


 (in style of Andy Rooney)

 I see everyone is starting their support sites for Orion.  I think it's a
 poor solution for something that's broken, mainly, this mailing list.  How
 many support sites do we actually have now?  Why is it such a problem to
 keep the mailing list up and running?

 Now, we need to post the message to at least 3 places to make sure it gets
 maximum exposure.  I think I will start a support site, that posts to all
 other support sites, just so that people don't have to search various
 support sites for help.

 I don't mind so many support sites starting up, I just think they are
 starting up for poor reasons and fragmenting what little knowledge we
 already have about this product.

 What is the problem with the list?  Why is it down half the time? I hope
 it's not running under Orion...

 -AP_







Re: This mailing list

2001-08-22 Thread Vikas Malhotra

Good Question nay answers :)

- Original Message -
From: Mikael Ståldal [EMAIL PROTECTED]
To: Orion-Interest [EMAIL PROTECTED]
Sent: Wednesday, August 22, 2001 3:19 PM
Subject: This mailing list


 Why is this mailing list hosted on such a lousy server?


*
Disclaimer

This message (including any attachments) contains 
confidential information intended for a specific 
individual and purpose, and is protected by law. 
If you are not the intended recipient, you should 
delete this message and are hereby notified that 
any disclosure, copying, or distribution of this
message, or the taking of any action based on it, 
is strictly prohibited.

*
Visit us at http://www.mahindrabt.com




JMS error

2001-08-22 Thread Vikas Malhotra
Title: RE: JMS Client throwing error



Hi everyone
I know thatJMS has been discussed a lot before in the 
group but still i m facing some problems with it
it seems that the message listener is not responding et 
all... please help me out with this..

Vikas

  - Original Message - 
  From: 
  Kesav Kumar 
  
  To: Orion-Interest 
  Sent: Tuesday, August 14, 2001 10:30 
  PM
  Subject: RE: JMS Client throwing 
  error
  
  Just remove the queue-connection-factory from jms.xml and 
  try. 
  Kesav Kumar Kolla Voquette Inc 
  650 356 3740(W) 510 889 
  6840(R) VoquetteDelivering Sound 
  Information 
  -Original Message- From: Vijay 
  Pawar [mailto:[EMAIL PROTECTED]] 
  Sent: Tuesday, August 14, 2001 8:05 AM To: Orion-Interest Subject: JMS Client throwing 
  error 
  Here is description of my problem In 
  my application I have changed port in rmi.xml to rmi-server port=""  In 
  default-web-site.xml I changed HTTP port to web-site port="" display-name="Default Oracle9iAS 
  Containers for J2EE Web Site" My 
  JMS entry is like jms-server host="10.5.4.47" 
  port="9127"  queue-connection-factory host="10.5.4.47" location="javax.jms.QueueConnectionFactory" / 
   queue 
  name="Micro Queue" location="MICROQUEUE" 
   /queue  
  log  
   file 
  path="./log/jms.log" / 
   /log /jms-server 
  I am using mailing application written on Queue funda. 
  Messenge is sent successfully to queue and I can see 
  it through OrionConsole but when I run client i.e. 
  recceiver I get javax.jms.JMSException: Unable to connect to JMSServer (VPAWAR/10.5.4.47:9127)  at com.evermind.server.jms.EvermindQueueConnection.connect(EvermindQueueConnection.java:144) 
   at 
  com.evermind.server.jms.EvermindQueueConnection.receive(EvermindQueueConnection.java:102) 
   at 
  com.evermind.server.jms.EvermindQueueSession.receive(EvermindQueueSession.java:241) 
   at 
  com.evermind.server.jms.EvermindQueueReceiver.receive(EvermindQueueReceiver.java:34) 
   at 
  CReceiveMail.run(CReceiveMail.java:91)  at 
  CReceiveMail.main(CReceiveMail.java:66) 
  I had specify application-client.xml also correctly. 
  Can you help me in this. regards, Vijay 
  __ 
  Do You Yahoo!? Make international 
  calls for as low as $.04/minute with Yahoo! Messenger http://phonecard.yahoo.com/ 




*
Disclaimer

This message (including any attachments) contains 
confidential information intended for a specific 
individual and purpose, and is protected by law. 
If you are not the intended recipient, you should 
delete this message and are hereby notified that 
any disclosure, copying, or distribution of this
message, or the taking of any action based on it, 
is strictly prohibited.

*
Visit us at http://www.mahindrabt.com