Re: [JBoss-user] question about ejb restrictions

2003-10-02 Thread Scott M Stark
Yes, as is the case for the type 3 jdbc driver that has a bug, or the jsse
library that has a bug, etc.
--

Scott Stark
Chief Technology Officer
JBoss Group, LLC

[EMAIL PROTECTED] wrote:

The spec prohibits the use of files / native libraries for a reason. 
I understand that the usage of a native library can bring down the entire 
application server. 
Isn't this the same for MBeans?




---
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


Re: [JBoss-user] question about ejb restrictions

2003-10-01 Thread Alex Hornby
[EMAIL PROTECTED] wrote:

The spec prohibits the use of files / native libraries for a reason. 
I understand that the usage of a native library can bring down the entire 
application server. 
Isn't this the same for MBeans?

 

Yes, but you still might want to use the native library - some third 
party tools are still only available with C or C++ apis :)

One way to reduce the risk is to run a jboss instance specifically for 
the application or applications that need to use the native library.

Cheers,
Alex.


---
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


RE: [JBoss-user] question about ejb restrictions

2003-10-01 Thread harm
Thank you very much for your help. It was very helpfull.

Harm.




"Stephane Nicoll" <[EMAIL PROTECTED]> 
Sent by: [EMAIL PROTECTED]
10/01/2003 10:22 AM
Please respond to
[EMAIL PROTECTED]


To
<[EMAIL PROTECTED]>
cc

Subject
RE: [JBoss-user] question about ejb restrictions






>The spec prohibits the use of files / native libraries for a reason. 
>I understand that the usage of a native library can bring down the entire 

>application server. 
>Isn't this the same for MBeans?

No, see my previous mail. MBean are not running inside the 'J2EE 
container',
that's why.
We did that kind of things and it works pretty well.

Now, and it will be the same for a standalone application, check that the
code which is 
running inside those MBeans does not take too much CPUs and memory

Regards,

Stephane





"JD Brennan" <[EMAIL PROTECTED]> 
Sent by: [EMAIL PROTECTED]
09/30/2003 11:29 PM
Please respond to
[EMAIL PROTECTED]


To
<[EMAIL PROTECTED]>
cc

Subject
RE: [JBoss-user] question about ejb restrictions






One approach would be to use MBeans (Management beans - JMX).
Easy to do in JBoss.  MBeans can use native code, read/write
files.  Your EJBs can call into MBeans, which is not expensive
when they are all in the same JVM.

JD

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Tuesday, September 30, 2003 1:28 PM
To: jboss mailing list 
Subject: [JBoss-user] question about ejb restrictions


Hi all,

I have two problems. I would like to create a Message Driven Bean which 
does some image processing for me. 
I would like to use JMagick for this purpose. Unfortunatly EJB restricts 
the usage of native libraries. And ofcourse JMagick is a native library.
Can you guys give me some pointers on how to come up with a sollution for 
this problem?

Second of all, I have to handle with files on the filesystem in my 
application.
This is also a restricting in the EJB-spec. Unfortunatly I have to store 
files to get my application to work.
Should it be good practice to store files in a database as blobs?

Thanks for all suggestions,

Harm de Laat
Informatiefabriek
The Netherlands



---
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


---
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user




---
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


---
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user




---
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


RE: [JBoss-user] question about ejb restrictions

2003-10-01 Thread Stephane Nicoll
>The spec prohibits the use of files / native libraries for a reason. 
>I understand that the usage of a native library can bring down the entire 
>application server. 
>Isn't this the same for MBeans?

No, see my previous mail. MBean are not running inside the 'J2EE container',
that's why.
We did that kind of things and it works pretty well.

Now, and it will be the same for a standalone application, check that the
code which is 
running inside those MBeans does not take too much CPUs and memory

Regards,

Stephane





"JD Brennan" <[EMAIL PROTECTED]> 
Sent by: [EMAIL PROTECTED]
09/30/2003 11:29 PM
Please respond to
[EMAIL PROTECTED]


To
<[EMAIL PROTECTED]>
cc

Subject
RE: [JBoss-user] question about ejb restrictions






One approach would be to use MBeans (Management beans - JMX).
Easy to do in JBoss.  MBeans can use native code, read/write
files.  Your EJBs can call into MBeans, which is not expensive
when they are all in the same JVM.

JD

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Tuesday, September 30, 2003 1:28 PM
To: jboss mailing list 
Subject: [JBoss-user] question about ejb restrictions


Hi all,

I have two problems. I would like to create a Message Driven Bean which 
does some image processing for me. 
I would like to use JMagick for this purpose. Unfortunatly EJB restricts 
the usage of native libraries. And ofcourse JMagick is a native library.
Can you guys give me some pointers on how to come up with a sollution for 
this problem?

Second of all, I have to handle with files on the filesystem in my 
application.
This is also a restricting in the EJB-spec. Unfortunatly I have to store 
files to get my application to work.
Should it be good practice to store files in a database as blobs?

Thanks for all suggestions,

Harm de Laat
Informatiefabriek
The Netherlands



---
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


---
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user




---
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


---
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


RE: [JBoss-user] question about ejb restrictions

2003-10-01 Thread harm
The spec prohibits the use of files / native libraries for a reason. 
I understand that the usage of a native library can bring down the entire 
application server. 
Isn't this the same for MBeans?





"JD Brennan" <[EMAIL PROTECTED]> 
Sent by: [EMAIL PROTECTED]
09/30/2003 11:29 PM
Please respond to
[EMAIL PROTECTED]


To
<[EMAIL PROTECTED]>
cc

Subject
RE: [JBoss-user] question about ejb restrictions






One approach would be to use MBeans (Management beans - JMX).
Easy to do in JBoss.  MBeans can use native code, read/write
files.  Your EJBs can call into MBeans, which is not expensive
when they are all in the same JVM.

JD

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Tuesday, September 30, 2003 1:28 PM
To: jboss mailing list 
Subject: [JBoss-user] question about ejb restrictions


Hi all,

I have two problems. I would like to create a Message Driven Bean which 
does some image processing for me. 
I would like to use JMagick for this purpose. Unfortunatly EJB restricts 
the usage of native libraries. And ofcourse JMagick is a native library.
Can you guys give me some pointers on how to come up with a sollution for 
this problem?

Second of all, I have to handle with files on the filesystem in my 
application.
This is also a restricting in the EJB-spec. Unfortunatly I have to store 
files to get my application to work.
Should it be good practice to store files in a database as blobs?

Thanks for all suggestions,

Harm de Laat
Informatiefabriek
The Netherlands



---
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


---
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user




---
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


Re: [JBoss-user] question about ejb restrictions

2003-10-01 Thread Stephane Nicoll
We decided to use MBean for such purposes and it proved to work quite
well. MBeans have not restrictions regarding the spec, the can
read/write the filesystem and use any native librarie you want.

The MDB can be changed by a MBean fetching a queue and doing some stuff,
coupled to a scheduler that will check every XX secs if there are
messages in the queeu for instance.

For filesystem stuff, If it's frequent you can use either BLOBs either a
Connector (see the JCA spec). By the way, I am intereseted by any good
doc regarding that matter (that is connectors) inside Jboss

Regards,

Stephane

On Tue, 2003-09-30 at 22:27, [EMAIL PROTECTED] wrote:
> Hi all,
> 
> I have two problems. I would like to create a Message Driven Bean which 
> does some image processing for me. 
> I would like to use JMagick for this purpose. Unfortunatly EJB restricts 
> the usage of native libraries. And ofcourse JMagick is a native library.
> Can you guys give me some pointers on how to come up with a sollution for 
> this problem?
> 
> Second of all, I have to handle with files on the filesystem in my 
> application.
> This is also a restricting in the EJB-spec. Unfortunatly I have to store 
> files to get my application to work.
> Should it be good practice to store files in a database as blobs?
> 
> Thanks for all suggestions,
> 
> Harm de Laat
> Informatiefabriek
> The Netherlands
> 
> 
> 
> ---
> This sf.net email is sponsored by:ThinkGeek
> Welcome to geek heaven.
> http://thinkgeek.com/sf
> ___
> JBoss-user mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/jboss-user
> 



---
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


RE: [JBoss-user] question about ejb restrictions

2003-09-30 Thread JD Brennan
One approach would be to use MBeans (Management beans - JMX).
Easy to do in JBoss.  MBeans can use native code, read/write
files.  Your EJBs can call into MBeans, which is not expensive
when they are all in the same JVM.

JD

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Tuesday, September 30, 2003 1:28 PM
To: jboss mailing list 
Subject: [JBoss-user] question about ejb restrictions


Hi all,

I have two problems. I would like to create a Message Driven Bean which 
does some image processing for me. 
I would like to use JMagick for this purpose. Unfortunatly EJB restricts 
the usage of native libraries. And ofcourse JMagick is a native library.
Can you guys give me some pointers on how to come up with a sollution for 
this problem?

Second of all, I have to handle with files on the filesystem in my 
application.
This is also a restricting in the EJB-spec. Unfortunatly I have to store 
files to get my application to work.
Should it be good practice to store files in a database as blobs?

Thanks for all suggestions,

Harm de Laat
Informatiefabriek
The Netherlands



---
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


---
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


Re: [JBoss-user] question about ejb restrictions

2003-09-30 Thread Scott M Stark
Just do it. Unless you running with a security manager nothing
will prevent this. Its up to you to determine if using a database
as a file system makes sense.
--

Scott Stark
Chief Technology Officer
JBoss Group, LLC

[EMAIL PROTECTED] wrote:

Hi all,

I have two problems. I would like to create a Message Driven Bean which 
does some image processing for me. 
I would like to use JMagick for this purpose. Unfortunatly EJB restricts 
the usage of native libraries. And ofcourse JMagick is a native library.
Can you guys give me some pointers on how to come up with a sollution for 
this problem?

Second of all, I have to handle with files on the filesystem in my 
application.
This is also a restricting in the EJB-spec. Unfortunatly I have to store 
files to get my application to work.
Should it be good practice to store files in a database as blobs?

Thanks for all suggestions,

Harm de Laat
Informatiefabriek
The Netherlands


---
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user