When using a custom user manager with an application, you must make sure
you are getting your DataSource references in the constructor.
This is extremely important. If you try to lookup the DataSource outside
of the constructor, you will have all sorts of problems. Do something
like this...
We were able to use EJBDoclet out of the box with no problems. We have
extended it quite a bit, but nothing Orion specific, only project specific.
Anyone using Orion should be able to use EJBDoclet with no problems, and I
would highly recommend doing so.
James Birchfield
Ironmax
a better way
We use EJBDoclet. We have it set to generate all our Homes and Remotes,
our descriptiors, and our utility classes that return
handles to all our Homes. Sweet tool ,and easy to extend.
James Birchfield
Ironmax
a better way to buy, sell and rent construction equipment
5 Corporate Center
9960
We use OpenJCE and just add the appropriate zip/jar files to the bootclasspath(i.e. java -Xbootclasspath/p:\lib\jce.zip -jar orion.jar)James BirchfieldIronmaxa better way to buy, sell and rent construction equipment5 Corporate Center9960 Corporate Campus Drive, Suite 2000Louisville, KY 40223Dean
The problem lies in getting a connection to the database. You can only get
a connection to the database using JNDI in the constructor of the
UserManager. Nowhere else. This is supposed to be fixed in 1.4.6, but I
haven't had a chance to test it. The limitation to this is that the
connection
Try this:
DataSource dataSource = (DataSource)context.lookup("jdbc/OraclePooledDS");
Connection con = dataSource.getConnection();
orion will return a pooled connection to you.
James Birchfield
Ironmax
a better way to buy, sell and rent construction equipment
5 Corporate Center
9960 Corporate
We have been using a custom UserManager for sometime now in our web
application. It works extremely well, and is very easy to implement.
However, we are now in need of some stand alone applications that need
access to our EJB's. When we attempt to access an EJB, we are having
problems. I have
Start orion like this and see if it helps. java
-Xbootclasspath/p:lib\jce.zip -jar orion.jar
We use the JCE without a problem.
James Birchfield
Ironmax
a better way to buy, sell and rent construction equipment
5 Corporate Center
9960 Corporate Campus Drive,
Suite 2000
Louisville, KY 40223
orion can handle 128 bit certificates, at least from Verisign. But you
must have the latest version of the JSSE.
James Birchfield
Ironmax
a better way to buy, sell and rent construction equipment
5 Corporate Center
9960 Corporate Campus Drive,
Suite 2000
Louisville, KY 40223
EJBDoclet is awesome. We have taken it and extended it to meet our needs.
It automatically generates the home, remote, the deployment descriptors,
and we also auto gen a utility
class that allows to access all of the availabe home objects. Couldn't
recommend it higher!
James Birchfield
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
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
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
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,
Is there any specific 'type' of certificate you requested from Verisign?
We are in desperate need to get 128 bit running on our production site, but
so far, I have only gotten the 40 bit test cert from thawte to work
correctly. I could not get keytool to successfully import the test cert
that
Actually, after installing the newer version of the JSSE, I was able to get
the test certificate form Verisign to work properly, running 128 bit.
Even after setting the shared attribute to true, IE still seems to renew
the session every 2 minutes or so, but Netscape seems to do fine.
I think
We have implemented our own usermanager, and everything works as expected,
except logging. After logging in using FORM based authentication,
we can successfully perform a 'request.getRemoteUser()' call to retrieve
the users login information. I would expect that if the server knows
the
The processing instruction : ?xml-stylesheet href="doc.xsl" type
="text/xsl"? tells the processor to use the style sheet of doc.xsl to
transform this xml document(or jsp).
To do conditional processing dependent on the client, you need to do some
logic in the jsp to figure this out, and display
This is pretty cool...We are already using JUnit with a stand alon client,
but I like this since I don't have to keep open an extra dos window, and
remember what to type.
I put an html page with all our unit test in fron of the servlet and can
pick and choose which ones to run. Thanks!
BTW,
I believe this is a problem with Xalan, not orion. I replaced the default
xsl servlet with the xsl servlet available fro www.orionsupport.com using
saxon, and it works like a beauty.
James Birchfield
Ironmax
a better way to buy, sell and rent construction equipment
5 Corporate Center
9960
I ran into this with IE yesterday too. Since IE hit the page the first
time, and displayed raw xml, it is probably cached. At least it was in my
case. After getting the content-type right(the same way you did), I
cleared my cache, and all went fine.
James Birchfield
Ironmax
a better way to
I am running into a problem with the welcome file list.
I have mapped an extension to be ran through a particular servlet like
this:
servlet-mapping
servlet-namedispatch/servlet-name
url-pattern*.ojsp/url-pattern
/servlet-mapping
and defined 'dispatch' with all necessary
As our organization continues to move forward with XML and XSL, it would be
great if Orion provided a built in feature to allow for device dependent
XSL translation, similar to Cocoon.
This email lays out one possible approach. Forgive me if Orion already has
something planned.
My suggestion
After posting the original message this morning, I went to work putting
together a custom tag to do what I suggested this morning.
A zip file containing all the source, and instructions is attached to this
email. Please feel free to use it. If you run into any problems, let me
know.
(See
There seems to be a big problem with the latest update of orion.
The JSP's are being compiled with the following code:
public class __jspPage0_examples_jsp_dates_date_jsp extends
com.orionserver.http.OrionHttpJspPage {
but there seems to be no com.orionserver.http.OrionHttpJspPage, rather
We are having an issue with XSL transformations. Here is the following
.jsp we are using:
?xml version="1.0" ?
% int type =
In netscape, I am sometimes getting this error when posting to a page. Any
ideas?
No problems in IE.
HTTP/1.1 413 Request Entity Too Large Date: Wed, 06 Sep 2000 13:17:26
GMT Server: Orion/1.3.1 Connection: Close Content-Type: text/html
413 Request Entity Too Large
James Birchfield
Ironmax
Should have included more information:
Orion 1.3.1
Jdk 1.3
The error occurs only in netscape, but the actuall page works, and all HTML
is out put to the screen(with the error at the bottom)
James Birchfield
Ironmax
a better way to buy, sell and rent construction equipment
5 Corporate
We have been using transactions successfully for a while nowor so we
thought.
Here is the scenario. We have a series of registration pages on our site.
We gather all the information we need, and at the end
we create a stateless session bean passing it all the information we need.
In this
Thanks for the tip. Unfortunately, this seems to have no affect. I have
tried to set the exclusive-write-access to false, and have played with
different isolation levels as well. I will keep plugging away i guess.
Thanks again!
James Birchfield
Ironmax
a better way to buy, sell and rent
Pramati has an excellent tool for this. www.pramati.com
James Birchfield
Senior Software Engineer
Ironmax.com LLC
a better way to buy, sell and rent construction equipment
5 Corporate Center
9960 Corporate Campus Drive,
Suite 2000
Louisville, KY 40223
I have a Primary Key class defined for my entity bean. The table only has
one primary key, and the key class only has one attribute. When I deploy
and attempt to invoke 'findByPrimaryKey(pk)', I get an abstractMethodError.
Deploying an entity bean with a table of two primary keys and a class
I am deploying an entity bean generated from within TogetherJ.
I am accessing the entity bean as follows:
ejbtest.ORGANIZATIONSPK orgPK = new ejbtest.ORGANIZATIONSPK();
orgPK.ID = new java.math.BigDecimal("1");
ejbtest.ORGANIZATIONS org = orgHome.findByPrimaryKey(orgPK);
The above code when
34 matches
Mail list logo