Re: OT: Session Related

2002-03-18 Thread Linus Larsen


Put and Get is deprecated, use session.setAttribute(foo)/ 
session.getAttribute(foo) instead.

/Linus

On Sunday, March 17, 2002, at 04:55 PM, Stephen Davidson wrote:

 Hi Michael.

 The following line in your servlets should handle you;
 request.getSession().put(keyObject, valueObject);
 request.getSession().get(keyObject);
 where;
 request is the users HttpRequest object
 getSession returns the HttpSessionObject

 More details available in the J2EE JavaDocs.

 -Steve

 Michael Shoemaker wrote:
 Hello gang
 I have a question about a situation that I am facing.  Currently we are
 using servlets to store session information.  i.e.  For instance, you
 the front end people wanted to store data into the session they would
 call SessionServlet?step=savesessionId=123myVal=xyz.  In turn a call
 to it with step=get would return xml containing the value previously
 stored.  It's a somewhat rudimentary way of getting around cookies.  
 Our
 front end is written in a version of Vignette that doesn't support
 jsp(another story).  My question is, the infrastructure guys recently
 introduced a load balancers and now we are not guaranteed to get the
 same server.  Big problem.  Have any of you solved a problem similar to
 this.  Unfortunately, upgrading to the next version of Vignette isn't
 the solution.  We are about a year or more away budget wise.  Thanks
 again for taking the time to read an off topic post.  Mike
 _
 Do You Yahoo!?
 Get your free yahoo.com address at http://mail.yahoo.com



 -- Stephen Davidson
 Java Consultant
 Delphi Consultants, LLC
 http://www.delphis.com
 Phone: 214-696-6224 x208







Re: AutoGen Primary Key for Entity Beans

2002-03-18 Thread Cristian Donciulescu

integer

- Original Message - 
From: Michael Shoemaker [EMAIL PROTECTED]
To: Orion-Interest [EMAIL PROTECTED]
Sent: Saturday, March 16, 2002 4:57 PM
Subject: AutoGen Primary Key for Entity Beans


 I see on the orion support page the use of
 com.evermind.ejb.CounterUtils.getNextID().  Anyone use this?  What does
 this method return?  String? Long?  Integer?
 
 http://www.orionsupport.com/articles/ejbuniquecounter.html
 
 
 
 _
 Do You Yahoo!?
 Get your free @yahoo.com address at http://mail.yahoo.com
 
 






Axis and EJB lookup - NamingException

2002-03-18 Thread Eddie Post

Hellu,

I am trying to connect to my EJB in Orion 1.5.4 through Apache Axis.
I configured everyting like in the mail that I found in the mailinglist:
http://marc.theaimsgroup.com/?l=axis-userm=100879873023841w=2

However, I do get the NamingException (see below) when my test-client tries 
to invoke the EJB method.
Please some help or example ?

What I did:
1) deployed it with the deploy.xml below.
2) Put a EJB ref in the axis web.xml, see below.
3) Put a jndi.properties in the Axis WEB-INF dir, see below (also tried the 
Axis META dir)
4) Put a class-path entry in the orion-web-xml file of axis, see below.
5) Put a library-path entry in the orion-application-xml file of axis, see 
below.

Eddie


Note:
a) the jndi file works with a direct client.
b) Axis works with just one class.
c) In the mailing list example they use file:///C:/ (three slashes), 
which isn't correct, not ??
d) In the mailing list example they use location in the orion-web.xml, 
which I don't think is necessary, not ? (I never use it with my J2EE 
applications). If I use it Orion gives an syntax error.

Librarypath entry in the orion-application.xml file:

library path=file://C:/Program 
Files/Orion_apps/lib/java/Soap/axis/WEB-INF/jndi.properties /


Classpath entry in orion-web.xml:
--
classpath path=file://C:/Program 
Files/Orion_apps/lib/java/Soap/axis/WEB-INF/jndi.properties /
---


jndi.properties file:
---
java.naming.factory.initial=com.evermind.server.ApplicationClientInitialContextFactory
java.naming.provider.url=ormi://localhost/sgs
java.naming.security.principal=user
java.naming.security.credentials=12345
---


EJB ref in web.xml of axis:

ejb-ref
description User Manager of SGS /description
ejb-ref-nameejb/UserManager/ejb-ref-name
ejb-ref-typeSession/ejb-ref-type
homenl.unwired.sgs.um.UserManagerHome/home
remotenl.unwired.sgs.um.UserManager/remote
ejb-linkUserManager/ejb-link
/ejb-ref



deploy.xml:
-
deployment xmlns=http://xml.apache.org/axis/wsdd/;
xmlns:java=http://xml.apache.org/axis/wsdd/providers/java;
service name=UserManager provider=java:EJB
parameter name=beanJndiName  value=java:comp/env/ejb/UserManager/
parameter name=className value=nl.unwired.sgs.um.UserManager/
parameter name=allowedMethods value=getAllUsersFromAccount/
/service
/deployment
-


Soap error:
-
C:\samples\edjava -cp .;axis.jar;log4j-core.jar;crimson.jar;jaxp.jar 
ClientEjb 0
Exception in thread main javax.naming.NamingException: Error inst
antiating web-app JNDI-context: No location specified and no suitab
le instance of the type 'nl.unwired.sgs.um.UserManager' found for t
he ejb-ref ejb/UserManager
at org.apache.axis.message.SOAPFaultBuilder.endElement(SOAP
FaultBuilder.java:134)
at org.apache.axis.encoding.DeserializationContext.endEleme
nt(DeserializationContext.java:671)
at org.apache.crimson.parser.Parser2.maybeElement(Parser2.j
ava:1528)
at org.apache.crimson.parser.Parser2.content(Parser2.java:1
779)
at org.apache.crimson.parser.Parser2.maybeElement(Parser2.j
ava:1507)
at org.apache.crimson.parser.Parser2.content(Parser2.java:1
779)
at org.apache.crimson.parser.Parser2.maybeElement(Parser2.j
ava:1507)
at org.apache.crimson.parser.Parser2.parseInternal(Parser2.
java:500)
at org.apache.crimson.parser.Parser2.parse(Parser2.java:305
)
at org.apache.crimson.parser.XMLReaderImpl.parse(XMLReaderI
mpl.java:442)
at javax.xml.parsers.SAXParser.parse(SAXParser.java:393)
at org.apache.axis.encoding.DeserializationContext.parse(De
serializationContext.java:204)
at org.apache.axis.SOAPPart.getAsSOAPEnvelope(SOAPPart.java
:378)
at org.apache.axis.client.Call.invoke(Call.java:1268)
at org.apache.axis.client.Call.invoke(Call.java:1113)
at org.apache.axis.client.Call.invoke(Call.java:1043)
at org.apache.axis.client.ServiceClient.invoke(ServiceClien
t.java:456)
at ClientEjb.main(ClientEjb.java:11)
---

_
Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp.





JNDI naming exception when running app on orion from JBuilder

2002-03-18 Thread DORAN, GRANT

Hello,

I'm having a terrible time trying to get my application to debug from
JBuilder 6 Enterprise.
When I build the application using ANT and deploy it to orion, the servlet
can lookup the EJBs ok.
But when I run Orion in debug mode from JBuilder, it starts up ok, but fails
when the servlet tries to lookup the first EJB.
The line of code is:

  Object boundObject =
context.lookup(java:comp/env/ejb/SPControllerHome);

The output to the log as a result is:

javax.naming.NamingException: java:comp/env namespace is only available from
within a J2EE component
at
com.sun.enterprise.naming.java.javaURLContext.getComponentContext(javaURLCon
text.java:395)
at
com.sun.enterprise.naming.java.javaURLContext.lookup(javaURLContext.java:51)
at javax.naming.InitialContext.lookup(InitialContext.java:350) 

Has anyone else had this problem?
Has anyone successfully configured JBuilder5 or 6 to debug orion with a full
J2EE app?

If  can't get this working, I'll have to change to Borland Appserver, which
will slow my development down even more.

Any help would be greatly appreciated.

Grant Doran
Contract Java Developer/Architect
Britannic Assurance


This email and any accompanying documents are intended only for the named recipient, 
are confidential and may be privileged. If you are not the intended recipient please 
notify us immediately by mailto:[EMAIL PROTECTED] and you must not copy, disclose 
or otherwise use this message. Unauthorised use is strictly prohibited and may be 
unlawful. The content of this email represents the view of the individual and not the 
company. The company reserves the right to monitor the content of all emails in 
accordance with lawful business practice.

Whilst attachments are virus checked before transmission, Britannic Assurance plc does 
not accept any liability in respect of any virus which is not detected.

Britannic Assurance plc, No.3002 is registered in England and maintains its registered 
office at 1 Wythall Green Way, Wythall, Birmingham B47 6WG.
Telephone: 0870 887 0001
Fax: 0870 887 0002
Website: www.britannicassurance.com

Britannic Assurance plc, Britannic Unit Linked Assurance Limited, Britannic ISA 
Managers Limited and Britannic Unit Trust Managers Limited are regulated by the 
Financial Services Authority. Each of these companies is a member of the Britannic 
marketing group which only advises on and sells its own life assurance, pension, unit 
trust and ISA products.





RE: OT: Session Related

2002-03-18 Thread Satter, Rabi

This is an old issue and major pain with hardware load balancing. You have a
couple of options. If you are using Orion you could setup the servers as a
cluster. That way the session is replicated between servers. The other thing
is that the Infrastructure guys should turn on the ability that once a user
has gone to a particular server that they continue to go to that server
unless it goes down. And don't let them tell you they can't. All the load
balancers do this.


Michael Shoemaker wrote:
 Hello gang
 
 I have a question about a situation that I am facing.  Currently we are
 using servlets to store session information.  i.e.  For instance, you
 the front end people wanted to store data into the session they would
 call SessionServlet?step=savesessionId=123myVal=xyz.  In turn a call
 to it with step=get would return xml containing the value previously
 stored.  It's a somewhat rudimentary way of getting around cookies.  Our
 front end is written in a version of Vignette that doesn't support
 jsp(another story).  My question is, the infrastructure guys recently
 introduced a load balancers and now we are not guaranteed to get the
 same server.  Big problem.  Have any of you solved a problem similar to
 this.  Unfortunately, upgrading to the next version of Vignette isn't
 the solution.  We are about a year or more away budget wise.  Thanks
 again for taking the time to read an off topic post.  
 
 
 Mike
 
 
 
 _
 Do You Yahoo!?
 Get your free yahoo.com address at http://mail.yahoo.com
 
 
 
 



-- 
Stephen Davidson
Java Consultant
Delphi Consultants, LLC
http://www.delphis.com
Phone: 214-696-6224 x208




Re: OT: Session Related

2002-03-18 Thread Eric Hodges

This is an old issue.  I've solved it in other environment by sending a
token back with the first response that contains a key to lookup the context
of the conversation.  Subsequent requests send that token and the server can
lookup the context info in a database shared between the servers.  Not sure
if this approach translates to J2EE, though.



- Original Message -
From: Satter, Rabi [EMAIL PROTECTED]
To: Orion-Interest [EMAIL PROTECTED]
Sent: Monday, March 18, 2002 8:28 AM
Subject: RE: OT: Session Related


 This is an old issue and major pain with hardware load balancing. You have
a
 couple of options. If you are using Orion you could setup the servers as a
 cluster. That way the session is replicated between servers. The other
thing
 is that the Infrastructure guys should turn on the ability that once a
user
 has gone to a particular server that they continue to go to that server
 unless it goes down. And don't let them tell you they can't. All the load
 balancers do this.


 Michael Shoemaker wrote:
  Hello gang
 
  I have a question about a situation that I am facing.  Currently we are
  using servlets to store session information.  i.e.  For instance, you
  the front end people wanted to store data into the session they would
  call SessionServlet?step=savesessionId=123myVal=xyz.  In turn a call
  to it with step=get would return xml containing the value previously
  stored.  It's a somewhat rudimentary way of getting around cookies.  Our
  front end is written in a version of Vignette that doesn't support
  jsp(another story).  My question is, the infrastructure guys recently
  introduced a load balancers and now we are not guaranteed to get the
  same server.  Big problem.  Have any of you solved a problem similar to
  this.  Unfortunately, upgrading to the next version of Vignette isn't
  the solution.  We are about a year or more away budget wise.  Thanks
  again for taking the time to read an off topic post.
 
 
  Mike
 
 
 
  _
  Do You Yahoo!?
  Get your free @yahoo.com address at http://mail.yahoo.com
 
 
 
 



 --
 Stephen Davidson
 Java Consultant
 Delphi Consultants, LLC
 http://www.delphis.com
 Phone: 214-696-6224 x208






OrionSupport

2002-03-18 Thread Rachid Drissi



Hi Everybody,


Couldanybody who purshased a support from 
orion, tell us how good it is in terms of pricing, response time 
..etc.
Thanks,

Drissi.


Re: OrionSupport

2002-03-18 Thread Ray Harrison

Hi Drissi -
There are two excellent companies that have sprung up to offer Orion support - 
Elephantwalker and
Atlassian (www.atlassian.com, www.elephantwalker.com). If their paid support is 
anything like
their free forums, you will definitely be in good hands. Check them out.


Cheers
Ray Harrison


--- RDrissi [EMAIL PROTECTED] wrote:
 Hi Everybody,
 
 
 Could anybody who purshased a support from orion, tell us how good it is in terms of 
 pricing,
 response time ..etc.
 Thanks,
 
 Drissi.
 


__
Do You Yahoo!?
Yahoo! Sports - live college hoops coverage
http://sports.yahoo.com/




Liferay Open Source Portal

2002-03-18 Thread Brian Chan

Hey All,

A group of us have spent about a year developing a J2EE open source portal server. The 
portal was built on top of Orion (Oracle9i) and provides personalization (similar to 
Yahoo!) and web mail (similar to Hotmail) and many other content management tools.

You can see a demo and download it at http://www.liferay.com

It is made available under the MIT Open Source License (similar to BSD).

- Brian Chan ([EMAIL PROTECTED])


Abwesenheitsnotiz

2002-03-18 Thread Michael_Caspari/Adica%ADICA

Ich werde ab  18.03.2002 nicht im Büro sein. Ich kehre zurück am
22.03.2002.







User Management?

2002-03-18 Thread Clay Mitchell

Can anybody recommend a good user management library? Nothing too
complicated, just need it to store email/username etc and be able to
confirm that the user has an active session?

Thanks
-Clay






Re: Re: Showing Error Messages

2002-03-18 Thread bigizzy

Hi,
I suppose you are using IE as your browser. If so then go to Tools  Internet Options 
 Advanced and Uncheck Show Friendly HTTP Error Messages.

Having done this you will get proper java compilor error messages and not 500 Internal 
server error.

Hari.


Get Your Private, Free E-mail from Indiatimes at http://email.indiatimes.com

 Buy Music, Video, CD-ROM, Audio-Books and Music Accessories from 
http://www.planetm.co.in





Who starts an MDB's jms Connection?

2002-03-18 Thread Dave Ford

I am creating a JMS client that sends a message to an MDB. However, when I
run it, it gives a QueueConnection not started exception, implying that the
queue listener connection had never been started. Shouldn't this happen
automatically with a message driven bean?


Dave Ford
Smart Soft - The Developer Training Company
http://www.smart-soft.com