RE: AW: [JBoss-user] How can I use a background process with JBos s

2002-02-13 Thread Ivan Bolcina
Title: RE: AW: [JBoss-user] How can I use a background process with JBos s Hi. Interesting question, i dont have clean answer. How about that you write a entry in database table after order processing with status. Now every struts action should check it and if order id matches order id of

RE: [JBoss-user] Streams

2002-02-13 Thread Sacha Labourey
Hello, > on user's requirements). A user may choose to upload a file (as > large as 20 > or 30 megabytes) to the servlet engine. Another user may choose > to download > one of these uploaded files. On the backend this is also done Just a small note on this... During one project, we had to ma

Re: [JBoss-user] Streams

2002-02-13 Thread Dmitri Colebatch
Hi, > On the backend this is also done for new mail, > using Javamail (I might decide to use something else...Javamail is turning > out to be painfully slow...especially using the Sun JVM.) What alternatives to Javamail do you see? Whilst we haven't really put it under any pressure yet, we

RE: [JBoss-user] Streams

2002-02-13 Thread Daniel Bruce Lynes
Sorry for the late reply everyone...I thought I was resubscribed (my @Home account was discontinued, and I kept procrastinating about updating my email addresses)...as it turned out, I missed the request for confirmation I had to reply to :( Peter Levart wrote the following excerpt on Feb 13,

[JBoss-user] RE: Nightly Snapshots still not available.

2002-02-13 Thread Shamis, Leonid
Hi, I haven't got any feedback on the issue raised in the original mail, but I've noticed that the Nightly Snapshots are available again: Directory: /snapshots/ jboss-all.tgz 17572458 bytes Jan 15, 2002 9:29:26 AM jboss-all.zip 19199973 bytes Jan 15, 2002 9:29:06 AM jboss

Re: AW: [JBoss-user] How can I use a background process with JBos s

2002-02-13 Thread David Jencks
On 2002.02.13 16:55:34 -0500 David Ward wrote: > I would love to see your javaspace adapter. I posted it as a patch, 517252 I'd sure like some help finding out if it works, if anyone knows how to get jini services started. I was thinking running the other jini services as mbeans might be approp

[JBoss-user] JBoss-MQ

2002-02-13 Thread Kotamraju, Srinivas, BmS- NY1540
Hi all, when I run this code..I get the error Could not lookup topic/testTopic java.lang.ClassCastException: javax.naming.Reference does anybody now what is the reason? thanks srini public static Context getInitialContext() throws NamingException{ // Populate with needed propertis

Re: AW: [JBoss-user] How can I use a background process with JBos s

2002-02-13 Thread David Ward
I would love to see your javaspace adapter. Man, just read that line out loud; it sounds almost sexy. Are we geeks or what!? If you think about it, the core of database systems is how they are able to keep those data files clean and proper in a transactional, secure fashion. It still ends up

Re: [JBoss-user] Objects in entity beans are not updated

2002-02-13 Thread Dmitri Colebatch
We've had experience similar to yours with the collections types, where we've had to create a new collection each tx, but I would hope that isn't required. Of course JBoss does support Dependant Value Objects (http://www.jboss.org/online-manual/HTML/ch06s14.html) that might solve your problem. h

Re: AW: [JBoss-user] How can I use a background process with JBoss

2002-02-13 Thread Ricardo Argüello
> AFAIK, "they" don't want you to do io because 1) io can block forever, > and 2) the filesystem isn't transactionally managed I don't know if you can do this with EJB: http://www.onjava.com/pub/a/onjava/2002/02/06/atomic.html ___ JBoss-user mailin

Re: AW: [JBoss-user] How can I use a background process with JBos s

2002-02-13 Thread David Jencks
I think the only useful thing you can impelement with a file system connector is serialization: keep connections from accessing the same file at the same time. Transactions without versioning would be very difficult. I don't really see any place for security. If you are interested in an example

Re: AW: [JBoss-user] How can I use a background process with JBos s

2002-02-13 Thread Dain Sundstrom
There is a good article in this month's JavaPro. It is online at: http://www.fawcette.com/javapro/2002_02/magazine/features/tmodi/ -dain Edward Q. Bridges wrote: > my curiosity has been piqued. what's involved in making a .rar? > is there someone that would be interested in helping me spec i

[JBoss-user] How to update hsqldb

2002-02-13 Thread Eric Jain
Problem: I need to be able to store large objects inside entity beans. Unfortunately, the version of hsqldb provided with JBoss 3.0.0 alpha only supports fields of up to 32KB. Apparently this has been fixed in the newest version of hsqldb, 1.6.1. Simply replacing the hsqldb.jar in lib/ext results

Re: [JBoss-user] Objects in entity beans are not updated

2002-02-13 Thread Eric . Jain
> Don't know if this helps. If you can't figure it out > in the source, can you post to source forge a small > test case that demonstrates this behavior. Thanks, I'll try to reproduce this behavior with a simple test case, as soon as I get the time. Just wanted to be sure this wasn't a known

RE: AW: [JBoss-user] How can I use a background process with JBos s

2002-02-13 Thread Edward Q. Bridges
my curiosity has been piqued. what's involved in making a .rar? is there someone that would be interested in helping me spec it out? --e-- On Wed, 13 Feb 2002 18:15:37 +0100, Coetmeur, Alain wrote: > >it could be a good tutorial for .rar developement... >any volunteer ? > _

Re: [JBoss-user] Objects in entity beans are not updated

2002-02-13 Thread Dain Sundstrom
Here is the code I use when you set a 2.x cmp field: public void setInstanceValue(EntityEnterpriseContext ctx, Object value) { FieldState fieldState = getFieldState(ctx); // short-circuit to avoid repetive comparisons // if it is not currently loaded or it is already dirty or //

RE: AW: [JBoss-user] How can I use a background process with JBoss

2002-02-13 Thread Coetmeur, Alain
> -Message d'origine- > some ClassLoader or security magic to keep you from using anything in > java.io, but in practice I doubt anybody does that. the java.policy and the security manage should do that job > AFAIK, "they" don't want you to do io because 1) io can block > forever, >

[JBoss-user] Re: Message Delivery Error

2002-02-13 Thread David Ward
I get this every time I send a mail to jboss-user. I'm assuming everyone else does too. Can someone with the power remove the offending email from the list? [EMAIL PROTECTED] wrote: > The following mail of yours could not be forwarded as per recipient's settings due >to looping in mail deli

Re: AW: [JBoss-user] How can I use a background process with JBoss

2002-02-13 Thread David Ward
Dirk Storck wrote: > But I must have access to the filesystem for copying purpose. > How about using MBean's for that ? Can they be access as normal Beans ? As much as the spec says you shouldn't do io from EJBs, technically you still can (though I'm not advocating it ;) ). I tried it once and

Re: [JBoss-user] Objects in entity beans are not updated

2002-02-13 Thread Eric . Jain
> Are your sure that you imlemented equals correctly? Pretty sure: public class Queue implements java.io.Serializable { static final long serialVersionUID = 554203L; private java.util.LinkedList list = new java.util.LinkedList(); // some methods... public boolean equals

AW: [JBoss-user] How can I use a background process with JBoss

2002-02-13 Thread Dirk Storck
But I must have access to the filesystem for copying purpose. How about using MBean's for that ? Can they be access as normal Beans ? -Ursprüngliche Nachricht- Von: Rajeshwar Rao V [mailto:[EMAIL PROTECTED]] Gesendet: Mittwoch, 13. Februar 2002 16:23 An: Ricardo Argüello; [EMAIL PROTECTED

RE: [JBoss-user] Help : problem with ejb-jar.xml

2002-02-13 Thread Sanjay Gupta
Hi Michael, Thanx for ur answer, but the url http://java.sun.com/j2ee/dtd/application_1_3.dtd doesnot exist on sun's site. So i guess problem is somewhere else... :( Ny more comments from ne one else... Thanx in advance, Sanjay >>> "Michael Schulz" <[EMAIL PROTECTED]> 02/13/02 08:37PM >>> Perhaps

Re: AW: [JBoss-user] How can I use a background process with JBoss

2002-02-13 Thread David Ward
JBoss 2.4.4 is EJB 1.1 but also has MessageDrivenBeans. -- Dirk Storck wrote: > I can't use MessageDrivenBeans cause we have to use EJB1.1 > > -Ursprüngliche Nachricht- > Von: Edward Q. Bridges [mailto:[EMAIL PROTECTED]] > Gesendet: Mittwoch, 13. Februar 2002 14:54 > An: [EMAIL PROTECTE

RE: [JBoss-user] How can I use a background process with JBoss

2002-02-13 Thread Rajeshwar Rao V
Message Beans are the best option... If not use Scheduler in JBoss. -Original Message- From: Ricardo Argüello [mailto:[EMAIL PROTECTED]] Sent: Wednesday, February 13, 2002 7:39 PM To: [EMAIL PROTECTED]; Jboss User (E-Mail) Subject: Re: [JBoss-user] How can I use a background process with

AW: [JBoss-user] How can I use a background process with JBoss

2002-02-13 Thread Dirk Storck
CAN I use JBoss 2.2.2 with MDB ? -Ursprüngliche Nachricht- Von: Coetmeur, Alain [mailto:[EMAIL PROTECTED]] Gesendet: Mittwoch, 13. Februar 2002 14:45 An: '[EMAIL PROTECTED]' Cc: Jboss User (E-Mail); Struts User (E-Mail) Betreff: RE: [JBoss-user] How can I use a background process with JB

Re: [JBoss-user] JBoss Temp File Problem

2002-02-13 Thread Yong T. Kim
I think your problem is when you create the temp directory. You used: pdfFile = File.createTempFile( "HelloWorld", ".pdf", new File( "/temp" ) ); Why don't you try following line without the "/": pdfFile = File.createTempFile( "HelloWorld", ".pdf", new File( "temp" ) ); When you use "/", that me

RE: [JBoss-user] Help : problem with ejb-jar.xml

2002-02-13 Thread Michael Schulz
Perhaps if you changed the first reference (to the V 1.3 dtd) to match the second reference, it would work.   Change To: /j2ee/dtd/application_1_3.dtd'>   (I think you are missing the "/j2ee" section of the URL)   -Mike [Michael Schulz]  -Original Message-From: [EMAIL PROTECTED]

RE: AW: [JBoss-user] How can I use a background process with JBoss

2002-02-13 Thread Eric Kaplan
why don't you essentially roll your own message driven bean? have a process sitting out there (not ejb) listening to a jms queue. as it gets orders off the queue, it processes them by synchronously calling an ejb, getting the result, and notifying the client via another queue. the process, sinc

RE: [JBoss-user] JBoss Temp File Problem

2002-02-13 Thread Coetmeur, Alain
I think that file creation (and probably also file read) is forbidden as-is in EJB, servlets and most J2EE components however you may create a .RAR with a "TempFileFactory" and a "TempFileConnection"... this JCA component may even already exists... I've never played with .RAR and JCA but it seem

[JBoss-user] JBoss Temp File Problem

2002-02-13 Thread Tim Sheridan
Has anyone had problems creating temp files inside the container? Below is the source code snippet and the resulting message from JBoss when I attempt save a file created with the File.createTempFile() method. It appears that the JBoss 'bin' folder is prepended to the path I give as a parameter on

AW: [JBoss-user] How can I use a background process with JBoss

2002-02-13 Thread Dirk Storck
I can't use MessageDrivenBeans cause we have to use EJB1.1 -Ursprüngliche Nachricht- Von: Edward Q. Bridges [mailto:[EMAIL PROTECTED]] Gesendet: Mittwoch, 13. Februar 2002 14:54 An: [EMAIL PROTECTED]; Jboss User (E-Mail) Betreff: Re: [JBoss-user] How can I use a background process with JB

Re: [JBoss-user] How can I use a background process with JBoss

2002-02-13 Thread Joachim Schaaf
Hi, Am Mittwoch, 13. Februar 2002 14:16 schrieb Dirk Storck: > Hi, > I want to do the following: > I have a ShoppingCart. > The users clicks on order and the items from the ShoppingCart are moved to > my OrderBean. ShoppingCart and OrderBean are EJB's. It's funny to see how everyone is working o

Re: AW: [JBoss-user] How can I use a background process with JBoss

2002-02-13 Thread Edward Q. Bridges
you could write a cron-job which selects all unacknowledged orders, processes them, and then acknowledges each order within a transaction. it doesn't rely on jboss (or ejb for that matter), but there is no way (that i know of) to do asynchronous processing in ejb 1.1. (that's why message beans

Re: [JBoss-user] How can I use a background process with JBoss

2002-02-13 Thread Ricardo Argüello
It looks like you would need Message Driven Beans. Read O'Reilly's Enterprise JavaBeans 3rd. Edition. And check JBoss 3.0.0alpha documentation: http://www.jboss.org/online-manual/HTML/ch08s20.html Greetings, Ricardo Arguello - Original Message - From: "Dirk Storck" <[EMAIL PROTECTE

Re: [JBoss-user] How can I use a background process with JBoss

2002-02-13 Thread Edward Q. Bridges
why not just send the user an email after the order has been processed? you could process the order using a message-driven bean that sends an email when completed, since you won't know if the user is still available after processing the order. HTH On Wed, 13 Feb 2002 14:16:36 +0100, Dirk

Re: [JBoss-user] Objects in entity beans are not updated

2002-02-13 Thread Eric . Jain
> Have you implemented equals() and hashCode() in your > objects? Great idea, but it doesn't seem to help :-( -- Eric Jain ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user

Re: [JBoss-user] JBosssx & the declarative security model

2002-02-13 Thread Sternagel Annegret (PN-SYS/PE)
Hello,   just a quick answer, maybe there must be thought more about it:   * what about creating a role for each method of a bean (or each attribute), these roles can be used in the deploymentdescriptor, * let the user create a higher role FINANCE (not named in the deploymentdescriptor) and

Re: [JBoss-user] Streams

2002-02-13 Thread Peter Levart
On Wednesday 13 February 2002 01:36, you wrote: > Two things come to mind here. First, values passed over local > interfaces don't have to be serializable. Second, EJBs are forbidden > from performing IO, because IO can block forever (you can cheat of > course). How are you planning on getting t

RE: [JBoss-user] How can I use a background process with JBoss

2002-02-13 Thread Coetmeur, Alain
a message bean can be a good idea... send an XML or text message to your message EJB, which will process the request in it's own thread... by the way, for long transactions, if you can avoid transactions (by default they timeout in 30 seconds. you can change that somewhere in the transaction co

Re: [JBoss-user] JBoss JNDI Lookup Code Generation with Forte

2002-02-13 Thread Madock Chiwenda
Did he used Forte? Could you help to send me with the connection parameters? Madock 09/02/02 19:42:18, "Frans Thamura" <[EMAIL PROTECTED]> wrote: >my staff success to use JNDI remotely to access to an EJB in JBoss server. > >Frans >- Original Message - >From: "Madock Chiwenda" <[EMAIL P

[JBoss-user] How can I use a background process with JBoss

2002-02-13 Thread Dirk Storck
Hi, I want to do the following: I have a ShoppingCart. The users clicks on order and the items from the ShoppingCart are moved to my OrderBean. ShoppingCart and OrderBean are EJB's. Now it comes to the problem. The order must be proccessed in background cause it will have a long durration. Afte

Re: [JBoss-user] Objects in entity beans are not updated

2002-02-13 Thread Dmitri Colebatch
Have you implemented equals() and hashCode() in your objects? My guess is that JBoss uses these either explicitly or implicitly to determine if the object is the same as the stored version, and only re-writes when they change. As the Object version of these methods simply refers to memory addres

[JBoss-user] Objects in entity beans are not updated

2002-02-13 Thread Eric Jain
Complex (serializable) objects stored in a single field within a CMP 2.0 entity bean don't get updated permanently unless I create a new object and store that. The log says something about the bean not being dirty. All accesses are through local references. Am I doing something wrong, or is this a

[JBoss-user] JBosssx & the declarative security model

2002-02-13 Thread Ivanhoe
Hello to all of you Jboss users (especially the ones that can help me)   I am starting to use  Jbosssx for my security. up until now I have had no problem testing it.   My problem though is that I am working on a fairly large system and am confronted with the fact that the end users want to

Re: [JBoss-user] Directories

2002-02-13 Thread Edward Q. Bridges
if you put myservlet.war in $JBOSS_HOME/deploy you will be able to access it via http://localhost:8080/myservlet at least, that's the way it works with jboss-jetty On Tue, 12 Feb 2002 15:11:14 -0800 (PST), Dustin Grabau wrote: >I am still experimenting with servlets and find no use >in t