You allso have the ejb tag library. It should be on the orion site
somewhere. then i think you can use ejb:useBean This one is used for
JNDI lookups and so on.
Good luck!
Klaus
-Opprinnelig melding-
Fra: Sean P. McNamara [mailto:[EMAIL PROTECTED]]
Sendt: 11. november 2000 18:00
Here is an example of a bean lookup method:
private SomeEntityHome getSomeEntityHome()throws NamingException {
Context context = new InitialContext();
SomeEntityHome home = (SomeEntityHome)PortableRemoteObject.narrow(
context.lookup("java:comp/env/ejb/SomeEntity"),
"Sean P. McNamara" wrote:
In addition to the specification, I have a copy of the
Monson-Haefel book on Enterprise JavaBeans, but there is virtually no
mention of JSP-EJB interaction. I also spent some time earlier today
browsing JSP-centric books in the local bookstore, and found
Storm Linux User wrote:
It's not form commercial use. It's for my research project for getting my
master's degree in Electrical Engineering ... I'm not concered about securety
right now.
Hmm as long as you're not pursueing a masters in computer security..
Take a look at
Vidur Dhanda wrote:
OK,
Now I'm thoroughly confused.Would someone please help me before I
confuse myself even more. Here's the question/scenario:
I have a primary key,
public class PK implements Serializable {
public String fooGuts;
constructor/get/Set ...
}
The only
Storm Linux User wrote:
form method="post" action="my_servlet"
input type="file" name="my_class_file"
input type="submit"
/form
Your form tage is missing the ENCTYPE="multipart/form-data" tag.
Without this your page does not return a file.
sven
--
Ahh i forgot something very important for your web application using the
session/entity bean in question (web.xml)...
You have to define ejb-refs for the beans you want to use, or you will not
find the bean from the JSP...
Here is an example of an ejb-ref you can put in the bottom of your
I have non-ejb classes are used by all ejb jar files and how do I let Orion
know to use these classes for the ejb jars files ? Define the classpath
somewhere ? I have got the error below while deploying the ejb jar files.
Thansl for your help.
D:\orionjava -jar orion.jar
Auto-unpacking
We have implemented our own usermanager, and it all works great. But we
would like to know when the server is restarted at least, if not shutdown.
We start up a 'raper' thread, which is responsible for cleaning up expired
user references. When the orion is restarted, it creates a new instance
Dear orion users, I am faced in problems with rmi-client, in web
container I have a rmi client that perform a lookup in an rmi-server (a
simple application, where the rmi-client will lookup to rmi-server and
the object in rmi-server, just execute a external native application),
Magnus,
Here
is a basic how to:
There
are two ways to setup JBuider4 Enterprise for debugging any class that runs
under Orion: The standard java debugger, or JPDA.
Usingeithermethod the first thing to do is to
create a project that includes all of the code you wish to
debug.
This
At 08:41 13.11.00 , you wrote:
We have implemented our own usermanager, and it all works great. But we
would like to know when the server is restarted at least, if not shutdown.
We start up a 'raper' thread, which is responsible for cleaning up expired
user references. When the orion is
Orion seems to have several issues with dependent
object; the worse being that DO-DO relationships
don't work. While this sucks, Orion is still light
years ahead of BEA since they don't intend to support
dependent objects in the 6.0 beta.
The interim solution seems to be to make everything
an
The problem is the creation of the new Thread will happen, and two threads
will be running. Restart again, and now I have 3 threads running. I have
played around with different ways to get it to run more efficiently, but I
still have no way of knowing when to stop(or destroy) the other
For those interested in a serious debugger and don't mind spending a
little bit of money for one, I can heartily recommend using BugSeeker 2
from http://www.karmira.com/
It takes a few minutes to set up (the setup is trivial, if anyone uses it
and has trouble, let me know and I'll help out), and
whenever I specify exclusive-write-access="false" in my
orion-ejb-jar.xml descriptor, I get the following error message when
trying to deploy the application:
Auto-deploying cstool-ejb.jar (orion-ejb-jar.xml had been updated since
the previous deployment)...
which orion version? I'd generally stay away from
exclusive-write-access="false" since there are some unsolved issues and at
the moment IMHO it's not really reliable. I think magnus is looking at it
but at the moment it still means trouble. I'd try setting low validity
timeouts for the time
I posted this last week, but haven't gotten any resolution. I've followed
the how-to's and such in the Orion docs, and have searched the archive.
None of the stuff that is mentioned there is working, so I implore any of
you out there with multiple websites running to give this a look and help
At 13:19 13.11.00 , you wrote:
I posted this last week, but haven't gotten any resolution. I've followed
the how-to's and such in the Orion docs, and have searched the archive.
None of the stuff that is mentioned there is working, so I implore any of
you out there with multiple websites
In your application.xml for each file, specify the context root.
Eg, in cs2k/META-INF/application.xml
specify:
module
web
web-urics2k-web/web-uri !-- directory where the website lives,
eg applications/cs2k/cs2k-web, must have a WEB-INF/web.xml file in it --
Hi,
I'm having problems configuring orion to create the tables for entity EJBs
with references to other entity EJBs (using CMP). Can somebody, please,
enumerate the steps for doing this.
Thanks in advance,
Juan Gargiulo
Does someone have examples of how to set up config/datasources.xml for use
with pre-2.0 JDBC drivers? How and when should I use OrionCMTDataSource,
DriverManagerConnectionPoolDataSource, DriverManagerXADataSource, etc.?
Thanks,
Andrew
-
Andrew Chisholm
Director of
At 14:59 13.11.00 , you wrote:
In your application.xml for each file, specify the context root.
Eg, in cs2k/META-INF/application.xml
specify:
module
web
web-urics2k-web/web-uri !-- directory where the website lives,
eg applications/cs2k/cs2k-web, must have a WEB-INF/web.xml file in
Well, here's an example of a parent-child 1-N relationship:
A has a Set member field of type B
The class outlines are:
public interface A extends EJBObject
{
public Set getB() throws RemoteException;
...
}
public interface B extends EJBObject
{
...
}
public class AEJB implements
Yep, it's how I have things set up!
I don't have a web-app defined, just an application, with ejb and web
modules, and it all works very nicely, unless I'm missing something
here...
On Mon, 13 Nov 2000, Robert Krueger wrote:
At 14:59 13.11.00 , you wrote:
In your application.xml for each
Ooops, spoke too soon. I just combed through my config files and it does
look like I have a web-app root defined in default-web-site.xml, my
mistake.
On Mon, 13 Nov 2000, Robert Krueger wrote:
At 14:59 13.11.00 , you wrote:
In your application.xml for each file, specify the context root.
Title: NameNotFoundException
I am getting this error from Jsp.. Can someone point me to right direction?
Here is my orion-ejb-jar.xml
?xml version=1.0?
!DOCTYPE orion-ejb-jar PUBLIC -//Evermind//DTD Enterprise JavaBeans 1.1 runtime//EN http://www.orionserver.com/dtds/orion-ejb-jar.dtd
Title: NameNotFoundException
InitialContext ctx = new InitialContext();
//
if (ctx == null) {
out.println(Ctx is null);
}
else {
out.println(CTX is not null);
}
Object obj = ctx.lookup(EBAddress);
And here is the jsp code that I use to get the JNDI ref. Sorry for not putting it
Title: RE: UserManager shutdown hook?
How do you determine expired user references? Will you be
able to cleanup stateful session beans that were in use by
that user?
Thank's
Andrej
-Original Message-
From: Robert Krueger [mailto:[EMAIL PROTECTED]]
Sent: Monday, November 13,
I have JB4 Enterprise and have figured out (thanks to help from some folks
on this list) how to replace IAS with Orion for running EJBs. I also would
like to replace Tomcat with Orion as the web server/servlet engine so I can
maintain the integrated JSP and servlet debugging. These seems to be
Hello,
For reasons beyond my control, I have to use WebLogic as my EJB container.
My EJB clients live in Orion. I am trying to get the EJB clients to lookup
the EJBs (over on WebLogic) via JNDI. I believe I have constructed the
IntialContext correctly, but I keep running into classpath issues.
Luckily, we are using *NO* stateful session beans for this user. For each
user, we keep track of a timestamp of when the last time the getUser method
was called. If it has been more than an hour, we remove them and the next
call will pull that user back from the database, and back into the
perhaps you should try to load the WebLogic classes with your bootstrap
classpath(we have to do this for our encryption packages).
try somehing like
java -Xbootclasspath/p:lib\some.jar -jar orion.jar
James Birchfield
Ironmax
a better way to buy, sell and rent construction equipment
5
Title: RE: UserManager shutdown hook?
what
is a 'raper' thread??
.
.
.
.
.
.
.
.
.
.
Now
I'm sorry I asked ;-)
JP
-Original Message-From: Andrej Gabara
[mailto:[EMAIL PROTECTED]]Sent: Lunes, 13 de Noviembre de 2000
Hi,
I seem to be confused about how web-apps and their context play into
relative and aboslute paths on JSP pages and servlets.
I have two applications deployed. One uses 3 web-apps, the other is just
one. In the one with 3 web-apps, they all 3 share the common www dir, (the
only difference is
Sorry, Slip of the fingers, I meant to type 'reaper'. A 'reaper' thread is a thread that does a clean-up chore of some kind.Better start using the spell check option...:)James BirchfieldIronmaxa better way to buy, sell and rent construction equipment5 Corporate Center9960 Corporate Campus Drive,
Title: RE: UserManager shutdown hook?
What do you gain by doing it this way? Can you update your
cache when getUser() is called, and reap any idle users
then? What is this cache used for? What kind of user manager
are you using?
Thank's
Andrej
-Original Message-
From: [EMAIL
EJBs can be less work to use, but
more work to build, and then you
discover they don't scale and have
to rewrite the underpinnings.
Jaz
Keith Kwiatek wrote:
Hello,
EJB's are great if you like tripling the amount of code you have to
write
How is everyone building their web
Hi!
I have an orion-specific questionabout
DataSources and transactions.
I have a session bean in whichIstart a
UserTransaction:
ut = context.getUserTransaction();
ut.begin();
.. stuff ..
ut.commit();
In the "sutff" section above Icreate
different entity-beans like
39 matches
Mail list logo