threads, initialcontext and login

2001-01-08 Thread Marko Viirelä

I have created a small client software which connects to EJB-services
running on Orion, of course.

My program has a GUI "launcher" from which users can start client
objects. These objects use InitialContext to deliver user/password information 
to EJB-services. 

Everything works fine until user gives wrong username/passwd ...
Now since InitialContext is permanent threre is no way to change it
anymore unless user restarts the program, which is lame.

Code:
Runtime r = Runtime.getRuntime();
Process p = r.exec(" java myClass "); 

Works but is awfully slow. Any insights?

-- 
Marko Viirel, TK-harjoittelija
Sonera Operator Systems
Email:  [EMAIL PROTECTED]
Puhelin:040-5456970




RE: ejb deployment problem

2001-01-08 Thread Konstantin Polyzois

 That is because in JBuilder you deploy your beans to IAS. You specify a
Datasource name. You have to specify a different DataSourc name for Orion
too. That can not be done inside of JBuilder. For Orion:

1 Open
Orion-Home-Dir/application-deployments/Your-App-Name/orion-application.x
ml
2 Add an attribute default-data-source="your-data-source" to the element
orion-application
3 Remove any ejb deployment descriptors below this directory (orion-ejb-jar.
xml)
4 Start Orion. Orion should now deploy your ejbs again.
5 Check in an orion-ejb-jar.xml file in any entity-deployment element for
an attribute data-source. Hopefully it should now use your Data Source.

/korre

-Original Message-
From: ahfei
To: Orion-Interest
Sent: 2001-01-07 18:00
Subject: ejb deployment problem

hello,

 i'm developing ejb using jbuilder4.The EJBs work well in inprise app
server. when i deploy it to orion,it works too. but  i found 
the datasource that i specified doesn't be used,orion uses a default
datasource (HSQL) service my EJBs.WHY ? can somebody help me?
thanks in advance.

 
ahfei
[EMAIL PROTECTED]





Re: Automatic generation of virtual directory tag in the orion-web.xml doc ?

2001-01-08 Thread Jean-Guillaume LALANNE



Ok. sorry. I am using an old version of orion 

I am using the version 1.0.3 ...
I tried with orion-web.xml in the war and it didn't 
work.
I should obviously updatemy version of 
Orion
That's certainly the solution.

Thanks a lot for your help.

Regards
Jean-Guillaume


  - Original Message - 
  From: 
  Mike 
  Cannon-Brookes 
  To: Orion-Interest 
  Sent: Monday, January 08, 2001 12:22 
  PM
  Subject: RE: Automatic generation of 
  virtual directory tag in the orion-web.xml doc ?
  
  Except that it is the solution, I'm quite sure of it. 
  
  
  If 
  you put the orion-web.xml file inside your WAR, when Orion deploys the WAR it 
  will copy that file to the application-deployments folder and use it as the 
  base for deploying the WAR. Try it and see. As far as I know it will no longer 
  overwrite the old orion-web.xml (this is an old bug in bugzilla, I think it's 
  been solved)
  
  -mike
  
-Original Message-From: Jean-Guillaume LALANNE 
[mailto:[EMAIL PROTECTED]]Sent: Monday, January 08, 2001 
10:04 PMTo: Orion-InterestCc: 
[EMAIL PROTECTED]Subject: Re: Automatic generation of virtual 
directory tag in the orion-web.xml doc ?
Thanks for your quick answer.
But I am not sure that will work because my 
orion-web.xml isautomaticallygenerated by Orion in the 
"application-deployments" directory.
As opposed to theXXX.war which is 
deployed in the "application" directory
Ok... orion appserver certainly uses the 
web.xmllocated within theXXX.war to generate the orion-web.xml, 
but I don't think it will do a copy of the
pseudo orion-web.xmlput in the XXX.war 
into the deployment directoy quoted previously and overwrite the 
generated orion-web.xml !

Anyway, thank you again for your idea. Pretty 
good idea in fact but I don't think that is the solution ...

Regards 
Jean-Guillaume





  - Original Message - 
  From: 
  Mike 
  Cannon-Brookes 
  To: Orion-Interest 
  Sent: Monday, January 08, 2001 10:51 
  AM
  Subject: RE: Automatic generation of 
  virtual directory tag in the orion-web.xml doc ?
  
  You can always just include the orion-web.xml in your WAR, and 
  Orion will copy it when deploying? (as you can for orion-application and 
  orion-ejb-jar.xml files?)
  
-Original Message-From: [EMAIL PROTECTED] 
[mailto:[EMAIL PROTECTED]]On 
Behalf Of Jean-Guillaume LALANNESent: Monday, January 08, 
2001 8:07 PMTo: Orion-InterestCc: 
[EMAIL PROTECTED]; [EMAIL PROTECTED]Subject: Automatic 
generation of virtual directory tag in the orion-web.xml doc 
?
Hi all,

I am trying to find out how the generation 
of the orion-web.xml document is carried out. I need indeed to use 

virtual directory tags to point onto my 
resource shared directories (image,scripts, ). I would have 
appreciated 
that the following tag,

virtual-directory 
real-path="/usr/local/realpath" virtual-path="/the/webdir" 
/

would have been created automatically by 
orion appserver from a tag located somewhere in the ear 
orwar
deployment xml files ...
Actually, it's a little bit boring to 
rewrite several times this tag ... above all when you have 10 virtual 
directories for 
each of your sites (I mean your war 
app).
If any of you has a way to handle this 
"problem", I am very very very interested to learn his/her 
trick.
I mean, ... if any of you know how to 
insert in a .ear the right info so that orion appserver generates 
the good orion-web.xml
file with my "virtual directory" tags ... I 
am obviously fully interested in his/her method.

Any info is greatly appreciated. 

Many thanks.Regards
Jean-Guillaume 


LALANNE Jean-Guillaume
COMING
[EMAIL PROTECTED]



Offtopic: Any opensource database query tools?

2001-01-08 Thread Neal Kaiser

I have a stateless session bean which does all the keyword searching for my
application. Right now the searching is quite simple, it "ANDs" all the
keywords and does a 'like %keyword%' clause on them.
I was wondering if there are any open source objects to assist in smarter
searching, such as : "DVD Player" -Sony (they typical stuff you see on
search engines, etc) ?
Thanks.





create doesn't return my exception

2001-01-08 Thread Paul Knepper

Ever since I updated from Orion 1.2.9 if my ejbCreate fails it always throws
NullPointerException, PrimaryKey was null.  It used to return the exception
that I would throw.  Note this happens in Orion 1.3.8, 1.4.0 and 1.4.4

For example:

public MyPK ejbCreate(...)
throws CreateException
{
MyPK myPrimaryKey = null;

// do the insert
try
{
myPrimaryKey = insertUpdate(...);
}
catch (Exception ex)
{
throw new CreateException("ejbCreate: " + ex.getMessage());
}

return myPrimaryKey;
}

Has anyone else seen this?

Thanks,
Paul Knepper
[EMAIL PROTECTED]





RE: IP-address on orionsupport.com

2001-01-08 Thread Kemp Randy-W18971

The support site is a fantastic help tool.  I can definitely live with occasional 
outages, given the wonderful material it contains.  Keep up the great work. 

-Original Message-
From: Joseph B. Ottinger [mailto:[EMAIL PROTECTED]]
Sent: Monday, January 08, 2001 8:45 AM
To: Orion-Interest
Subject: Re: IP-address on orionsupport.com


That is, indeed, the IP for orionsupport.com.

Guys, remember that orionsupport is hosted by a VOLUNTEER - and that
volunteer has only one machine to dedicate to it. If you want to start
paying for a site that stays up guaranteed, be my guest - contact me
directly and I'll tell you how to subsidize it. Otherwise... occasional
outages will occur, as it's my real development machine, and it gets a lot
of testing stuff on it.

On Mon, 8 Jan 2001, Randahl Fink Isaksen wrote:

 Would somebody please post the IP address of orionsupport.com?
 
 I have noticed a couple of people having trouble reaching the support site -
 either this is  because the site is simply down or because the the domain
 name is now being related to a different IP address.
 According to our local name server one should be able to reach
 orionsupport.com at
 64.31.131.243
 
 But ping'ing that IP returns no response.
 
 If you are able to reach orionsupport.com, would you mind running "ping
 orionsupport.com" and post the IP address on this list?
 
 
 Thanks
 
 Randahl
 
 

---
Joseph B. Ottinger   [EMAIL PROTECTED]
http://epesh.com/ IT Consultant





Re: IP-address on orionsupport.com

2001-01-08 Thread Tim Endres

PING

user ping orionsupport.com

Pinging orionsupport.com [64.31.131.243] with 32 bytes of data:

Reply from 64.31.131.243: bytes=32 time=71ms TTL=241
Reply from 64.31.131.243: bytes=32 time=70ms TTL=241
Reply from 64.31.131.243: bytes=32 time=70ms TTL=241
Reply from 64.31.131.243: bytes=32 time=78ms TTL=241

Ping statistics for 64.31.131.243:
Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),
Approximate round trip times in milli-seconds:
Minimum = 70ms, Maximum =  78ms, Average =  72ms

TRACE

user tracert orionsupport.com
Tracing route to orionsupport.com [64.31.131.243]
over a maximum of 30 hops:
  1 1 ms 2 ms 2 ms  rtr1.trustice.com [206.230.28.1]
  2 3 ms 4 ms 3 ms  062cci017.chartermi.net [24.213.62.17]
  314 ms14 ms14 ms  10.64.88.1
  417 ms20 ms17 ms  057upc073.chartermi.net [24.213.57.73]
  519 ms18 ms18 ms  IMT-7206a-1-fe0-bb-vl4.chartermi.net [24.213.57.9]
  629 ms29 ms30 ms  sl-gw4-roa-1-0-TS5.sprintlink.net [144.232.188.97]
  729 ms30 ms27 ms  sl-bb10-roa-10-0.sprintlink.net [144.232.17.201]
  831 ms29 ms30 ms  sl-bb23-chi-9-0.sprintlink.net [144.232.18.194]
  931 ms32 ms31 ms  sl-bb21-chi-14-0.sprintlink.net [144.232.26.57]
 1053 ms46 ms45 ms  sl-bb21-atl-12-0.sprintlink.net [144.232.18.34]
 1162 ms60 ms62 ms  sl-bb10-orl-0-0.sprintlink.net [144.232.9.17]
 1260 ms60 ms61 ms  sl-gw3-orl-4-0-0.sprintlink.net [144.232.2.154]
 1365 ms65 ms70 ms  sl-adelcomm-1-0-0.sprintlink.net [144.232.154.34]
 1477 ms68 ms77 ms  64.31.129.38
 1590 ms72 ms79 ms  orionsupport.com [64.31.131.243]

 Would somebody please post the IP address of orionsupport.com?
 
 I have noticed a couple of people having trouble reaching the support site -
 either this is  because the site is simply down or because the the domain
 name is now being related to a different IP address.
 According to our local name server one should be able to reach
 orionsupport.com at
 64.31.131.243
 
 But ping'ing that IP returns no response.
 
 If you are able to reach orionsupport.com, would you mind running "ping
 orionsupport.com" and post the IP address on this list?
 
 
 Thanks
 
 Randahl





RE: ResultSet Caching

2001-01-08 Thread Conrad Chan

I would just like to clarify that I mean to use HttpSession to store your temporary 
data rather than Session bean.  A usual technique I have been using is to load a whole 
bunch of kind-of static data and serialize it into Xml.  Hence the XML data can be 
stored in the HttpSession safely or even persistently since my XML data is just a 
string.  Of course a more sophisticated solution can also be built on top of this 
generic architecture like cache time-out etc.

Hope this help
Conrad

-Original Message-
From: Neal Kaiser [mailto:[EMAIL PROTECTED]]
Sent: Friday, January 05, 2001 4:31 PM
To: Orion-Interest
Subject: RE: ResultSet Caching


Right, I definitely wouldn't use an entity bean for list/search
functionality. Way too much
overhead. Stateless session beans is the way to go, but I don't think
throwing in large variable
sets into a session is a good solution either.  Bloated sessions don't
perform well either.
Some app servers provide a caching solution, like Gemstone I believe, and I
was just wondering
if Orion had something similar. I guess it makes most sense to just
re-issue the query for each
page. But if someone has any better ideas, I'm all ears! Thank you.

 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED]]On Behalf Of Conrad Chan
 Sent: Friday, January 05, 2001 5:57 PM
 To: Orion-Interest
 Subject: RE: ResultSet Caching


 I don't think entity bean can effectively solve your problem
 since calling entity bean can potentially be remote calls.

 Why not use session variables?  Session variable is intended for
 temporary storage, like cache data.

 Conrad

 -Original Message-
 From: Neal Kaiser [mailto:[EMAIL PROTECTED]]
 Sent: Friday, January 05, 2001 1:18 PM
 To: Orion-Interest
 Subject: RE: ResultSet Caching


 What's the benefit of using those products over an entity bean then? How
 does it differ?
 Thanks.

  -Original Message-
  From: [EMAIL PROTECTED]
  [mailto:[EMAIL PROTECTED]]On Behalf Of Tony Wilson
  Sent: Friday, January 05, 2001 3:50 PM
  To: Orion-Interest
  Subject: RE: ResultSet Caching
 
 
  There are products that act as middlemen between you and the
  Database.  They
  also offer database object abstraction  (so you can have an object
  representing table data.  You define field - property mappings, and the
  product handles the transfer of data.)
 
  These products usually have built-in caching.
 
  Two products are
  TopLink (expensive, but nice)  http://www.objectpeople.com
  VBSF (pretty inexpensive, and still nice) http://www.objectmatter.com
 
  -Original Message-
  From:   Neal Kaiser [mailto:[EMAIL PROTECTED]]
  Sent:   Friday, January 05, 2001 10:49 AM
  To: Orion-Interest
  Subject:ResultSet Caching
 
  Does Orion have any built in caching functionality? Let's
  say I have a
  database query which returns 1,000 records and the user will
  page thru 100
  at a time.  Instead of re-issuing the query each time (each
  page), is there
  some sort of cache object?  How do you guys typically handle
  this?
 
  Thanks, Neal
 
 







RE: Complex O/R and EJB 2.0 CMP

2001-01-08 Thread Jeff Schnitzer

From: Darren Pamatat [mailto:[EMAIL PROTECTED]]

I like the layout of the complex-or example more so
than the orion-cmp primer, because it is not required
to jar it up, and classes can just be recompiled, and
run (if only I could run something against it). Also,
what is the difference in the EJB 2.0 CMP and orion
proprietary CMP.

You're asking about "CMR", container managed relationships, not CMP.
Orion was apparently providing CMR services before there was an EJB2.0,
and the information is maintained in the orion-ejb-jar.xml file.  EJB2.0
allows you to define relationships in the J2EE-standard ejb-jar.xml
file, which Orion then converts to the appropriate definitions in
orion-ejb-jar.xml upon deployment.

So there aren't two different types of CMR; there are just two layers.
Take a look at the documentation for orion-ejb-jar.xml; there is a lot
you (supposedly) can do that is not yet supported by EJB2.0 (like Map
and List types).

Jeff




RE: Complex O/R and EJB 2.0 CMP

2001-01-08 Thread Jim Archer

I have a few examples that are much more complex than the one I wrote on 
OrionSupport. Let me clean them up and I'll post them here...

Jim


--On Monday, January 08, 2001 5:45 AM -0800 Darren Pamatat 
[EMAIL PROTECTED] wrote:


 --- Konstantin Polyzois [EMAIL PROTECTED]
 wrote:
  "Servlet/JDBC is sure looking a bit simpler right
 now."

 But of course it is. If there is no concurrency
 (multiple clients) and if
 you don't like object-oriented programming. And if
 you dont plan on building
 more than a few servlets.

 What I meant here, is gettin an environment setup and
 working and being productive. Concurrency issues are
 not a big deal to handle when you know what you are
 doing, and you can do object oriented programming with
 servlets/java classes/ create your own minimal O/R
 code where necessary or use a o/r mapper lib. I've
 been doing this stuff for a while now, and it just
 seems that orion examples and info (when orionsupport
 is up, its been down for a while) takes you to a point
 where, if it went a little bit further would save tons
 of time.  From any vendors software solution, it is
 not just the software, but the documents, examples,
 third-party support, forums, etc which make or do not
 make it a productive environment to get started and
 develop with.

 My question is, is there any examples anywhere of some
 complexor code with client code which drives it?
 Anyone care to post or email some examples?

 Also, when will orionsupport be back up?

 Thanks,
 -Darren


 "Also,
 what is the difference in the EJB 2.0 CMP and orion
 proprietary CMP."

 I think Orion supports Maps and Sets for dependent
 objects, the EJB2
 (proposed final draft) only mandates support for
 Sets.
 Orions implementation does not look complete yet
 (how could it be when there
 is no spec?) it lacks EJB-QL, Home-methods and
 Select-methods (forgive me
 for errors it has been some time since I read the
 spec).

 /korre

 -Original Message-
 From: Darren Pamatat
 To: Orion-Interest
 Sent: 2001-01-07 20:27
 Subject: Complex O/R and EJB 2.0 CMP

 I've been trying to get started with some O/R stuff
 with orion, and have gone thru the orion-cmp primer,
 and the complex-or example. A few problems, is that
 the orion-cmp primer is very simplistic, and the
 complex-or example (from orionsupport, which is
 currently down) does not have any examples, or docs
 on
 how to create and use a client application to
 exercise
 the ejb cmp entities. Does anyone have any
 code/examples or info on this?

 I like the layout of the complex-or example more so
 than the orion-cmp primer, because it is not
 required
 to jar it up, and classes can just be recompiled,
 and
 run (if only I could run something against it).
 Also,
 what is the difference in the EJB 2.0 CMP and orion
 proprietary CMP.

 Servlet/JDBC is sure looking a bit simpler right
 now.
 Hopefully, some info and more examples are available
 to help get an environment setup with CMP EJB's, to
 work off of.

 -Darren


 __
 Do You Yahoo!?
 Yahoo! Photos - Share your holiday photos online!
 http://photos.yahoo.com/



 __
 Do You Yahoo!?
 Yahoo! Photos - Share your holiday photos online!
 http://photos.yahoo.com/








unsubcribe

2001-01-08 Thread Kieron Bradley







Re: Compile JSP at orion startup

2001-01-08 Thread Stan Ng

I believe that JSP pages are pre-compiled by Orion at start-up if the JSP is
specified in the web.xml of the web-app and the load-on-startup element is
present.  For example, it would look something like:

servlet
servlet-name precompiledPageTest /servlet-name
jsp-file myPage.jsp /jsp-file
load-on-startup 0 /load-on-startup
/servlet


BTW, I haven't actually _tried_ it out yet, as I've just started messing
with Orion, so let me know if it works...


- Original Message -
From: "Daniel Mrtensson" [EMAIL PROTECTED]
To: "Orion-Interest" [EMAIL PROTECTED]
Sent: Monday, January 08, 2001 6:47 AM
Subject: Compile JSP at orion startup


 Is it possible to compile all JSP pages att orion startup?

 /Daniel







Re: [unsubcribe]

2001-01-08 Thread melanie bocao

"fanstar" [EMAIL PROTECTED] wrote:
yes, i want to unsubscribe it also. pls. asap...
 - 
   Attachment:  
   MIME Type: multipart/alternative 
 - 




Get free email and a permanent address at http://www.netaddress.com/?N=1




Re: unsubcribe

2001-01-08 Thread Dylan Parker

You spelt UNSUBSCRIBE wrong.

And sent it to the wrong place.

I'll leave it as an exercise for the learner =)

Dylan Parker




unsubcribe

2001-01-08 Thread Kalyan Sundar






unsubcribe

2001-01-08 Thread Christophe Bec







unsubcribe

2001-01-08 Thread Ventuneac Marian

 
 

__
Do You Yahoo!?
Yahoo! Photos - Share your holiday photos online!
http://photos.yahoo.com/