Re: [JBoss-user] Problem with classloader, servlets, and EARs.

2001-06-24 Thread Scott M Stark


> The Servlet spec requires that the class is in the class path.
> 
> Accordingly, in the META-INF/manifest.mf file for myWeb.war, there is an
> entry that reads thusly:
> Class-Path: myLib.jar
> 
There is nothing in the spec that says war files can specify dependencies
using the manifest Class-Path attribute. In fact in the J2EE 1.3PFD3 spec
says:


J2EE.8.1.1.2 Dependencies

A .jar file can reference another .jar file by naming the referenced .jar file
in a Class-Path header in the referencing .jar file's Manifest file. The referenced
.jar file is named as a relative URL, relative to the URL of the referencing .jar
file. (This mechanism is only applicable to JAR format files containing class files
or resources to be loaded by a ClassLoader; such files are always named with a
.jar extension. This mechanism does not apply to other JAR format files such as
.ear files, .war files, and .rar files that are never loaded directly by a
ClassLoader.)


Are you using this archive format successfully with another app server?

> The reason this is built like this is that the servlet is a generic piece of
> infrastructure which uses locally provided classes (instantiated by
> reflection) to implement a Model2 architecture. As we expect to deploy
> several web apps (each in their own WAR) in the final EAR, we have the
> servlet in an external library JAR. All perfectly legal according to the
> J2EE spec.
> 
That is your interpretation.

> Sorry if that wasn't clear before. :) Anyway, to get back to the core of the
> problem:
> 
> Is there an object that the servlet has access to (such as the ServletConfig
> or the ServletContext) that is certain to be instantiated by the classloader
> for the Web App? If I can get such an object, I can use its classloader to
> instantiate the other classes.
> 
Any class loaded from the standard WEB-INF/classes or WEB-INF/lib/*.jar
is certain to be loaded by the servlet war class loader. At what point are
you trying to do the reflection, and how are you loading the class? I would
expect that using the thread context class loader should work:

public void init() throws ServletException
{
ClassLoader loader = Thread.currentThread().getContextClassLoader();
Class clazz = loader.loadClass("myClass");
...
}




___
JBoss-user mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-user



Re: [JBoss-user] Classloader problem in ear

2001-06-24 Thread Remus Jivcu

Scott M Stark wrote:

> This is the expected behavior given the current ear deployer. EJB classes
> are made available to wars and if you put you servlets in the ejb-jar archive
> it will be seen there first as this is ahead of the war classes. If you don't
> want this behavior only include the servlet in the war.

Hi Scott,

Thanks for your answer. Now I understand the different behaviours mentioned in my
post.

But I have another question. I guess this is not written anywhere in any spec,
but why classes in the war file should be aware of classes in EJB jar file ? One
needs only home and remote interfaces in war file for all EJBs deployed and
that's it ... Or is there something more ?
I assume that this is probably an optimization of JBoss architecture, also being
spec compliant. But the question still remains : shouldn't be a clear separation
between classloaders and classes from EJB jars and war files ?

Thanks in advance,

Remus.


___
JBoss-user mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-user



Re: [JBoss-user] Apache+Tomcat+JBoss

2001-06-24 Thread Julian Gosnell

Richard Bottoms wrote:

> At 11:14 AM 6/24/01 +0100, you wrote:
> >You might want to consider Jetty (which is a pure Java HTTP Server and
> Servlet
> >Container) and has been integrated intravm with JBoss.
>
> All I need is a JBoss-Tomcat-Jetty bundle and I'll start using it.

Now, you've lost me.

Unless you have an ABSOLUTE requirement for TomCat, this would be a
strange thing to do, since Jetty and TomCat functionality intersect here.
(JSDK, JSP).

Why do you think you would want both in the same VM - am I missing
something here, or are you ???


Jules

>
>
> r.b.
>
> ___
> JBoss-user mailing list
> [EMAIL PROTECTED]
> http://lists.sourceforge.net/lists/listinfo/jboss-user


_
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com


___
JBoss-user mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-user



Re: [JBoss-user] JBoss-Jetty & jboss/db/jbossmq

2001-06-24 Thread Julian Gosnell

[EMAIL PROTECTED] wrote:

> On Sun, Jun 24, 2001 at 12:14:08PM +0100, Julian Gosnell wrote:
> >
> > First one to report the problem fixed gets a FREE copy !
> >
> > 
>http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/jboss/binaries/JBoss-2.2.2_Jetty-3.1.RC5-6.tgz
>
> That's an interesting development. WinZip7 now lists the file "dummy"
> in the jbossmq directory as a 0-byte file.
>
> It does NOT get extracted however. Time to scrap WinZip methinks.

IT being the dummy file, the directory, or both ?

Jules

>
>
> Does this mean I'm disqualified from the prize? :-(

Maybe :-)

>
>
> Cheers
> Bent D
> --
> Bent Dalager - [EMAIL PROTECTED] - http://www.pvv.org/~bcd
> powered by emacs
>
> ___
> JBoss-user mailing list
> [EMAIL PROTECTED]
> http://lists.sourceforge.net/lists/listinfo/jboss-user


_
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com


___
JBoss-user mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-user



Re: [JBoss-user] JBossCX, deploying resources using external jars

2001-06-24 Thread Toby Allsopp

Hernan Theiler wrote:

> Toby,
> 
> What I did was to put the classes in the JBOSS_CLASSPATH, but that required
> me to restart the server when deploying the new RAR (the new jars are used
> in more than one resource adapter).  That's not so terrible, but I thought
> there was some more elegant way to make it.


If the classes only need to be available to the resource adapter then 
you can put them in the RAR.  If they're only used by clients then you 
should bundle them with the clients.  If they're used by both then you 
can either put them in a shared place, as you've done, or bundle them 
with both the resource adapter and the clients (and deal with any 
classloader problems).

Toby.



___
JBoss-user mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-user



Re: [JBoss-user] JBossCX, deploying resources using external jars

2001-06-24 Thread Hernan Theiler

Toby,

What I did was to put the classes in the JBOSS_CLASSPATH, but that required
me to restart the server when deploying the new RAR (the new jars are used
in more than one resource adapter).  That's not so terrible, but I thought
there was some more elegant way to make it.

Thanks,

Hernán Theiler

- Original Message -
From: "Toby Allsopp" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Sunday, June 24, 2001 8:52 PM
Subject: Re: [JBoss-user] JBossCX, deploying resources using external jars


> On Sun, Jun 24, 2001 at 05:52:38PM +0200, Hernan Theiler wrote:
> > Hello,
> >
> > I'm building a resource adapter using classes in some external jars.
> > When deploying, the JBoss server gives an exception for the missing
classes (that's ok), but I couldn't find a place to tell the deployer where
to find the classes.
> >
> > Finaly, I added the external jars to the JBOSS_CLASSPATH variable in the
RUN.BAT file (I'm working with Win2K) and it worked fine.
> >
> > Is there any other way to indicate the deployment path? maybe in some of
the control files in the RAR file itself?
>
> Either put the required classes somewhere the server can find them, e.g.
by
> adding them to the JBOSS_CLASSPATH, putting them in $JBOSS_HOME/lib/ext or
> (possibly, I'm not really sure) adding a classpath extension thingy in
> jboss.jcml.
>
> These options are good if the classes are required elsewhere in the
server,
> e.g. by EJBs that use the resource adapter.  If the classes are only
required
> by the resource adapter implementation then you can put the classes in
> the RAR.
>
> Toby.
>
> ___
> JBoss-user mailing list
> [EMAIL PROTECTED]
> http://lists.sourceforge.net/lists/listinfo/jboss-user


___
JBoss-user mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-user



RE: [JBoss-user] Problem with classloader, servlets, and EARs.

2001-06-24 Thread Robert Watkins

Scott M Stark wrote:
> You showed the web.xml descriptor and I expected that this did declare
> the servlet in myLib.jar or there would be no reason for the 
> servlet to
> be deployed. I'm saying that I don't think this is valid 
> behavior as you
> could not just extract the war and deploy it. My reading of the specs
> says that the war is not valid and should not deploy.

The Servlet spec requires that the class is in the class path.

Accordingly, in the META-INF/manifest.mf file for myWeb.war, there is an
entry that reads thusly:
Class-Path: myLib.jar

The reason this is built like this is that the servlet is a generic piece of
infrastructure which uses locally provided classes (instantiated by
reflection) to implement a Model2 architecture. As we expect to deploy
several web apps (each in their own WAR) in the final EAR, we have the
servlet in an external library JAR. All perfectly legal according to the
J2EE spec.

Sorry if that wasn't clear before. :) Anyway, to get back to the core of the
problem:

Is there an object that the servlet has access to (such as the ServletConfig
or the ServletContext) that is certain to be instantiated by the classloader
for the Web App? If I can get such an object, I can use its classloader to
instantiate the other classes.

Robert.

-- 
 "Duct tape is like the Force: it has a light side, a dark side,
   and it holds the universe together"
  Robert Watkins [EMAIL PROTECTED] [EMAIL PROTECTED]

___
JBoss-user mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-user



Re: [JBoss-user] who can state it clear about primitives?

2001-06-24 Thread Allen fogleson

1.  return types must meet rmi/iiop. which in general means no primitives.

2.  simple answer... yes.. except as the primary key.

3. according to the spec... on entity beans... ALL primary keys MUST be
objects, not primitives. If you want to use primitives you wrap them in a
compund key class. so as the fields of a primary key... yes, otherwise no.

Al

- Original Message -
From: Boris Garbuzov <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Sunday, June 24, 2001 4:35 PM
Subject: [JBoss-user] who can state it clear about primitives?


> I think, it is time to ask a final answer about usage of primitives. In
RMI it was
> not clear too. I read, I can not use them in remote interfaces with
rmiregistry, but
> in practice it worked, and other people confirmed it. If it depends on
> implementation, let us just talk about JBoss.
> 1. Can I use primitive arguments and return types in remote interface
methods?
> 2. As persistent fields?
> 3. As a primary key and its subfields? And what would be an XML tag if
yes? Does the
> tag  exist? (it was a recommendation of my EJB course
instructor,
> perhaps it exists in Orion).
>
> 
>
>
>
> technically an rmi/iiop type... serializeable class. Long would work...
long
> wont.
>
>
> - Original Message -
> From: Vinay Menon
> To: [EMAIL PROTECTED]
> Sent: Saturday, June 23, 2001 3:33 PM
> Subject: Re: [JBoss-user] primitive primary key description
>
>
> Culprit is long [the one you have flagged].
> Needs to be Java classes I believe.
>
> Vinay
>
> - Original Message -
> From: Boris Garbuzov
> Sent: Saturday, June 23, 2001 8:06 PM
> To: [EMAIL PROTECTED]
> Subject: [JBoss-user] primitive primary key description
>
> Sorry for not digging into DTDs first. I heard, to make primary key
> primitive, one has to change tag  to , but
it
> does not work. But it does not work. What is a solution?
> -
> ejb-jar.xml -
> creationTime
> creationTime
> 
> long
> --server log -
> [Container factory] org.jboss.ejb.DeploymentException: Error in
ejb-jar.xml
> for Entity Bean OrderEntity: expected one prim-key-class tag
>
>
>
>
>
> ___
> JBoss-user mailing list
> [EMAIL PROTECTED]
> http://lists.sourceforge.net/lists/listinfo/jboss-user


___
JBoss-user mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-user



[JBoss-user] Deployment error

2001-06-24 Thread MDemian

Hi all,

Can any explain me, what need I do,  when JBoss try deploy CMP EJB named Projekt and 
thhrow this message:


[Container factory] org.jboss.ejb.DeploymentException: Bean Projekt has PK of type
java.lang.String, so it should have a cmp-field named CASE_INSENSITIVE_ORDER


(PK class in ejb-jar.xml is setting: java.lang.String)

Miro


___
JBoss-user mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-user



Re: [JBoss-user] Apache+Tomcat+JBoss

2001-06-24 Thread Allen fogleson

There is a JBoss-Jetty bundle... you dont need tomcat if you have jetty. it
is also a servlet/jsp container

Al

- Original Message -
From: Richard Bottoms <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Sunday, June 24, 2001 12:41 PM
Subject: Re: [JBoss-user] Apache+Tomcat+JBoss


> At 11:14 AM 6/24/01 +0100, you wrote:
> >You might want to consider Jetty (which is a pure Java HTTP Server and
> Servlet
> >Container) and has been integrated intravm with JBoss.
>
>
> All I need is a JBoss-Tomcat-Jetty bundle and I'll start using it.
>
>
> r.b.
>
>
>
>
>
> ___
> JBoss-user mailing list
> [EMAIL PROTECTED]
> http://lists.sourceforge.net/lists/listinfo/jboss-user


___
JBoss-user mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-user



Re: [JBoss-user] Problem with classloader, servlets, and EARs.

2001-06-24 Thread Scott M Stark

You showed the web.xml descriptor and I expected that this did declare
the servlet in myLib.jar or there would be no reason for the servlet to
be deployed. I'm saying that I don't think this is valid behavior as you
could not just extract the war and deploy it. My reading of the specs
says that the war is not valid and should not deploy.

- Original Message - 
From: "Robert Watkins" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Sunday, June 24, 2001 10:06 PM
Subject: RE: [JBoss-user] Problem with classloader, servlets, and EARs.


> Scott M Stark wrote:
> > I would say it is a bug in the deployer that the servlet is 
> > loaded at all.
> > Why should a servlet in a jar without a deployment descriptor 
> > be deployed?
> 
> I didn't show the full tree... there's a deployment descriptor in the war
> file which points to the servlet class (in the myLib.jar).
> 
> Robert.
> 



___
JBoss-user mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-user



RE: [JBoss-user] load

2001-06-24 Thread marc fleury

Interesting

|1. We ran jBoss/Tomcat on Linux using a creaking old 166MHz Pentium with
|64MB RAM and 256MB swap space.  This configuration thrashed noticeably

and here I was discussing my latest 1.4 Ghz Athlon with half a gig of RAM
linux desktop :)


|because of memory limitations, but we tested with our load simulator and
|the system never fell over.  Enormous amounts of memory are consumed by
|the Hypersonic SQL engine which comes in the box with jBoss, and it is not
|appropriate for production use.  When we switched to PostgreSQL running on
|the same machine and totally deconfigured Hypersonic in jboss.jcml, the
|memory requirements dropped and performance was actually quite tolerable.
|Note that I am not recommending you run such a system in production, but I
|thought knowing this would help you gauge just how far you can push things
|toward minimum.

|3. In turn, the limiting factor on thread count is demand resulting from
|the internal architecture of jBoss.  I really do not know enough to

h JBossServer doesn't really start ANY thread by itself.  It is either
the tomcat stack, the apache one or the RMI subsystem.  ok there are some
thread in the JMX subsystem they are constant however... i.e. if a client
calls JBoss doesn't start anything it is tomcat or rmi.

|discuss this issue, but I understand it is a development concern.

no, there were some issues with the JBossMQ implementation not the conf you
are testing.

|In general, jBoss on Linux benefits from throwing as much RAM and CPU
|resources at it as can be reasonably afforded.  This is doubly a concern

well, I overpayed for an asus mother board and a 1.4ghz athlon and I put
$700 just to see on price watch that it hoovers at 450 these days...

It is $500 bucks or you go and optimize Tomcat (which is a pig)... h I
will take $500 bucks ...


|when you run the database back-end on the same machine as the jBoss
|application server.  Our current test configuration is a dual 300MHz
|Pentium III system with 256MB RAM, and I would probably not put quite that
|low-powered a machine into production use.  On the other hand, with our
|present test configuration, the swap file is so far untouched with under
|90MB actually utilized:

good...

|
| total   used   free sharedbuffers cached
|Mem:257640 235616  22024  65512 116680  36996
|-/+ buffers/cache:  81940 175700
|Swap:  1048560  01048560
|
|My advice is to buy as much CPU power as you can at the outset because
|this is expensive to upgrade later, and install whatever memory you think
|you can get away with while keeping as many RAM slots unused as possible.
|Since memory is very cheap now, adding more will just be a matter of
|filling up those slots.  Even 1GB or 2GB RAM is entirely affordable now.
|Fast disks will also help the back-end database a lot.

PRECISELY... in fact in one of the days in the training I go over the sizing
and clearly explain if you can buy a 1gig ram machine and you have n beans
and you know that they always use a limited nubmer of clients THEN
EVERYTHIGN CAN RUN IN RAM, FUCK PASSIVATION, FUCK OPTION C, FUCK
SERIALIZATION GO FOR SPEED.

|If you are going to use more than two CPUs or exceed 2GB RAM, you are
|strongly advised to run the 2.4 Linux kernel.

I must say (I already did on jboss-dev) that I am TRULY impressed by the
quality of Linux on the desktop these days... i run it on my servers (always
did , jboss.org is linux) but didn't really do it on desktop... i had to
yesterday for various reasons and I was impressed by how much it has
progressed since I last played with it on desktops...

regards

marcf
|
|-- Mike
|
|
|On 2001-06-24 at 09:45 -0700, Richard Bottoms wrote:
|
|> Since the question has been raised about the maximum user load
|of JBoss I'm
|> in need of some concrete numbers as far as is currently known.
|>
|> 1. What is the minimum configuration recommended
|>
|> 2. What's the maximum concurrent connections allowed under Linux.
|>
|> 3. Is this affected by processor speed, memory or chip type?
|>
|> I have a commercial app I want to develop, but I, and I would
|guess others
|> need these answers if we are to proceed.
|>
|>
|> Thanks,
|> r.b.
|
|
|
|___
|JBoss-user mailing list
|[EMAIL PROTECTED]
|http://lists.sourceforge.net/lists/listinfo/jboss-user



___
JBoss-user mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-user



RE: [JBoss-user] Problem with classloader, servlets, and EARs.

2001-06-24 Thread Robert Watkins

Scott M Stark wrote:
> I would say it is a bug in the deployer that the servlet is 
> loaded at all.
> Why should a servlet in a jar without a deployment descriptor 
> be deployed?

I didn't show the full tree... there's a deployment descriptor in the war
file which points to the servlet class (in the myLib.jar).

Robert.

-- 
 "Duct tape is like the Force: it has a light side, a dark side,
   and it holds the universe together"
  Robert Watkins [EMAIL PROTECTED] [EMAIL PROTECTED]

___
JBoss-user mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-user



Re: [JBoss-user] load

2001-06-24 Thread Michael Bilow

1. We ran jBoss/Tomcat on Linux using a creaking old 166MHz Pentium with
64MB RAM and 256MB swap space.  This configuration thrashed noticeably
because of memory limitations, but we tested with our load simulator and
the system never fell over.  Enormous amounts of memory are consumed by
the Hypersonic SQL engine which comes in the box with jBoss, and it is not
appropriate for production use.  When we switched to PostgreSQL running on
the same machine and totally deconfigured Hypersonic in jboss.jcml, the
memory requirements dropped and performance was actually quite tolerable.  
Note that I am not recommending you run such a system in production, but I
thought knowing this would help you gauge just how far you can push things
toward minimum.

2. In our experience, the bottleneck on Linux is not connection count but
thread count.  As I have discussed in two immediately prior posts here,
jBoss under heavy load will exhaust the systemwide supply of task slots
and essentially wedge.  This can be worked around by modifying the kernel
source and recompiling the kernel with a higher number of task slots.  In
theory, changing to the "green threads" configuration would remove the
thread count limitation at the expense of performance.

3. In turn, the limiting factor on thread count is demand resulting from
the internal architecture of jBoss.  I really do not know enough to
discuss this issue, but I understand it is a development concern.

In general, jBoss on Linux benefits from throwing as much RAM and CPU
resources at it as can be reasonably afforded.  This is doubly a concern
when you run the database back-end on the same machine as the jBoss
application server.  Our current test configuration is a dual 300MHz
Pentium III system with 256MB RAM, and I would probably not put quite that
low-powered a machine into production use.  On the other hand, with our
present test configuration, the swap file is so far untouched with under
90MB actually utilized:

 total   used   free sharedbuffers cached
Mem:257640 235616  22024  65512 116680  36996
-/+ buffers/cache:  81940 175700
Swap:  1048560  01048560

My advice is to buy as much CPU power as you can at the outset because
this is expensive to upgrade later, and install whatever memory you think
you can get away with while keeping as many RAM slots unused as possible.  
Since memory is very cheap now, adding more will just be a matter of
filling up those slots.  Even 1GB or 2GB RAM is entirely affordable now.  
Fast disks will also help the back-end database a lot.

If you are going to use more than two CPUs or exceed 2GB RAM, you are
strongly advised to run the 2.4 Linux kernel.

-- Mike


On 2001-06-24 at 09:45 -0700, Richard Bottoms wrote:

> Since the question has been raised about the maximum user load of JBoss I'm
> in need of some concrete numbers as far as is currently known. 
> 
> 1. What is the minimum configuration recommended
> 
> 2. What's the maximum concurrent connections allowed under Linux.
> 
> 3. Is this affected by processor speed, memory or chip type?
> 
> I have a commercial app I want to develop, but I, and I would guess others
> need these answers if we are to proceed.
> 
> 
> Thanks,
> r.b.



___
JBoss-user mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-user



[JBoss-user] Tomcat & Jboss Integration

2001-06-24 Thread Phan Anh Tran

If we start JBOSS with "run_with_tomcat", is it a-ok to look  up a JBOSS
datasource from within a servlet or a jsp running in Tomcat?Any known
integration problems?  Thanks.

Anh



_
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com


___
JBoss-user mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-user



Re: [JBoss-user] who can state it clear about primitives?

2001-06-24 Thread danch

Boris Garbuzov wrote:

> I think, it is time to ask a final answer about usage of primitives. In RMI it was
> not clear too. I read, I can not use them in remote interfaces with rmiregistry, but
> in practice it worked, and other people confirmed it. If it depends on
> implementation, let us just talk about JBoss.
> 1. Can I use primitive arguments and return types in remote interface methods?

Yes. Note that there are other things that will make the JBoss verifyer 
complain about your interfaces (not throwing RemoteException, etc.)


> 2. As persistent fields?

Yes. Unless it is possible for the mapped column to be null.


> 3. As a primary key and its subfields? 

No. Not at all.

And what would be an XML tag if yes? Does the
> tag  exist? (it was a recommendation of my EJB course instructor,
> perhaps it exists in Orion).
> 

-danch


___
JBoss-user mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-user



[JBoss-user] (no subject)

2001-06-24 Thread Prasad Raju K V

confirm 604817cofirm


 Regards,
 K.V.Prasad Raju
 <<...>> 

Quality Policy:
"To provide high quality competitive information technology solutions
through mature software development processes that conform to the highest
industry standards"



___
JBoss-user mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-user



Re: [JBoss-user] Apache+Tomcat+JBoss

2001-06-24 Thread Michael Bilow

See my immediately prior post on the subject of native thread support in
Linux.  The short answer is that it is present -- and the referenced jBoss
documentation already wrong -- as of kernel 2.2 and Sun JVM 1.3.

The Linux 2.4 kernel makes substantial internal changes to the scheduler,
especially with regard to SMP, but this is transparent to applications
such as jBoss.  (The exception to transparency is that threading errors,
such as failure to synchronize properly, may be exposed by a 2.4 kernel if
the same code was working by coincidence on a 2.2 kernel.)

>From the perspective of a Java application, the 2.4 kernel should be
regarded as architecturally equivalent to a 2.2 kernel, although there
would likely be significant performance benefits, especially with SMP.

-- Mike


On 2001-06-24 at 11:25 +0100, Julian Gosnell wrote:

> Further context to this quote suggests that Linux 2.2 is being
> discussed.
> 
> Firstly, can anyone confirm this from a reliable source - it's the
> first I've heard of it.
> 
> Secondly, is this still the case with a 2.4 kernel, in which I thought
> similar issues had been very successfully addressed ?
> 
> Thirdly, It would be useful to have dates on documentation, so that it
> is possible to tell when they become stale - if 2.4 does address this
> (I have no idea), or a better Linux JVM has since been released, then
> it would be helpful to know when this statement was made.
> 
> Jules
> 
> 
> 
> Fei Wang wrote:
> 
> > I have found the following at
> > http://www.jboss.org/documentation/HTML/ch10s02.html.
> >
> > Linux users probably already know that linux does not support real
> > threads. Under heavy load, JBoss will for example crash with 200
> > concurrent users under linux, whereas it can handle 1000 of them on
> > the same box with Windows 2000. Of course, if you use Apache or Jetty
> > in front of JBoss to handle the thread pooling, this will not be a
> > problem.
> >
> > So if it is ture, I think that Apache should be a reasonable front
> > part, especially for production use.
> >
> > Fei Wang



___
JBoss-user mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-user



RE: [JBoss-user] Apache+Tomcat+JBoss

2001-06-24 Thread Michael Bilow

The jBoss documentation is simply wrong and grossly outdated in any
meaningful way.  See my extensive post on a related issue a few days ago:

http://www.mail-archive.com/jboss-user%40lists.sourceforge.net/msg07518.html

Linux, as of the 2.2 kernel and 1.3 Sun JVM, certainly does have real
native thread support, and this is the default installation.  See:

http://developer.java.sun.com/developer/technicalArticles/Programming/linux/

Basically, the choice between "native" threads and "green" threads is
an issue of whether the threads are to be scheduled by the system kernel
scheduler or by the JVM internal scheduler.  If the system scheduler is
used, the switching takes place in kernel mode and more efficient use of
resources can be made; in particular, an SMP machine can have multiple JVM
threads running simultaneously on different processors.  If the JVM
internal scheduler is used, the switching takes place in user mode which
is going to be somewhat slower, and all of the threads within the JVM will
be limited to a single processor on an SMP machine.

There is a trade-off here: for nearly all practical Java applications,
running with native threads is going to result in better performance, even
for a uniprocessor machine.  The exception is a Java application which
needs to create a huge number of threads, maybe into the several hundreds,
in which case green threads might be a realistic option.  Note that any
application which has hundreds of threads is going to thrash the scheduler
regardless of whether that scheduler is inside the JVM or the kernel, and
serious consideration should be given to rearchitecture.

There is some sort of nasty myth that Linux threads are somehow less
"thready" than Windows threads because they show up in the process table.  
This is an implementation choice that has negligible effect on performance
(after a thread has been initially created) because threads share task
descriptors which, on most hardware (including Intel), have physical
meaning in the CPU.  In other words, the Linux kernel switches between
threads as quickly and with essentially the same amount of overhead as a
thread switch on Windows, although Linux does take some penalty in initial
thread creation.  This is again a trade-off, because the Linux thread
model allows a single-tier scheduling algorithm while Windows requires a
double-tier scheduling algorithm.  What green threads on Linux do is
closer to the Windows scheduling model, although on Windows the thread
scheduler runs in kernel mode and is therefore faster than the user-mode
JVM internal scheduler on Linux that is only used with green threads.

The reason Linux will impose limitations on jBoss capacity that are not
present in Windows is because the Linux kernel is designed with the
assumption that any process spawning hundreds of threads has lost its mind
and should be stopped for the good of the system.  If one chooses to do
so, one can -- as I explain in my earlier post referenced above --
recompile the Linux kernel to raise the task count limit up into the
stratosphere; a little more than 4000 tasks can be allowed systemwide on
Intel hardware.  (This has a physical hardware basis: there are 8192
descriptor slots on Intel hardware, and each Linux task needs two, so the
dead maximum capacity on Intel hardware is 4096.  In turn, no single user
is allowed more than half the systemwide supply of task slots, so when
jBoss hits 2048 the kernel will deny it the ability to start new threads.  
Note that this is a factor of 8 greater than the kernel default.)  With
the kernel recompiled to allow more tasks, Linux will have essentially the
same capacity in terms of thread count as Windows, with the difference
that Linux will continue running if a non-root application requests every
available thread while Windows in that situation will crash.

In summary:

1. Linux has native thread support as of the 2.2 kernel and 1.3 Sun JVM,

2. SMP, if available, is fully utilized with native thread support,

3. There are reasons why one might choose not to use native thread support
on Linux and use green threads instead,

4. The capacity of Linux in terms of thread count can be boosted to a
level equivalent to that of Windows by changing a number in the kernel
source and recompiling, and

5. It is undesirable to have very large numbers of threads because then
the system will spend an increasingly larger portion of time in thread
switching and scheduling overhead at the expense of useful work.

-- Mike


On 2001-06-24 at 14:08 +0800, Fei Wang wrote:

> I have found the following at
> http://www.jboss.org/documentation/HTML/ch10s02.html.
> 
> Linux users probably already know that linux does not support real
> threads. Under heavy load, JBoss will for example crash with 200
> concurrent users under linux, whereas it can handle 1000 of them on
> the same box with Windows 2000. Of course, if you use Apache or Jetty
> in front of JBoss to handle the thread pooling, this will n

Re: [JBoss-user] Problem with classloader, servlets, and EARs.

2001-06-24 Thread Scott M Stark

I would say it is a bug in the deployer that the servlet is loaded at all.
Why should a servlet in a jar without a deployment descriptor be deployed?

- Original Message - 
From: "Robert Watkins" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Sunday, June 24, 2001 6:39 PM
Subject: [JBoss-user] Problem with classloader, servlets, and EARs.


> I'm hoping someone can shed some light on a problem I'm having. I have a EAR
> structured like somewhat this: (names changed to protect the innocent)
> 
> myApp.ear
>   |--- myLib.jar
>   | |-- myServlet.class
>   |
>   |--- myWeb.war
> |-- WEB-INF/web.xml
> |-- WEB-INF/classes/myClass.class
> 
> 
> When myServlet.class loads, it tries to instantiate (by reflection) an
> instance of myClass. However, it gets a ClassNotFound exception.
> 
> My tentative guess at what's going on is that myServlet is being found by
> the classloader for the EAR. This doesn't have access to the contents of the
> WAR file, so it doesn't see the web classes. This implies that I need to get
> hold of the classloader for the web-application.
> 
> Does anyone have any idea on how to do this? I'm stuck.
> 
> (Yes, the code works fine if I move myClass.class out to myLib.jar, or if I
> move myServlet.class into the WAR. However, for various reasons, I don't
> want to do that)
> 
> Robert
> 
> -- 
> Robert Watkins
> Software Engineer
> 
> QSI Payments
> E-Payments Infrastructure - Secure Payments Solutions.
> __
> 
> Email:   [EMAIL PROTECTED]
> Tel:   +61 7 3210 2522
> DID:   +61 7 3224 9728
> Fax:   +61 7 3210 2566
> URL:   www.qsipayments.com
> Address:  Level 21
>   300 Adelaide Street
>   Brisbane
>   Qld 4000
> 
> **This message or any part of it is intended solely for the named **
> **addressee and contains privileged and confidential information. **
> **  If you receive this message in error please notify QSI Payments by**
> **   replying to the sender and removing the message from your computer.  **
> 
>  
> 
> ___
> JBoss-user mailing list
> [EMAIL PROTECTED]
> http://lists.sourceforge.net/lists/listinfo/jboss-user
> 


___
JBoss-user mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-user



RE: [JBoss-user] Help with running JBoss on Solaris, Sparc

2001-06-24 Thread Devraj Mukherjee

Thanks all for the solution

Devraj

At 23:08 24/06/01 -0400, you wrote:
> Hi,
>You have to add tools.jar from {JDK.HOME}/lib into your JBOSS_CLASSPATH
>variable. It should fix your problem


___
JBoss-user mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-user



Re: [JBoss-user] Ant

2001-06-24 Thread Ivan Novick

you dont need custom tasks, just use jar and war and move and copy and mkdir
etc.

Ivan

- Original Message -
From: "Hunter Hillegas" <[EMAIL PROTECTED]>
To: "JBoss 2" <[EMAIL PROTECTED]>
Sent: Sunday, June 24, 2001 3:37 PM
Subject: [JBoss-user] Ant


> I've been using Ant with my JSP+Servlet projects and I'm trying to
> transition it to my work with EJBs. The only EJB related tasks seem to be
> associated with WebLogic...
>
> Is anyone using Ant with JBoss to build the beans, package a WAR, create
an
> EAR?
>
> Hunter
>
>
> ___
> JBoss-user mailing list
> [EMAIL PROTECTED]
> http://lists.sourceforge.net/lists/listinfo/jboss-user


___
JBoss-user mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-user



RE: [JBoss-user] Help with running JBoss on Solaris, Sparc

2001-06-24 Thread Alex Pavlov

Hi,
You have to add tools.jar from {JDK.HOME}/lib into your JBOSS_CLASSPATH
variable. It should fix your problem

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]On Behalf Of Devraj Mukherjee
Sent: Sunday, June 24, 2001 10:22 PM
To: [EMAIL PROTECTED]
Subject: [JBoss-user] Help with running JBoss on Solaris, Sparc


Hi All,

I am trying to Run JBoss on Solaris, everything works fine except the JSPs.
Try out the JSP examples at http://farrer.csu.edu.au:8080/examples/jsp/ and
see if you can give me any pointers.

Thank you.

Devraj


___
JBoss-user mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-user


_
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com


___
JBoss-user mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-user



Re: [JBoss-user] Help with running JBoss on Solaris, Sparc

2001-06-24 Thread Cuong Tran


  You need to place tools.jar on the classpath.

--- Devraj Mukherjee <[EMAIL PROTECTED]> wrote:
> Hi All,
> 
> I am trying to Run JBoss on Solaris, everything works fine except the JSPs. 
> Try out the JSP examples at http://farrer.csu.edu.au:8080/examples/jsp/ and 
> see if you can give me any pointers.
> 
> Thank you.
> 
> Devraj
> 
> 
> ___
> JBoss-user mailing list
> [EMAIL PROTECTED]
> http://lists.sourceforge.net/lists/listinfo/jboss-user


=
Cuong Q. Tran <[EMAIL PROTECTED]>

__
Do You Yahoo!?
Get personalized email addresses from Yahoo! Mail
http://personal.mail.yahoo.com/

___
JBoss-user mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-user



Re: [JBoss-user] Limiting the number of instances of Stateful Session Beans

2001-06-24 Thread Mikhail Akopov

> First, what you need seems more the 'singleton counter' problem than bean
> container problem. You may check corresponding threads to solve problem in
> such a direction. IMHO the best solution is to use JNDI+RMI (look at
Roman's
> 'Mastering EJBs, p406)
Sorry, should be Roman  'Mastering EJBs'. 'Advanced JNDI', page 602

Vale! - Mikhail Akopov


___
JBoss-user mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-user



Re: [JBoss-user] database access using Datasource in stateless session bean

2001-06-24 Thread danch

It's basically the same as getting the datasource from within a BMP 
entity bean:

declare a resource-ref in ejb-jar.xml
(unless you're using JBoss defaultDS) Map a resourcemanager to your 
datasource and the resource-ref to that resourcemanager in jboss.xml 
(see jboss.dtd)
Write your bean to look up the datasource at the name 
"java:comp/env/"+the res-ref-name you specified in ejb-jar.xml (you 
should name it starting with jdbc, like "jdbc/MyDataSource")
get a connection
perform JDBC stuff
in a finally block, close all resultsets, statements, and connections 
(in that order, to be paranoid)

Sorry I don't have an example right now, but if you look at the typical 
BMP example, you should be able to get it.

-danch


felix wrote:

> where can I find an example of stateless accessing to a database by a
> datasource? I haven't found any example
> If anybody can send me a example or tell me where is, It would be
> appreciated.
> 
> Thanks in advance
> 
> 
> ___
> JBoss-user mailing list
> [EMAIL PROTECTED]
> http://lists.sourceforge.net/lists/listinfo/jboss-user



___
JBoss-user mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-user



[JBoss-user] Help with running JBoss on Solaris, Sparc

2001-06-24 Thread Devraj Mukherjee

Hi All,

I am trying to Run JBoss on Solaris, everything works fine except the JSPs. 
Try out the JSP examples at http://farrer.csu.edu.au:8080/examples/jsp/ and 
see if you can give me any pointers.

Thank you.

Devraj


___
JBoss-user mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-user



Re: [JBoss-user] Limiting the number of instances of Stateful Session Beans

2001-06-24 Thread Mikhail Akopov

Let me suppose that you are going wrong way.

First, what you need seems more the 'singleton counter' problem than bean
container problem. You may check corresponding threads to solve problem in
such a direction. IMHO the best solution is to use JNDI+RMI (look at Roman's
'Mastering EJBs, p406)

Second, trying to change container parameters to solve application problem
may intersect with another application in the same container.  Limiting the
number of bean instances may have influence on caontainer perfomance.

Third, keep in mind that solution sholud be portable and scalable. Limiting
the number of bean instances won't work in multi-container configurations
:-(

Vale! - Mikhail Akopov

- Original Message -
From: "Scott Stanley" <[EMAIL PROTECTED]>
To: "jboss-users" <[EMAIL PROTECTED]>
Sent: Wednesday, June 20, 2001 8:57 PM
Subject: [JBoss-user] Limiting the number of instances of Stateful Session
Beans


> We need to be able to limit the number of instances of a stateful
> session bean to control the number of active sessions and we are not
> sure if the container supports this.  We have been digging through the
> documentation and the configuration files and what we have found is,
>
> 1) We are able to locate controls to set the minimum and maximum
> size of the bean cache as a whole.
> 2)  We can define the class which acts as the instance cache for
> the stateful session beans.
>
> But, we have not found any controls to limit the number of instances.
> Can anyone tell us if it possible to actually limit the number of
> instances or is it only possible to limit the number of the cached
> instances?  The implication being that there can be unlimited number of
> passivated beans.
>
> Scott & Frederic
>
>
> __
> Do You Yahoo!?
> Get personalized email addresses from Yahoo! Mail
> http://personal.mail.yahoo.com/
>
> ___
> JBoss-user mailing list
> [EMAIL PROTECTED]
> http://lists.sourceforge.net/lists/listinfo/jboss-user


___
JBoss-user mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-user



[JBoss-user] JAAS timeout

2001-06-24 Thread Matt Vincent


Does anyone know how to set a default timeout period for JAAS logins?

Thank you,

Matt Vincent

___
JBoss-user mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-user



[JBoss-user] Problem with classloader, servlets, and EARs.

2001-06-24 Thread Robert Watkins

I'm hoping someone can shed some light on a problem I'm having. I have a EAR
structured like somewhat this: (names changed to protect the innocent)

myApp.ear
  |--- myLib.jar
  | |-- myServlet.class
  |
  |--- myWeb.war
|-- WEB-INF/web.xml
|-- WEB-INF/classes/myClass.class


When myServlet.class loads, it tries to instantiate (by reflection) an
instance of myClass. However, it gets a ClassNotFound exception.

My tentative guess at what's going on is that myServlet is being found by
the classloader for the EAR. This doesn't have access to the contents of the
WAR file, so it doesn't see the web classes. This implies that I need to get
hold of the classloader for the web-application.

Does anyone have any idea on how to do this? I'm stuck.

(Yes, the code works fine if I move myClass.class out to myLib.jar, or if I
move myServlet.class into the WAR. However, for various reasons, I don't
want to do that)

Robert

-- 
Robert Watkins
Software Engineer

QSI Payments
E-Payments Infrastructure - Secure Payments Solutions.
__

Email:   [EMAIL PROTECTED]
Tel:   +61 7 3210 2522
DID:   +61 7 3224 9728
Fax:   +61 7 3210 2566
URL:   www.qsipayments.com
Address:  Level 21
  300 Adelaide Street
  Brisbane
  Qld 4000

**This message or any part of it is intended solely for the named **
**addressee and contains privileged and confidential information. **
**  If you receive this message in error please notify QSI Payments by**
**   replying to the sender and removing the message from your computer.  **

 

___
JBoss-user mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-user



RE: [JBoss-user] again hypersonic

2001-06-24 Thread Kevin O'Neill

Boris,

I've been using iSQLViewer (http://isql.sourceforge.net/index.html) to
view the contents of both Hypersonic (including the one embedded in
JBoss) and PostgreSQL databases.

k.


___
JBoss-user mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-user



Re: [JBoss-user] Is it possible to have something "cached" in EJBwithout storing it in the DB?

2001-06-24 Thread Mikhail Akopov

> The problem with session bean is, as far as I understand, every session
> is unique. So if I calculate the state in one session, then it won't be
> accessible next time I invoke the session bean, although the data has
> not changed. I can never get to the same session bean again, which
> defeats the purpose of caching.
You may use Handle to have access to stateful (and every other) bean at the
next user session. The thing you have to provide is long enough timeout to
let that bean wait for the next call.

Hope this will help.

Vale! - Mikhail Akopov


___
JBoss-user mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-user



Re: [JBoss-user] Ant

2001-06-24 Thread Scott M Stark

Look at the jbosstest cvs module ant build scripts. There are examples there.

- Original Message - 
From: "Hunter Hillegas" <[EMAIL PROTECTED]>
To: "JBoss 2" <[EMAIL PROTECTED]>
Sent: Sunday, June 24, 2001 3:37 PM
Subject: [JBoss-user] Ant


> I've been using Ant with my JSP+Servlet projects and I'm trying to
> transition it to my work with EJBs. The only EJB related tasks seem to be
> associated with WebLogic...
> 
> Is anyone using Ant with JBoss to build the beans, package a WAR, create an
> EAR?
> 
> Hunter
> 
> 
> ___
> JBoss-user mailing list
> [EMAIL PROTECTED]
> http://lists.sourceforge.net/lists/listinfo/jboss-user
> 


___
JBoss-user mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-user



[JBoss-user] Ant

2001-06-24 Thread Hunter Hillegas

I've been using Ant with my JSP+Servlet projects and I'm trying to
transition it to my work with EJBs. The only EJB related tasks seem to be
associated with WebLogic...

Is anyone using Ant with JBoss to build the beans, package a WAR, create an
EAR?

Hunter


___
JBoss-user mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-user



Re: [JBoss-user] again hypersonic

2001-06-24 Thread Werner Ramaekers

Boris,

go to  http://prdownloads.sourceforge.net/hsqldb/hsql_143.zip
and download the zip file with hypersonic.
unzip it, go to the demo folder and launch the
org.hsql.util.DatabaseManager (look at the memorydbmanager.html source)
and connect to the in memory db that is running when jBoss is running.
(settings can be found in jboss.jcml)

Werner


Boris Garbuzov wrote:

> I can not rid of Column not found error. Some column JBoss does not want to accept 
>as a primary key
> in spite of renaming and retyping it (I tried to avoid forbidden types and reserved 
>names). I would
> like to observe tables in Hypersonic created and also kill old repository. Can you 
>please tell me
> 1. where Hypersonic keeps its data file and
> 2. how to get a client console tool to easily see database contents (execute 
>queries)?
> -
> [JAWS] java.sql.SQLException: Column not found: HUETA in statement [INSERT INTO 
>OrderEntity
> (customerName,hueta,cartBean,isDelivered,sessionId) VALUES
> 
>('myCustomerName',NULL,'aced0005737200196a6176612e726d692e4d61727368616c6c65644f626a6563747cbd1e97ed63fc3e020003490004686173685b00086c6f6342797465737400025b425b00086f626a427974657371007e00017870ae19ac31757200025b42acf317f8060854e002787000c4aced000574004f66696c653a2f443a2f4a426f73732d322e322e325f546f6d6361742d332e322e322f6a626f73732f746d702f6465706c6f792f44656661756c742f636172742e6561722f656a62313031302e6a6172740014687474703a2f2f554b5241494e453a383038332f71007e000174004f66696c653a2f443a2f4a426f73732d322e322e325f546f6d6361742d332e322e322f6a626f73732f746d702f6465706c6f792f44656661756c742f636172742e6561722f656a62313031302e6a61727571007e0003014caced000573720008436172744265616e9c1b719cb3d97aba0200014c000e70726f6475637442756e636865737400124c6a6176612f7574696c2f566563746f723b7870737200106a6176612e7574696c2e566563746f72d9977d5b803baf010200034900116361706163697479496e6372656d656e7449000c656c656d656e74436f756e745b000b656c656d656e74446174617400135b4c6a6176612f6c616e672f4f626a6563743b7871757200135b4c6a6176612e6c616e672e4f626a6563743b90ce589f1073296c02787a7372001050726f6475637442756e63684265616ee3e752afd8ca334902000346000570726963654900087175616e746974794c000b70726f647563744e616d657400124c6a6176612f6c616e672f537472696e673b78704094cccd000774000f6f642031707070707070707070',FALSE,'mySessionId')]
>
> ___
> JBoss-user mailing list
> [EMAIL PROTECTED]
> http://lists.sourceforge.net/lists/listinfo/jboss-user

--
---
crypto : One who covertly supports a certain doctrine, group, or party.
  
---



___
JBoss-user mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-user



Re: [JBoss-user] Simple Question - Please Assist

2001-06-24 Thread Vinay Menon

Please make sure that you have the jars under JBOSS_HOME/client in your
client's classpath. The class you mentioned is in jbosssx-client.jar  I
believe.

Vinay

> Ray Grieselhuber wrote:
> 
> Hi,
> I asked a question the other day, and I have not received any
> response. I really think it will be an easy question for someone to
> answer if they have successfully set up a new install of JBoss.
> I will repeat my question below. If something is not clear, please
> indicate.
> 
> I am trying to run the Interest Bean example.
> I got everything to deploy with no problem, but when I
> try to run the client, I got the following error:
> Exception in thread "main"
> java.lang.NoClassDefFoundError:
> org/jboss/security/SecurityAssociation
> 
> To save some time, let me tell you what I already have
> done:
> 1. I have checked the mailing lists .The only related
> message I could fing was where someone was getting the
> same message, but this problem was due to upgrade
> issues. I am not migrating, this is a first install.
> 
> 2. Just to be safe, I have already read the migration
> instructions, and yes I have all of the jar files in
> the client side.
> 
> Thanks,
> Ray Grieselhuber

___
JBoss-user mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-user



[JBoss-user] Simple Question - Please Assist

2001-06-24 Thread Ray Grieselhuber



Hi, 
I asked a question the other day, and I have not 
received any response. I really think it will be an easy question for someone to 
answer if they have successfully set up a new install of JBoss. 

I will repeat my question below. If something is 
not clear, please indicate. 
 
I am trying to run the Interest 
Bean example. I got everything to deploy with no problem, but when Itry 
to run the client, I got the following error:Exception in thread 
"main"java.lang.NoClassDefFoundError:org/jboss/security/SecurityAssociationTo 
save some time, let me tell you what I already havedone: 1. I have 
checked the mailing lists .The only relatedmessage I could fing was where 
someone was getting thesame message, but this problem was due to 
upgradeissues. I am not migrating, this is a first install. 2. Just 
to be safe, I have already read the migrationinstructions, and yes I have 
all of the jar files inthe client side. Thanks, Ray 
Grieselhuber


[JBoss-user] again hypersonic

2001-06-24 Thread Boris Garbuzov

I can not rid of Column not found error. Some column JBoss does not want to accept as 
a primary key
in spite of renaming and retyping it (I tried to avoid forbidden types and reserved 
names). I would
like to observe tables in Hypersonic created and also kill old repository. Can you 
please tell me
1. where Hypersonic keeps its data file and
2. how to get a client console tool to easily see database contents (execute queries)?
-
[JAWS] java.sql.SQLException: Column not found: HUETA in statement [INSERT INTO 
OrderEntity
(customerName,hueta,cartBean,isDelivered,sessionId) VALUES
('myCustomerName',NULL,'aced0005737200196a6176612e726d692e4d61727368616c6c65644f626a6563747cbd1e97ed63fc3e020003490004686173685b00086c6f6342797465737400025b425b00086f626a427974657371007e00017870ae19ac31757200025b42acf317f8060854e002787000c4aced000574004f66696c653a2f443a2f4a426f73732d322e322e325f546f6d6361742d332e322e322f6a626f73732f746d702f6465706c6f792f44656661756c742f636172742e6561722f656a62313031302e6a6172740014687474703a2f2f554b5241494e453a383038332f71007e000174004f66696c653a2f443a2f4a426f73732d322e322e325f546f6d6361742d332e322e322f6a626f73732f746d702f6465706c6f792f44656661756c742f636172742e6561722f656a62313031302e6a61727571007e0003014caced000573720008436172744265616e9c1b719cb3d97aba0200014c000e70726f6475637442756e636865737400124c6a6176612f7574696c2f566563746f723b7870737200106a6176612e7574696c2e566563746f72d9977d5b803baf010200034900116361706163697479496e6372656d656e7449000c656c656d656e74436f756e745b000b656c656d656e74446174617400135b4c6a6176612f6c616e672f4f626a6563743b7871757200135b4c6a6176612e6c616e672e4f626a6563743b90ce589f1073296c02787a7372001050726f6475637442756e63684265616ee3e752afd8ca334902000346000570726963654900087175616e746974794c000b70726f647563744e616d657400124c6a6176612f6c616e672f537472696e673b78704094cccd000774000f6f642031707070707070707070',FALSE,'mySessionId')]


___
JBoss-user mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-user



Re: [JBoss-user] user identity to the database question

2001-06-24 Thread Scott M Stark

Not unless you require security so that a user has to be authenticated for
access to use the Entity in which case the caller is available via the
EJBContext.getCallerPrincipal().

- Original Message - 
From: "Glenn Harris" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Sunday, June 24, 2001 2:04 PM
Subject: [JBoss-user] user identity to the database question


> Currently, I am building a prototype that has a requirement that the
> database knows who is access a row in the table. This arrangement is so that
> we can audit who creates and who last updates a record. I am using version
> 2.2 of JBOSS running on Windows NT. The database is a Sybase database and
> their JDBC drivers. When a row is either inserted or updated, the identity
> seen by the database is that given to initially create the pool. Is there a
> way to get the identity of the user invoking the entity bean to be passed
> onto the database?
> 
> Any help would be greatly appreciated, thank you.
> 
> 
> ___
> JBoss-user mailing list
> [EMAIL PROTECTED]
> http://lists.sourceforge.net/lists/listinfo/jboss-user
> 


___
JBoss-user mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-user



AW: [JBoss-user] who can state it clear about primitives?

2001-06-24 Thread Zobel, Stefan

> 1. Can I use primitive arguments and return types in remote  interface
methods?
Yes, but it may not work with JDK 1.3 (use 1.2.2 or 1.3.1).

> 2. As persistent fields?
Also yes.

> 3. As a primary key?
Must be a Java class as far as I remember (EJB 1.0/EJB 1.1).

Stefan

> -Ursprungliche Nachricht-
> Von: Boris Garbuzov [mailto:[EMAIL PROTECTED]]
> Gesendet: Sonntag, 24. Juni 2001 22:36
> An: [EMAIL PROTECTED]
> Betreff: [JBoss-user] who can state it clear about primitives?
> 
> 
> I think, it is time to ask a final answer about usage of 
> primitives. In RMI it was
> not clear too. I read, I can not use them in remote 
> interfaces with rmiregistry, but
> in practice it worked, and other people confirmed it. If it depends on
> implementation, let us just talk about JBoss.
> 1. Can I use primitive arguments and return types in remote 
> interface methods?
> 2. As persistent fields?
> 3. As a primary key and its subfields? And what would be an 
> XML tag if yes? Does the
> tag  exist? (it was a recommendation of my EJB 
> course instructor,
> perhaps it exists in Orion).
> 
> 

___
JBoss-user mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-user



Re: [JBoss-user] Distributed MDB & JMS resouces inside of beans

2001-06-24 Thread Peter Antman

On Thu, 21 Jun 2001, Jason Dillon wrote:

> I found the problem, well I solved my problem is a better way to put it.
> The session bean (stateful) which I was using to send messages from was
> creating a session in the ejbCreate() method, then actually used in another.
> 
> I was assuming that the container would "do the right thing" in this case,
> but perhaps it is not supposed to do here.  I updated the bean to create the
> session in the method from which it was used and it is much happier now.
> 
> I did run into some other problems along the way, like trying to start() or
> close() connections.  But at this point I have everything working again with
> most of the JMS usage going through the JMS RA.  There is one bit that needs
> to be re-architected into a bean so it can also participate in the TX, but
> that can wait.
> 
> Thank you for the time you spent with the example below, this was exactly
> what I was looking for.


Great that it worked. Any feedback on the jms-ra stuff is wellcomed, since
it is a non standard way of using the two standards (connector and JMS).
Since you are not allowed to use asynchronous stuff with the connector I
did not think that start was applyable, but we may have to rethink that.

//Peter 

 > 
> --jason
> 
> 
> On Thu, 21 Jun 2001, Peter Antman wrote:
> 
> > Hi again Jason,
> > I did actually have some time to make a test, and it works fine for me.
> > (This will be integreated into the new manual chapter I will be writing
> > during the summer).
> >
> > Here is al my setups, with the remote machine beeing
> > linutv1.annons.dn.se (its NOT accessable)
> >
> > in jboss.jcml:
> >
> > 
> >   name=":service=JMSProviderLoader,name=MyRemoteLoader">
> > MyRemoteProvider
> >  linutv1.annons.dn.se:1099
> > name="ProviderAdapterClass">org.jboss.jms.jndi.JBossMQProvider
> >   
> >
> > 
> >>  name="JCA:service=ConnectionFactoryLoader,name=RemoteJmsXA">
> > RemoteJmsXA
> > JCA:service=RARDeployer
> > JMS Adapter
> > MinervaXACMFactory
> > 
> > 
> > 
> >   JmsProviderAdapterJNDI=java:MyRemoteProvider
> > 
> >   # Pool type - uncomment to force, otherwise it is the default
> >   #PoolConfiguration=per-factory
> >
> >   # Connection pooling properties - see
> >   # org.opentools.minerva.pool.PoolParameters
> >   MinSize=0
> >   MaxSize=10
> >   Blocking=true
> >   GCEnabled=false
> >   IdleTimeoutEnabled=false
> >   InvalidateOnError=false
> >   TrackLastUsed=false
> >   GCIntervalMillis=12
> >   GCMinIdleMillis=120
> >   IdleTimeoutMillis=180
> >   MaxIdleTimeoutPercent=1.0
> > 
> >
> > 
> > name="PrincipalMappingClass">org.jboss.resource.security.ManyToOnePrincipalMapping
> > 
> > 
> >   
> >
> >
> > In jboss.xml:
> > 
> >
> > 
> >  false
> >   
> > 
> >   topicfactoryref
> >   java:/RemoteJmsXA
> > 
> > 
> >   topicref
> >   
>jnp://linutv1.annons.dn.se:1099/topic/testTopic
> > 
> > 
> >
> >  
> >
> >  TopicHello
> >  TxTopicHello
> >  Standard Stateless SessionBean
> >   
> >jms/MyTopicConnection
> >topicfactoryref
> >  
> >  
> >jms/TopicName
> >topicref
> >  
> >
> >  
> > 
> >
> > Observe the  here, not url.
> >
> > ejb-jar (actually nothing particular)
> > 
> >
> > 
> >  Queue Publisher
> >  PublisherBean
> >  
> >
> >  TopicHello
> >  TopicHello
> >  org.jboss.docs.jms.ra.interfaces.HelloHome
> >  org.jboss.docs.jms.ra.interfaces.Hello
> >  org.jboss.docs.jms.ra.bean.TopicHelloBean
> >  Stateless
> >  Container
> >  
> > A Topic ConnectionFactory
> > jms/MyTopicConnection
> > javax.jms.TopicConnectionFactory
> > Container
> >  
> >  
> > A Topic 
> > jms/TopicName
> > javax.jms.Topic
> > Container
> >  
> >
> >  
> >  
> >
> >
> >
> > And the bean:
> >
> > package org.jboss.docs.jms.ra.bean;
> >
> > import java.rmi.RemoteException;
> > import java.util.*;
> > import javax.ejb.SessionBean;
> > import javax.ejb.SessionContext;
> > import javax.ejb.EJBException;
> > import javax.naming.*;
> > import javax.jms.*;
> >
> > import org.jboss.docs.jms.ra.interfaces.*;
> >
> >
> > public class TopicHelloBean implements SessionBean {
> >
> > private static final String CONNECTION_JNDI = 
>"java:comp/env/jms/MyTopicConnection";
> > private static final String TOPIC_JNDI = "java:comp/env/jms/TopicName";
> >
> > private SessionContext ctx = null;
> > private Topic topic = null;
> > private TopicConnection topicConnection = null;
> >
> > public TopicHelloBean() {
> > }
> >
> > public void setSessionContext(SessionContext ctx) 

[JBoss-user] user identity to the database question

2001-06-24 Thread Glenn Harris

Currently, I am building a prototype that has a requirement that the
database knows who is access a row in the table. This arrangement is so that
we can audit who creates and who last updates a record. I am using version
2.2 of JBOSS running on Windows NT. The database is a Sybase database and
their JDBC drivers. When a row is either inserted or updated, the identity
seen by the database is that given to initially create the pool. Is there a
way to get the identity of the user invoking the entity bean to be passed
onto the database?

Any help would be greatly appreciated, thank you.


___
JBoss-user mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-user



[JBoss-user] who can state it clear about primitives?

2001-06-24 Thread Boris Garbuzov

I think, it is time to ask a final answer about usage of primitives. In RMI it was
not clear too. I read, I can not use them in remote interfaces with rmiregistry, but
in practice it worked, and other people confirmed it. If it depends on
implementation, let us just talk about JBoss.
1. Can I use primitive arguments and return types in remote interface methods?
2. As persistent fields?
3. As a primary key and its subfields? And what would be an XML tag if yes? Does the
tag  exist? (it was a recommendation of my EJB course instructor,
perhaps it exists in Orion).





technically an rmi/iiop type... serializeable class. Long would work... long
wont.


- Original Message -
From: Vinay Menon
To: [EMAIL PROTECTED]
Sent: Saturday, June 23, 2001 3:33 PM
Subject: Re: [JBoss-user] primitive primary key description


Culprit is long [the one you have flagged].
Needs to be Java classes I believe.

Vinay

- Original Message -
From: Boris Garbuzov
Sent: Saturday, June 23, 2001 8:06 PM
To: [EMAIL PROTECTED]
Subject: [JBoss-user] primitive primary key description

Sorry for not digging into DTDs first. I heard, to make primary key
primitive, one has to change tag  to , but it
does not work. But it does not work. What is a solution?
-
ejb-jar.xml -
creationTime
creationTime

long
--server log -
[Container factory] org.jboss.ejb.DeploymentException: Error in ejb-jar.xml
for Entity Bean OrderEntity: expected one prim-key-class tag





___
JBoss-user mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-user



Re: [JBoss-user] Accessing EJBs from a custom service.

2001-06-24 Thread Scott M Stark

You have to place the ejb interfaces and associated classes into a
jar and load it with a URLClassLoader created by your mbean to isolate
the mbean's use of the ejb from the deployer so that redeployment works.

- Original Message - 
From: "Victor M." <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Sunday, June 24, 2001 12:02 AM
Subject: [JBoss-user] Accessing EJBs from a custom service.


> Hello,
> 
> I need to add a custom service (MBean). This MBean must be able to access 
> (instanciate) the EJBs which are hosted on JBoss server itself.
> My MBean service starts correctly, but when attempting to instanciate an EJB 
> (the example "interest" bean) it fails with exception:
> 
> javax.naming.CommunicationException.  Root exception is [Default] 
> java.lang.ClassNotFoundException: com.web_tomorrow.interest.InterestHome
> [Default]   at javax.management.loading.MLet.findClass(MLet.java:800
> 
> 
> Instanciating a bean from a "normal" Java client works perfectly.
> Also, when I add the interest EJB to JBOSS_CLASSPATH in run.bat, the bean 
> can be accessed from the service. However, in this case, the server must be 
> restarted when I deploy new beans  and want them to be accessible from the 
> service.(no "hot deploy").
> 
> My questions are:
> 1) Is it possible to access the hosted EJBs from a service (MBean)
> without putting it explicitly on the classpath and losing "hot deploy"?
> 2) If yes, how should I do it?
> 
> Any help is greatly appreciated.
> Thank you,
> 
> Victor.
> 



___
JBoss-user mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-user



Re: [JBoss-user] CMP and DB Pools

2001-06-24 Thread danch

See the documentation on JAWS at www.jboss.org. You need a jaws.xml with 
a datasource and a type-mapping element.

Hiep Luong wrote:

> Where do I specify which connection pool to use for CMP beans or does it
> always use the DefaultDS pool in jboss.jcml?
> 
> thanks,
> 
> Hiep
> 
> ___
> JBoss-user mailing list
> [EMAIL PROTECTED]
> http://lists.sourceforge.net/lists/listinfo/jboss-user



___
JBoss-user mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-user



Re: [JBoss-user] How to specify resource db in cmp entity bean

2001-06-24 Thread danch

You need a jaws.xml with  and  elements. See 
the JAWS docs at www.jboss.org

Jordi Fernandez wrote:

> -BEGIN PGP SIGNED MESSAGE-
> Hash: SHA1
> 
> 
> I'm trying to install a cmp entity bean using mysql db. I don't know how
> to specify in ejb-jar.xml that I would like to use mySQL as db. I have
> mysql configured in jboss.jcml:
>   


___
JBoss-user mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-user



Re: [JBoss-user] Session bean instead of entity bean

2001-06-24 Thread Zobel, Stefan

Hi Marek,

> Using stateless session beans for database querying gave the best
> performance results. The worst results I reached with CMP Entity bean.

We got the same results (though we did no tests with JBoss).

> We have quite complex database entity model (about 200 tables) and we
almost
> always need more complex joins to obtain the required results.

Our situation is the same. Since we have to support different app servers
and don't have OR mapping tool which works with all of them, using CMP is
almost impossible.

> According to this we would like to model the most of our bussines methods
> using session beans (mostly stateless) in connection to DAO objects for db
> manipulation.

We use the same approach and it works fine. The main drawback is, that much
more coding is needed.

> May be I do not see any other advantage of using entity bean (except
caching
> the often used data) in comparison to session bean.

I agree with that.

> Isn't the session bean very good alternative for entity bean in the
complicated 
> database entity model?

We are using that same approach for 10 months now and didn't experience any
real
drawbacks.

Greetings,
Stefan



___
JBoss-user mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-user



Re: [JBoss-user] Accessing EJBs from a custom service.

2001-06-24 Thread Victor M.

Hi Vinay,

I followed the examples on that page...Basically, everything works fine 
except that the EJB does not seem to be on the classpath when accessed from 
the custom service via JNDI.

Thanks for your help,
Victor.


>From: "Vinay Menon" <[EMAIL PROTECTED]>
>Reply-To: [EMAIL PROTECTED]
>To: <[EMAIL PROTECTED]>
>Subject: Re: [JBoss-user] Accessing EJBs from a custom service.
>Date: Sun, 24 Jun 2001 11:26:12 +0100
>
>Did u check out http://www.jboss.org/documentation/HTML/ch11s45.html
>
>
>- Original Message -
>From: Victor M.
>Sent: Sunday, June 24, 2001 8:16 AM
>To: [EMAIL PROTECTED]
>Subject: [JBoss-user] Accessing EJBs from a custom service.
>
>Hello,
>
>I need to add a custom service (MBean). This MBean must be able to access
>(instanciate) the EJBs which are hosted on JBoss server itself.
>My MBean service starts correctly, but when attempting to instanciate an 
>EJB
>(the example "interest" bean) it fails with exception:
>
>javax.naming.CommunicationException.  Root exception is [Default]
>java.lang.ClassNotFoundException: com.web_tomorrow.interest.InterestHome
>[Default]   at javax.management.loading.MLet.findClass(MLet.java:800
>
>
>Instanciating a bean from a "normal" Java client works perfectly.
>Also, when I add the interest EJB to JBOSS_CLASSPATH in run.bat, the bean
>can be accessed from the service. However, in this case, the server must be
>restarted when I deploy new beans  and want them to be accessible from the
>service.(no "hot deploy").
>
>My questions are:
>1) Is it possible to access the hosted EJBs from a service (MBean)
>without putting it explicitly on the classpath and losing "hot deploy"?
>2) If yes, how should I do it?
>
>Any help is greatly appreciated.
>Thank you,
>
>Victor.
>
>The full exception message:
>
>javax.naming.CommunicationException.  Root exception is [Default]
>java.lang.ClassNotFoundException: com.web_tomorrow.interest.InterestHome
>[Default]   at javax.management.loading.MLet.findClass(MLet.java:800)
>[Default]   at java.lang.ClassLoader.loadClass(Unknown Source)
>[Default]   at java.lang.ClassLoader.loadClass(Unknown Source)
>[Default]   at java.lang.ClassLoader.loadClassInternal(Unknown Source)
>[Default]   at java.lang.Class.forName0(Native Method)
>[Default]   at java.lang.Class.forName(Unknown Source)
>[Default]   at
>sun.rmi.server.MarshalInputStream.resolveProxyClass(Unknown S
>ource)
>[Default]   at
>java.io.ObjectInputStream.inputProxyClassDescriptor(Unknown S
>ource)
>[Default]   at java.io.ObjectInputStream.readObject(Unknown Source)
>[Default]   at java.io.ObjectInputStream.readObject(Unknown Source)
>[Default]   at java.io.ObjectInputStream.inputObject(Unknown Source)
>[Default]   at java.io.ObjectInputStream.readObject(Unknown Source)
>[Default]   at java.io.ObjectInputStream.readObject(Unknown Source)
>[Default]   at java.rmi.MarshalledObject.get(Unknown Source)
>[Default]   at
>org.jnp.interfaces.NamingContext.lookup(NamingContext.java:29
>9)
>[Default]   at
>org.jnp.interfaces.NamingContext.lookup(NamingContext.java:27
>9)
>[Default]   at javax.naming.InitialContext.lookup(Unknown Source)
>[Default]   at JintegraService.start(JintegraService.java:45)
>[Default]   at java.lang.reflect.Method.invoke(Native Method)
>[Default]   at
>com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl
>.java:1628)
>[Default]   at
>com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl
>.java:1523)
>[Default]   at
>org.jboss.util.ServiceControl.start(ServiceControl.java:97)
>[Default]   at java.lang.reflect.Method.invoke(Native Method)
>[Default]   at
>com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl
>.java:1628)
>[Default]   at
>com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl
>.java:1523)
>[Default]   at org.jboss.Main.(Main.java:203)
>[Default]   at org.jboss.Main$1.run(Main.java:107)
>[Default]   at java.security.AccessController.doPrivileged(Native
>Method)
>[Default]   at org.jboss.Main.main(Main.java:103)
>
>_
>Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.
>
>
>___
>JBoss-user mailing list
>[EMAIL PROTECTED]
>http://lists.sourceforge.net/lists/listinfo/jboss-userGet more from the 
>Web.  FREE MSN Explorer download : http://explorer.msn.com

_
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.


___
JBoss-user mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-user



Re: [JBoss-user] JBossCX, deploying resources using external jars

2001-06-24 Thread Toby Allsopp

On Sun, Jun 24, 2001 at 05:52:38PM +0200, Hernan Theiler wrote:
> Hello,
> 
> I'm building a resource adapter using classes in some external jars.
> When deploying, the JBoss server gives an exception for the missing classes (that's 
>ok), but I couldn't find a place to tell the deployer where to find the classes.
> 
> Finaly, I added the external jars to the JBOSS_CLASSPATH variable in the RUN.BAT 
>file (I'm working with Win2K) and it worked fine.
> 
> Is there any other way to indicate the deployment path? maybe in some of the control 
>files in the RAR file itself?

Either put the required classes somewhere the server can find them, e.g. by
adding them to the JBOSS_CLASSPATH, putting them in $JBOSS_HOME/lib/ext or
(possibly, I'm not really sure) adding a classpath extension thingy in
jboss.jcml.

These options are good if the classes are required elsewhere in the server,
e.g. by EJBs that use the resource adapter.  If the classes are only required
by the resource adapter implementation then you can put the classes in
the RAR.

Toby.

___
JBoss-user mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-user



RE: [JBoss-user] Brent : jbossmq dir disappearing...

2001-06-24 Thread David Green

I've resorted to using jar for unpacking all jboss distributions. It
solves the problem with directories not having the 'executable' permission
in unix.

David Green

On Sun, 24 Jun 2001, Fei Wang wrote:
> I have unzipped the jboss2.2.1&tomcat3.2.1 on linux.
> The similar problem was there, for some directories locked, such as 
>jboss/bd/jbossmq, tomcat/log.
> After I "chmod" all the directoris, it came to be OK.
>
> Fei Wang


___
JBoss-user mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-user



Re: [JBoss-user] How to publish JSP, Servlets, HTML in JBOSS

2001-06-24 Thread Richard Bottoms

At 10:35 PM 6/24/01 +1000, you wrote:
>Hello all JBoss users,
>
>I am a new JBoss user and was wondering if you can tell me what is the 
>right way of publishing JSPs, Servlets, and HTML files in JBoss. Should one 
>make WAR files with deployment descriptors ??
>
>Devraj


Pick up 'Professional Java Server Programming J2EE Edition.' Very good
deployment docs.


r.b.





___
JBoss-user mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-user



[JBoss-user] load

2001-06-24 Thread Richard Bottoms

Since the question has been raised about the maximum user load of JBoss I'm
in need of some concrete numbers as far as is currently known. 

1. What is the minimum configuration recommended

2. What's the maximum concurrent connections allowed under Linux.

3. Is this affected by processor speed, memory or chip type?

I have a commercial app I want to develop, but I, and I would guess others
need these answers if we are to proceed.


Thanks,
r.b.


 


___
JBoss-user mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-user



Re: [JBoss-user] Apache+Tomcat+JBoss

2001-06-24 Thread Richard Bottoms

At 11:14 AM 6/24/01 +0100, you wrote:
>You might want to consider Jetty (which is a pure Java HTTP Server and
Servlet
>Container) and has been integrated intravm with JBoss.


All I need is a JBoss-Tomcat-Jetty bundle and I'll start using it.


r.b.





___
JBoss-user mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-user



Re: [JBoss-user] Tomcat/Jakarta Struts

2001-06-24 Thread Scott M Stark

Tomcat only appears to pass the standard WEB-INF/lib and WEB-INF/classes
to jasper. Look into why that is on the tomcat side and post a bug report
on the contrib/tomcat EmbededTomcatSX and related classes if you find one.

- Original Message - 
From: "Lewis Henderson" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Sunday, June 24, 2001 8:28 AM
Subject: RE: [JBoss-user] Tomcat/Jakarta Struts


> ...My error...
> 
> I have an EAR containing:-
> 
> /lib/support.jar
> /MyStruts.war
> 
> MyStruts.war uses a manifest.mf to reference the support.jar
> 
> JBoss correctly adds the /lib/support.jar onto the common classpath when the
> WAR is deployedhoweverWhen a JSP is compiled it does not find any
> JARS in the WEB-INF/lib or any classes in the WEB-INF/classes...(Except
> taglibs for some reason!!??)
> 
> This is only a problem when the WAR is in an EAR...If I move the support.jar
> into the WAR and deploy in webapps (not deploy) everything is ok.
> 
> The EAR only works when the *HACK* is applied.
> 
> Somewhere there is a posting saying that there is a classpath problem
> between Tomcat and Jasper...
> 
> Lewis
> 



___
JBoss-user mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-user



RE: [JBoss-user] Tomcat/Jakarta Struts

2001-06-24 Thread Lewis Henderson

...My error...

I have an EAR containing:-

/lib/support.jar
/MyStruts.war

MyStruts.war uses a manifest.mf to reference the support.jar

JBoss correctly adds the /lib/support.jar onto the common classpath when the
WAR is deployedhoweverWhen a JSP is compiled it does not find any
JARS in the WEB-INF/lib or any classes in the WEB-INF/classes...(Except
taglibs for some reason!!??)

This is only a problem when the WAR is in an EAR...If I move the support.jar
into the WAR and deploy in webapps (not deploy) everything is ok.

The EAR only works when the *HACK* is applied.

Somewhere there is a posting saying that there is a classpath problem
between Tomcat and Jasper...

Lewis

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]On Behalf Of Scott M
Stark
Sent: 24 June 2001 04:59
To: [EMAIL PROTECTED]
Subject: Re: [JBoss-user] Tomcat/Jakarta Struts


There are tests of a JSP page accessing classes from WEB-INF/lib/jars
and WEB-INF/classes in the jbosstest module and these work. What
is the use case you have that does not work? Your workaround is not
valid in my opinion. Many people have struts working correctly using
JBoss/Tomcat so one usage problem isn't a valid reason for this hack.

The general way of submitting patches is through the sourceforge patches
page: http://sourceforge.net/tracker/?group_id=22866&atid=376687

- Original Message -
From: "Lewis Henderson" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, June 22, 2001 2:13 AM
Subject: RE: [JBoss-user] Tomcat/Jakarta Struts


> There is a problem between JBoss & Tomcat embedded which means that the
full
> classpath is not being handed on to the JSP's. I have a HACK!!! which adds
> the WEB-INF/classes and WEB-INF/lib/*.jar onto the 'common classpath'. I
am
> not sure if this is a valid thing to do! I have attached the hack...
>
> If anyone can tell me if this is/is not the correct thing to do...please
> either point me in the direction of the REAL bug so that I can go fix
it!!!
>
> Lewis
>
> P.S. Is there a 'recommended' way of offering patches?
>
>



___
JBoss-user mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-user


___
JBoss-user mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-user



[JBoss-user] Oracle CLOBs in JBoss

2001-06-24 Thread felix

I want to use JBoss in Red Hat Linux and Oracle as database.
Is there any problem to use CLOBS with JBoss connection pool?

Thanks in advance.


___
JBoss-user mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-user



[JBoss-user] JBossCX, deploying resources using external jars

2001-06-24 Thread Hernan Theiler



Hello,
 
I'm building a resource adapter using classes in 
some external jars.
When deploying, the JBoss server gives an exception 
for the missing classes (that's ok), but I couldn't find a place to tell the 
deployer where to find the classes.
 
Finaly, I added the external jars to the 
JBOSS_CLASSPATH variable in the RUN.BAT file (I'm working with Win2K) and 
it worked fine.
 
Is there any other way to indicate the deployment 
path? maybe in some of the control files in the RAR file itself?
 
Thanks
Hernán Theiler
 


Re: [JBoss-user] tomcat and jboss and JAAS

2001-06-24 Thread Scott M Stark

To use JAAS the web app has to be bundled as a war with a
security domain defined in a jboss-web.xml descriptor. See:
http://www.jboss.org/documentation/HTML/ch11s83.html

- Original Message - 
From: "Nick Heitz" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Sunday, June 24, 2001 3:37 AM
Subject: [JBoss-user] tomcat and jboss and JAAS


> I've downloaded the default install for the
> JBoss-Tomcat collaboration, but the JAAS that is
> shipped with Jboss doesn't seem to perform
> authentication the way it's supposed to.  The tomcat
> example war file secures a few pages, but JBoss throws
> a "JNDI error: env not bound" error which suggests to
> me that some JNDI binding that is supposed to appear
> in the env namespace isn't happening.  Cna anyone
> point me to an straightforward example of how a tomcat
> servlet or jsp can be secured via JBoss's Secuirty
> Manager?
> 
> Thanks 
> 
> =
> Nicholas Heitz
> [EMAIL PROTECTED]
> 105 W. Stinson
> Chapel Hill, NC  27516
> (919) 929-4493
> 



___
JBoss-user mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-user



Re: [JBoss-user] JBoss-Jetty & jboss/db/jbossmq

2001-06-24 Thread bcd

On Sun, Jun 24, 2001 at 12:14:08PM +0100, Julian Gosnell wrote:
> 
> First one to report the problem fixed gets a FREE copy !
> 
> 
>http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/jboss/binaries/JBoss-2.2.2_Jetty-3.1.RC5-6.tgz

That's an interesting development. WinZip7 now lists the file "dummy"
in the jbossmq directory as a 0-byte file.

It does NOT get extracted however. Time to scrap WinZip methinks.

Does this mean I'm disqualified from the prize? :-(

Cheers
Bent D
-- 
Bent Dalager - [EMAIL PROTECTED] - http://www.pvv.org/~bcd
powered by emacs

___
JBoss-user mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-user



[JBoss-user] Declarative Transactions don't work, please help URGENT !

2001-06-24 Thread Francesco Marchioni




Dear jboss-users
I need to use declarative transactions in my project.
Unfortunately I cannot manage to have my transactions
rolled back when there's an error. So this is
my scenario:
I have a Session bean Stateless with attribute:
Stateless
Container
And 2 Entity beans with attributes:
Container
Required
Container
Required
Now inside the session bean there's a method
that calls the Entity bean create method
void doMusic() {
CD c = (CD)homeCd.create(50);
c.setTitle("Title1");
c.setArtist("Artist1");
Tape t = (Tape)homeTape.create(100);
c.setTitle("Title2");
c.setArtist("Artist2");
}
Now this is the matter- if the second bean (in this case Tape)
fails (because of duplicate Primary Key) then the first create
is NOT rolled back!!! When I issue a ?select? of the CD table
the row is added.
Why it happens so ? I want that both "create" share the same
transaction so I set up tx-Required in both of them.
A last note: I'm using PostgreSql as DB.
I'd be very very grateful if someone gives me an advice.
Thank you very much
Francesco
 


[JBoss-user] How to publish JSP, Servlets, HTML in JBOSS

2001-06-24 Thread Devraj Mukherjee

Hello all JBoss users,

I am a new JBoss user and was wondering if you can tell me what is the 
right way of publishing JSPs, Servlets, and HTML files in JBoss. Should one 
make WAR files with deployment descriptors ??

Devraj


___
JBoss-user mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-user



RE: [JBoss-user] JBoss-Jetty & jboss/db/jbossmq

2001-06-24 Thread Torsten Terp

Hi,

It is working now! Thanks Jules...

^terp



> -Original Message-
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED]]On Behalf Of Julian
> Gosnell
> Sent: Sunday, June 24, 2001 1:14 PM
> To: [EMAIL PROTECTED]
> Subject: [JBoss-user] JBoss-Jetty & jboss/db/jbossmq
> 
> 
> 
> Following all the help I've had with my last release, I have now checked in what I 
>hope is the
> final fix to it. I have put a dummy file into the jboss/db/jbossmq directory.
> 
> If a Windows, WinZip user who was encountering the jboss/db/jbossmq-disappearing 
>problem would
> be kind enough to confirm that this is sorted I shall set the whels in motion for 
>the links on
> the binaries page of the JBoss website to be updated.
> 
> First one to report the problem fixed gets a FREE copy !
> 
> 
>http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/jboss/binaries/JBoss-2.2.2_Jetty-3.1.RC5-6.tgz
> 
> (try clicking on or 'saving as' on the Revision 1.1 link.
> 
> Thanks Guys,
> 
> 
> Jules
> 
> 
> _
> Do You Yahoo!?
> Get your free @yahoo.com address at http://mail.yahoo.com
> 
> 
> ___
> JBoss-user mailing list
> [EMAIL PROTECTED]
> http://lists.sourceforge.net/lists/listinfo/jboss-user
> 
> 


___
JBoss-user mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-user



Re: [JBoss-user] Mail list volume - victim of it's own success?

2001-06-24 Thread Juha Lindfors


We will have a (web) forum based jboss-user list.

-- Juha

At 23:34 23.6.2001 -0400, you wrote:
>(2) Switch to newsgroups so we can have retained threads of conversation.


___
JBoss-user mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-user



Re: [JBoss-user] jboss/db/jbossmq disappearing....

2001-06-24 Thread bcd

On Sat, Jun 23, 2001 at 09:08:09PM -0400, Jim Archer wrote:
> Jules, I use Winzip 8.0. When I open the distrinbution archive, Winzip 
> decompresses the tar ball to a temp directory then shows me the contents. 
> At this point, that directory is missing. So maybe its a Winzip issue? I'm 
> using it on W2K.

You will have to extract it to know for sure. WinZip will never show
empty dirs in the GUI but will extract them.

Cheers
Bent D
-- 
Bent Dalager - [EMAIL PROTECTED] - http://www.pvv.org/~bcd
powered by emacs

___
JBoss-user mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-user



[JBoss-user] JBoss-Jetty & jboss/db/jbossmq

2001-06-24 Thread Julian Gosnell


Following all the help I've had with my last release, I have now checked in what I 
hope is the
final fix to it. I have put a dummy file into the jboss/db/jbossmq directory.

If a Windows, WinZip user who was encountering the jboss/db/jbossmq-disappearing 
problem would
be kind enough to confirm that this is sorted I shall set the whels in motion for the 
links on
the binaries page of the JBoss website to be updated.

First one to report the problem fixed gets a FREE copy !

http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/jboss/binaries/JBoss-2.2.2_Jetty-3.1.RC5-6.tgz

(try clicking on or 'saving as' on the Revision 1.1 link.

Thanks Guys,


Jules


_
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com


___
JBoss-user mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-user



[JBoss-user] Session bean instead of entity bean

2001-06-24 Thread Marek Sedliak

Hi all EJB guru's


I am currently working on the enterprise application, where the performance
is one of the most important factors. I have made some simple performance
tests with JBoss-Tomcat installation and I have found this:
Using stateless session beans for database querying gave the best
performance results. The worst results I reached with CMP Entity bean.

We have quite complex database entity model (about 200 tables) and we almost
always need more complex joins to obtain the required results. Also it is a
nightmare for me to imagine to make any structural changes in the entity
bean (e.g. attribute name or type change).

According to this we would like to model the most of our bussines methods
using session beans (mostly stateless) in connection to DAO objects for db
manipulation. We would like to use entity beans just in the case where it is
worth to cache data outside the database.

May be I do not see any other advantage of using entity bean (except caching
the often used data) in comparison to session bean. Isn't the session bean
very good alternative for entity bean in the complicated database entity
model?


Thnaks for any comments.


Mark
---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.256 / Virus Database: 129 - Release Date: 31.5. 2001


___
JBoss-user mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-user



Re: [JBoss-user] question

2001-06-24 Thread Vinay Menon
Per the spec  The ejb-name element specifies an enterprise bean’s name. This name is assigned by the ejb-jar file producer to name the enterprise bean in the ejb-jar file’s deployment descriptor. The name must be unique among the names of the enterprise beans in the same ejb-jar file. The enterprise bean code does not depend on the name; therefore the name can be changed during the application-assembly process without breaking the enterprise bean’s function. There is no architected relationship between the ejb-name in the deployment descriptor and the JNDI name that the Deployer will assign to the enterprise bean’s home  - Original Message - From: Marek Sedliak Sent: Sunday, June 24, 2001 11:39 AM To: [EMAIL PROTECTED] Subject: RE : [JBoss-user] question  Hi Deanyou can use jboss.xml where u can specify JNDI namespace. In spes - there isjust a recommendation concerning this.MarkIN jboss.xml :      Interest   interest/Interest   ---Outgoing mail is certified Virus Free.Checked by AVG anti-virus system (http://www.grisoft.com).Version: 6.0.256 / Virus Database: 129 - Release Date: 31.5. 2001___JBoss-user mailing list[EMAIL PROTECTED]http://lists.sourceforge.net/lists/listinfo/jboss-userGet more from the Web.  FREE MSN Explorer download : http://explorer.msn.com


Re: [JBoss-user] does JBoss include a JMS provider

2001-06-24 Thread Roy Yip

Hi!

I just start working on the JBossMQ included within the JBoss 2.2.1
package. This should be the JMS provider you're looking for.

"G.L. Grobe" wrote:
> 
> I'm thinking about switching over to JBoss and would like to know if JBoss
> includes a JMS provider, and if so, what state is it in. Most servers I've
> been dealing with have JMS providers needing about another years worth of
> work to do. Fortunately my J2EE app is quite simple with the JMS as it only
> does PTP queueing.
> 
> Any help much appreciated. Please point to docs if their available on how to
> do this w/ JBoss.
> 
> ___
> JBoss-user mailing list
> [EMAIL PROTECTED]
> http://lists.sourceforge.net/lists/listinfo/jboss-user

___
JBoss-user mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-user



[JBoss-user] tomcat and jboss and JAAS

2001-06-24 Thread Nick Heitz

I've downloaded the default install for the
JBoss-Tomcat collaboration, but the JAAS that is
shipped with Jboss doesn't seem to perform
authentication the way it's supposed to.  The tomcat
example war file secures a few pages, but JBoss throws
a "JNDI error: env not bound" error which suggests to
me that some JNDI binding that is supposed to appear
in the env namespace isn't happening.  Cna anyone
point me to an straightforward example of how a tomcat
servlet or jsp can be secured via JBoss's Secuirty
Manager?

Thanks 

=
Nicholas Heitz
[EMAIL PROTECTED]
105 W. Stinson
Chapel Hill, NC  27516
(919) 929-4493


__
Do You Yahoo!?
Get personalized email addresses from Yahoo! Mail
http://personal.mail.yahoo.com/

___
JBoss-user mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-user



Re: [JBoss-user] More Newbie Questions

2001-06-24 Thread Vinay Menon
Hasn't the second line been commented out?! Believe the first line would be enough. The line to use the PortableRemoteObject is an RMI-IIOP thingey. So just session = (Session)new InitialContext().lookup("java:comp/env/mail/MyMail"); would be fine for now.     - Original Message - From: Hunter Hillegas Sent: Saturday, June 23, 2001 11:46 PM To: JBoss 2 Subject: [JBoss-user] More Newbie Questions  I've got another newbie question. I perused the Javadoc and couldn't find ananswer...In the JBoss docs, in the JavaMail section there is some sample code...One part is like this:try {session = (Session)new InitialContext().lookup("java:comp/env/mail/MyMail");InitialContext().lookup(("java:comp/env/mail/MyMail"), Session.class);}The second line won't compile. What does it do? I tried to figure it outbased on the JNDI docs but I'm at a loss.Thanks,Hunter___JBoss-user mailing list[EMAIL PROTECTED]http://lists.sourceforge.net/lists/listinfo/jboss-userGet more from the Web.  FREE MSN Explorer download : http://explorer.msn.com


Re: [JBoss-user] Accessing EJBs from a custom service.

2001-06-24 Thread Vinay Menon
Did u check out http://www.jboss.org/documentation/HTML/ch11s45.html      - Original Message - From: Victor M. Sent: Sunday, June 24, 2001 8:16 AM To: [EMAIL PROTECTED] Subject: [JBoss-user] Accessing EJBs from a custom service.  Hello,I need to add a custom service (MBean). This MBean must be able to access(instanciate) the EJBs which are hosted on JBoss server itself.My MBean service starts correctly, but when attempting to instanciate an EJB(the example "interest" bean) it fails with exception:javax.naming.CommunicationException.  Root exception is [Default]java.lang.ClassNotFoundException: com.web_tomorrow.interest.InterestHome[Default]   at javax.management.loading.MLet.findClass(MLet.java:800Instanciating a bean from a "normal" Java client works perfectly.Also, when I add the interest EJB to JBOSS_CLASSPATH in run.bat, the beancan be accessed from the service. However, in this case, the server must berestarted when I deploy new beans  and want them to be accessible from theservice.(no "hot deploy").My questions are:1) Is it possible to access the hosted EJBs from a service (MBean)without putting it explicitly on the classpath and losing "hot deploy"?2) If yes, how should I do it?Any help is greatly appreciated.Thank you,Victor.The full exception message:javax.naming.CommunicationException.  Root exception is [Default]java.lang.ClassNotFoundException: com.web_tomorrow.interest.InterestHome[Default]   at javax.management.loading.MLet.findClass(MLet.java:800)[Default]   at java.lang.ClassLoader.loadClass(Unknown Source)[Default]   at java.lang.ClassLoader.loadClass(Unknown Source)[Default]   at java.lang.ClassLoader.loadClassInternal(Unknown Source)[Default]   at java.lang.Class.forName0(Native Method)[Default]   at java.lang.Class.forName(Unknown Source)[Default]   atsun.rmi.server.MarshalInputStream.resolveProxyClass(Unknown Source)[Default]   atjava.io.ObjectInputStream.inputProxyClassDescriptor(Unknown Source)[Default]   at java.io.ObjectInputStream.readObject(Unknown Source)[Default]   at java.io.ObjectInputStream.readObject(Unknown Source)[Default]   at java.io.ObjectInputStream.inputObject(Unknown Source)[Default]   at java.io.ObjectInputStream.readObject(Unknown Source)[Default]   at java.io.ObjectInputStream.readObject(Unknown Source)[Default]   at java.rmi.MarshalledObject.get(Unknown Source)[Default]   atorg.jnp.interfaces.NamingContext.lookup(NamingContext.java:299)[Default]   atorg.jnp.interfaces.NamingContext.lookup(NamingContext.java:279)[Default]   at javax.naming.InitialContext.lookup(Unknown Source)[Default]   at JintegraService.start(JintegraService.java:45)[Default]   at java.lang.reflect.Method.invoke(Native Method)[Default]   atcom.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1628)[Default]   atcom.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1523)[Default]   atorg.jboss.util.ServiceControl.start(ServiceControl.java:97)[Default]   at java.lang.reflect.Method.invoke(Native Method)[Default]   atcom.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1628)[Default]   atcom.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1523)[Default]   at org.jboss.Main.(Main.java:203)[Default]   at org.jboss.Main$1.run(Main.java:107)[Default]   at java.security.AccessController.doPrivileged(NativeMethod)[Default]   at org.jboss.Main.main(Main.java:103)_Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.___JBoss-user mailing list[EMAIL PROTECTED]http://lists.sourceforge.net/lists/listinfo/jboss-userGet more from the Web.  FREE MSN Explorer download : http://explorer.msn.com


RE : [JBoss-user] question

2001-06-24 Thread Marek Sedliak

Hi Dean

you can use jboss.xml where u can specify JNDI namespace. In spes - there is
just a recommendation concerning this.

Mark

IN jboss.xml :


  
 
   Interest
   interest/Interest
 
  

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.256 / Virus Database: 129 - Release Date: 31.5. 2001


___
JBoss-user mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-user



Re: [JBoss-user] Apache+Tomcat+JBoss

2001-06-24 Thread Julian Gosnell

Further context to this quote suggests that Linux 2.2 is being discussed.

Firstly, can anyone confirm this from a reliable source - it's the first I've heard of 
it.

Secondly, is this still the case with a 2.4 kernel, in which I thought similar issues 
had been very successfully addressed ?

Thirdly, It would be useful to have dates on documentation, so that it is possible to 
tell when they become stale - if 2.4 does address this (I have no idea), or a better 
Linux JVM has since been released, then it would be helpful to know when this 
statement was made.

Jules



Fei Wang wrote:

> I have found the following at http://www.jboss.org/documentation/HTML/ch10s02.html.
>
> Linux users probably already know that linux does not support real threads. Under 
>heavy load, JBoss will for example crash with 200 concurrent users under linux, 
>whereas it can handle 1000 of them on the same box with Windows 2000. Of course, if 
>you use Apache or Jetty in front of JBoss to handle the thread pooling, this will not 
>be a problem.
>
> So if it is ture, I think that Apache should be a reasonable front part, especially 
>for production use.
>
> Fei Wang
>
> -Original Message-
> From: [EMAIL PROTECTED] 
>[mailto:[EMAIL PROTECTED]]On Behalf Of Guy Rouillier
> Sent: Sunday, June 24, 2001 10:45 AM
> To: [EMAIL PROTECTED]
> Subject: Re: [JBoss-user] Apache+Tomcat+JBoss
>
> Java is an interpreter that reads bytecodes generated by javac (the java
> compiler) and at runtime converts those bytecodes into machine instructions.
> Apache is a natively compiled executable designed for one specific purpose -
> serving web content quickly.  If you create a module that "is" Apache, it
> would have to run under the Java interpreter, and could thus not possibly
> approach the performance of a natively compiled Apache.
>
> Now, you may argue that in the era of 2 GHz CPUs, the difference might
> become unnoticeable.  That is an armchair debate.  By the way, Tomcat
> already comes with a web server built in, so you don't need Apache at all if
> you are content with the functionality and performance of the Tomcat's web
> server.
>
> - Original Message -
> From: "Richard Bottoms" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Friday, June 22, 2001 2:13 AM
> Subject: Re: [JBoss-user] Apache+Tomcat+JBoss
> > My business partner wondered why the goal is  to send static pages out to
> > Apache when it might make more sense to create a module that 'is' Apache
> > inside the JBoss-tomcat space.
>
> ___
> JBoss-user mailing list
> [EMAIL PROTECTED]
> http://lists.sourceforge.net/lists/listinfo/jboss-user
>
> $,²ë®f¢-)à-+-$,²ë®X¬¶Ë(º·~Sàzw­?Ûiÿùb²Û,¢êÜyú+?éÞ·ùb²Û?-+-Swèþ6è²Ë¬er==


_
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com


___
JBoss-user mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-user



Re: [JBoss-user] Transactions problems

2001-06-24 Thread Vinay Menon
To add,     If you need all the methods to commit one shot via the Session bean facade you'd probably specify the transaction for the session bean method as 'RequiresNew' so that the container starts a new transaction for you and the transaction setting for all entity bean as Required so that they blend into the transaction that the session bean created. And hence when all the methods in the entity bean complete and the session bean method returns your transaction would be committed.   Vinay    - Original Message - From: David Jencks Sent: Sunday, June 24, 2001 5:01 AM To: [EMAIL PROTECTED] Subject: Re: [JBoss-user] Transactions problems  HiEach of the methods you call on the atlas bean instance is in its owntransaction, so there are no db changes to roll back in the transaction foryour atlas.fail() call.  If you want several methods on your atlas bean tohappen one after another in just one transaction, you should write asession bean that does this within one method call.  Trying to dotransaction control from outside the ejb container is usually a bad idea:the transaction control is really the main reason for the container to bethere in the first place (imho).david jencksOn 2001.06.23 21:26:46 -0400 Pedro E. Gomez wrote:> Hello.>> I am having a problem with transactions.>> I want to have a client which use differents components at the same time.>> And in some cases i need to use differents methods of a componet. This> last one is which i describe in this message, becouse of is the simple> case.>> The problem that i am having is when the las method fails there is not a> rollback and if i see the DB the changes have been alread made.>>> My client application is like this:>>> public class AtlasClient {> public static void main(String[] args) {> System.setProperty("java.naming.factory.initial",> "org.jnp.interfaces.NamingContextFactory");> System.setProperty("java.naming.provider.url", args[0]);>> try {>>> InitialContext context  = new InitialContext();>  Object ref = context.lookup("pgomez/ejb/Atlas");>  AtlasHome home = (AtlasHome)PortableRemoteObject.narrow(ref,> AtlasHome.class);> Atlas atlas = home.create();>> Country country;> country = atlas.getCountry(1);> country.setUpdateDate(new Date());> atlas.update(country);>> country = new Country();> country.setNombre("Country " + Math.random());> atlas.createCountry(country);>>> atlas.fail();> } catch (NamingException e) {> System.out.println("NamingException");> e.printStackTrace();> } catch (RemoteException e1) {> System.out.println("RemoteException");> e1.printStackTrace();> } catch (CreateException e1) {> System.out.println("CreateException");> e1.printStackTrace();> }> }> }>> The fail method throws a RunTimeException.> When i check the db the changes are there. The component look like this: protected AtlasDAO dao;>> public void init()  {>    dao = new AtlasDAO();> }>> public void destroy() {> dao = null;> }>> public void createCountry(Pais pais) {> dao.createCountry(pais);> }>> public void update(Country country) {> dao.store(country);> }>> public void fail() {> throw new RunTimeException();> }>> public Country getCountry(int id) {> return dao.getCountry(id);> }>>> In each DAO'S method i get the connection and i release the connection.> My DAO looks like this:>> /** DAO Constructor */>> private void AtlasDAO() {> InitialContext context = new InitialContext();> datasource = (DataSource) ic.lookup(JNDINames.ATLAS_DATASOURCE);> }>>> private void getDBConnection () {> dbConnection = datasource.getConnection();> }>> private void closeConnection() {> dbConnection.close();> }>> >> private Country getCountry(int id) throws DAOException {>>> try {> getDBConnection();> .> .> .> } catch (...) {>> } finally {> closeResultSet(rs);> closeStatement(stmt);> closeConnection();> }> } The Atlas descriptor is:   > >   pgomez/ejb/Atlas>   co.com.pragma.pgomez.atlas.ejb.AtlasHome>   co.com.pragma.pgomez.atlas.ejb.Atlas>   co.com.pragma.pgomez.atlas.ejb.AtlasEJB>   Stateless>   Container>>   >   > >   > pgomez/ejb/Atlas> *>   >   > pgomez/ejb/Atlas> Remote> *>   >   > pgomez/ejb/Atlas> Home> *>   >   required> >>    My jboss.jcml is attached.> I only have change the JDBC stuff.>> My DATABase:> Oracle 8.15>> My Driver JDBC> classes12.zip (From oracle)>> My client os:> Windows NT 4.0>>> The jboss os:> It is runnig over solarix>> The jdk:> 1.3 Is possible what i want or not?>> If no why not an if yes how can i do that?>

Re: [JBoss-user] Apache+Tomcat+JBoss

2001-06-24 Thread Julian Gosnell

You might want to consider Jetty (which is a pure Java HTTP Server and Servlet
Container) and has been integrated intravm with JBoss.

For a discussion contrasting the two solutions look at :

http://www.mail-archive.com/jboss-user%40lists.sourceforge.net/thrd2.html

and search down for 'jetty vs tomcat'


Jules

P.S.

I am just about to release a new version which addresses various problems with
the last - this should be available early in the week.




Guy Rouillier wrote:

> Java is an interpreter that reads bytecodes generated by javac (the java
> compiler) and at runtime converts those bytecodes into machine instructions.
> Apache is a natively compiled executable designed for one specific purpose -
> serving web content quickly.  If you create a module that "is" Apache, it
> would have to run under the Java interpreter, and could thus not possibly
> approach the performance of a natively compiled Apache.
>
> Now, you may argue that in the era of 2 GHz CPUs, the difference might
> become unnoticeable.  That is an armchair debate.  By the way, Tomcat
> already comes with a web server built in, so you don't need Apache at all if
> you are content with the functionality and performance of the Tomcat's web
> server.
>
> - Original Message -
> From: "Richard Bottoms" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Friday, June 22, 2001 2:13 AM
> Subject: Re: [JBoss-user] Apache+Tomcat+JBoss
> > My business partner wondered why the goal is  to send static pages out to
> > Apache when it might make more sense to create a module that 'is' Apache
> > inside the JBoss-tomcat space.
>
> ___
> JBoss-user mailing list
> [EMAIL PROTECTED]
> http://lists.sourceforge.net/lists/listinfo/jboss-user


_
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com


___
JBoss-user mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-user



[JBoss-user] database access using Datasource in stateless session bean

2001-06-24 Thread felix

where can I find an example of stateless accessing to a database by a
datasource? I haven't found any example
If anybody can send me a example or tell me where is, It would be
appreciated.

Thanks in advance


___
JBoss-user mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-user



Re: [JBoss-user] Using the Included JavaMail

2001-06-24 Thread Ivan Novick

I believe the properties file is just a default value, you can pass in a
different address with the method call

Ivan

- Original Message -
From: "Hunter Hillegas" <[EMAIL PROTECTED]>
To: "JBoss 2" <[EMAIL PROTECTED]>
Sent: Saturday, June 23, 2001 11:10 AM
Subject: [JBoss-user] Using the Included JavaMail


> I read through the section on using JavaMail in JBoss. I have a need to
have
> the "from" address set programatically, not in the conf file. Can I do
this?
> In the example there is a call to m.setFrom(); but it's not passing
anything
> and the docs indicate that you set that in mail.properties.
>
> Additionally, there is someone's email info in the stock distribution, in
> case anyone wants to make the defaults something more non-specific. :-)
>
> Hunter
>
>
>
> ___
> JBoss-user mailing list
> [EMAIL PROTECTED]
> http://lists.sourceforge.net/lists/listinfo/jboss-user


___
JBoss-user mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-user



Re: [JBoss-user] Mail list volume - victim of it's own success?

2001-06-24 Thread Allen fogleson

Actually how to connect JBoss to oracle is in the docs. I just went through
it and it all appears to be current.

Al

- Original Message -
From: Guy Rouillier <[EMAIL PROTECTED]>
To: JBoss User <[EMAIL PROTECTED]>
Sent: Saturday, June 23, 2001 11:34 PM
Subject: [JBoss-user] Mail list volume - victim of it's own success?


> The following has been tossed out before, but I thought I would raise it
> again anyway.  We are currently at about 200 messages/day on this mailing
> list.  I learn a great deal from these messages - I currently have 253
saved
> for "future reference".  I hopefully also help out a little bit.  But
lately
> I'm feeling like I'm losing the battle to stay on top of this list.  As
> JBoss gets more popular, the volume is likely to continue to grow until no
> one can keep up with it.  How would the group feel about any or all of the
> following?  I will of course bow to the group consensus (or the powers
that
> be) and adjust my reading habits as necessary.
>
> (1) Split the list according to major product subsystems - jms, db,
> connector, security, core, samples, etc.  This would allow us to
diligently
> follow those subsystems where we have some expertise and can therefore
> contribute, and just skim the others.
>
> (2) Switch to newsgroups so we can have retained threads of conversation.
>
> (3) Ask people to volunteer to contribute some time and effort on one of
the
> subsystems split off in (1).  These volunteers would be responsible for
> folding in as much material as possible from the mail list/newsgroup into
> the documentation.   I have experience in the database area, and I've
> personally answered the question "How do I configure Jboss to connect to
> Oracle?" at least a dozen times in the last 2 months.  I would gladly take
> the time to put this into the documentation once and for all to be done
with
> that particular question.  I personally think this item is the most
> important, and that if we do it well, the volume on the list should start
to
> decrease.
>
>
>
>
> ___
> JBoss-user mailing list
> [EMAIL PROTECTED]
> http://lists.sourceforge.net/lists/listinfo/jboss-user


___
JBoss-user mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-user



Re: [JBoss-user] More Newbie Questions

2001-06-24 Thread Allen fogleson

off hand I would say the second line is a narrowing from
javax.rmi.PortableRemoteObject

it should say session =
(Session)PortableRemoteObject.narrow(InitialContext().lookup(("java:comp/env
/mail/MyMail"), Session.class);

Al

- Original Message -
From: Hunter Hillegas <[EMAIL PROTECTED]>
To: JBoss 2 <[EMAIL PROTECTED]>
Sent: Saturday, June 23, 2001 6:37 PM
Subject: [JBoss-user] More Newbie Questions


> I've got another newbie question. I perused the Javadoc and couldn't find
an
> answer...
>
> In the JBoss docs, in the JavaMail section there is some sample code...
>
> One part is like this:
>
> try {
> session = (Session)new
InitialContext().lookup("java:comp/env/mail/MyMail");
> InitialContext().lookup(("java:comp/env/mail/MyMail"), Session.class);
> }
>
> The second line won't compile. What does it do? I tried to figure it out
> based on the JNDI docs but I'm at a loss.
>
> Thanks,
> Hunter
>
>
> ___
> JBoss-user mailing list
> [EMAIL PROTECTED]
> http://lists.sourceforge.net/lists/listinfo/jboss-user


___
JBoss-user mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-user



Re: [JBoss-user] primitive primary key description

2001-06-24 Thread Allen fogleson

technically an rmi/iiop type... serializeable class. Long would work... long
wont.


- Original Message -
From: Vinay Menon
To: [EMAIL PROTECTED]
Sent: Saturday, June 23, 2001 3:33 PM
Subject: Re: [JBoss-user] primitive primary key description


Culprit is long [the one you have flagged].
Needs to be Java classes I believe.

Vinay

- Original Message -
From: Boris Garbuzov
Sent: Saturday, June 23, 2001 8:06 PM
To: [EMAIL PROTECTED]
Subject: [JBoss-user] primitive primary key description

Sorry for not digging into DTDs first. I heard, to make primary key
primitive, one has to change tag  to , but it
does not work. But it does not work. What is a solution?
-
ejb-jar.xml -
creationTime
creationTime

long
--server log -
[Container factory] org.jboss.ejb.DeploymentException: Error in ejb-jar.xml
for Entity Bean OrderEntity: expected one prim-key-class tag



___
JBoss-user mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-user




Get more from the Web. FREE MSN Explorer download : http://explorer.msn.com


___
JBoss-user mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-user



[JBoss-user] startup errors

2001-06-24 Thread G.L. Grobe



I'm moving my apps over to JBoss and have run into 
the following errors. There's actually many, but they're all pretty 
much the same.
 
My *.ear file which I place in the 
~/jboss/deploy dir looks like this.
cais-1.0.ear
   |- 
META-INF   |- cais-1.0-client.jar   |- 
cais-1.0-ejb.jar   |- cais-1.0-web.war   |- 
jdbc7.0-1.2.jar
 From the logs 
--
[J2EE Deployer Default] couldnt add 
./jdbc7.0-1.2.jar to common classpath: 
/u/public/JBoss-2.2.2_Tomcat-3.2.2/jboss/deploy/jdbc7.0-1.2.jar (No such file or 
directory)
*** With the above problem I did put a carriage 
return after the Class-Path in the MANIFEST.MF as the docs say, but didn't 
help.
 
[Verifier] Verifying 
file:/u/public/JBoss-2.2.2_Tomcat-3.2.2/jboss/tmp/deploy/Default/cais-1.0.ear/ejb1003.jar[Verifier]Bean   
:    
com.neuroquest.cais.ejb.entity.build.BuildHome
 
Section: 16.2Warning: The Bean Provider must 
specify the fully-qualified name of the Java class that implements the 
enterprise bean's business methods.
 
*** Not understanding this, I do have the fully 
qualified names in place.