Hello jboss-user-request,

Friday, February 01, 2002, 6:12:16 PM, you wrote:

jurlsn> Send JBoss-user mailing list submissions to
jurlsn>         [EMAIL PROTECTED]

jurlsn> To subscribe or unsubscribe via the World Wide Web, visit
jurlsn>         https://lists.sourceforge.net/lists/listinfo/jboss-user
jurlsn> or, via email, send a message with subject or body 'help' to
jurlsn>         [EMAIL PROTECTED]

jurlsn> You can reach the person managing the list at
jurlsn>         [EMAIL PROTECTED]

jurlsn> When replying, please edit your Subject line so it is more specific
jurlsn> than "Re: Contents of JBoss-user digest..."


jurlsn> Today's Topics:

jurlsn>    1. EmbeddedCatalina and Valves (Robin Cavanaugh)
jurlsn>    2. Re: Several XADataSourceLoaders for just one database (Dmitri Colebatch)
jurlsn>    3. Re: Several XADataSourceLoaders for just one database (Guy Rouillier)
jurlsn>    4. Re: Binding objects into JNDI (Scott M Stark)
jurlsn>    5. RE:  Several XADataSourceLoaders for just one database ([EMAIL PROTECTED])
jurlsn>    6. JBoss as general service container? (jfina)
jurlsn>    7. SSL Redirection Problem (Dan Feltham)
jurlsn>    8. virtual hosts again... (=?iso-8859-2?Q?Jarecsni_J=E1nos?=)
jurlsn>    9. FW: virtual hosts again... (=?iso-8859-2?Q?Jarecsni_J=E1nos?=)
jurlsn>   10. RE: FW: virtual hosts again... (Coetmeur, Alain)
jurlsn>   11. RE: FW: virtual hosts again... (Coetmeur, Alain)
jurlsn>   12. RE: SSL Redirection Problem (Coetmeur, Alain)

jurlsn> --__--__--

jurlsn> Message: 1
jurlsn> From: "Robin Cavanaugh" <[EMAIL PROTECTED]>
jurlsn> To: <[EMAIL PROTECTED]>
jurlsn> Date: Thu, 31 Jan 2002 22:40:31 -0500
jurlsn> Subject: [JBoss-user] EmbeddedCatalina and Valves

jurlsn> Hello,

jurlsn> Has anyone had any luck getting _any_ Valves to work using the
jurlsn> EmbeddedCatalinaServiceSX? Specifically, I am trying to get the
jurlsn> AccessLogValve to work.

jurlsn> I have tried to configure the mbean in jboss.jcml using several variations
jurlsn> on the following theme to no avail, including:

jurlsn> <mbean code="org.jboss.web.catalina.EmbeddedCatalinaServiceSX"
jurlsn> name="DefaultDomain:service=EmbeddedTomcat" >
jurlsn> <attribute name="Port">80</attribute>
jurlsn> <attribute name="Config">
jurlsn>         <Valve className="org.apache.catalina.valves.AccessLogValve"
jurlsn>         prefix="localhost_access_log." suffix=".txt" pattern="common"
jurlsn>         directory="/opt/jboss/jboss/log"/>
jurlsn> </attribute>
jurlsn> </mbean>

jurlsn> ...or...

jurlsn> <mbean code="org.jboss.web.catalina.EmbeddedCatalinaServiceSX"
jurlsn> name="DefaultDomain:service=EmbeddedTomcat" >
jurlsn> <attribute name="Config">
jurlsn>         <Server port="8005" shutdown="SHUTDOWN" debug="0">
jurlsn>         <Service name="Embedded-Tomcat">
jurlsn>         <Connector className="org.apache.catalina.connector.http.HttpConnector"
jurlsn>                 port="80" minProcessors="5" maxProcessors="75"
jurlsn>                 enableLookups="true" redirectPort="8443" acceptCount="10" 
debug="0"
jurlsn> connectionTimeout="60000"/>
jurlsn>                 <Engine name="EmbeddedTC" defaultHost="localhost" debug="0">
jurlsn>                         <Host name="localhost" debug="0" appBase="webapps" 
unpackWARs="true">
jurlsn>                                 <Valve 
className="org.apache.catalina.valves.AccessLogValve"
jurlsn>                                 prefix="localhost_access_log." suffix=".txt" 
pattern="common"
jurlsn>                                 directory="/opt/jboss/jboss/log"/>
jurlsn>                         </Host>
jurlsn>                 </Engine>
jurlsn>         </Service>
jurlsn> </Server>
jurlsn> </attribute>
jurlsn> </mbean>

jurlsn> Any help would be appreciated.

jurlsn> Thanks,

jurlsn> Robin Cavanaugh



jurlsn> --__--__--

jurlsn> Message: 2
jurlsn> From: "Dmitri Colebatch" <[EMAIL PROTECTED]>
jurlsn> To: "Guy Rouillier" <[EMAIL PROTECTED]>,
jurlsn>         <[EMAIL PROTECTED]>
jurlsn> Subject: Re: [JBoss-user] Several XADataSourceLoaders for just one database
jurlsn> Date: Fri, 1 Feb 2002 14:53:36 +1100

jurlsn> is this actually going to be any better than having one pool double the size?  
I'd assume the cost putting the logic on the client
jurlsn> side means you'd be worse off than if you just had a bigger pool to start 
with.?

jurlsn> cheesr
jurlsn> dim


jurlsn> ----- Original Message -----
jurlsn> From: "Guy Rouillier" <[EMAIL PROTECTED]>
jurlsn> To: <[EMAIL PROTECTED]>
jurlsn> Sent: Friday, February 01, 2002 2:20 PM
jurlsn> Subject: Re: [JBoss-user] Several XADataSourceLoaders for just one database


>> Sure, you can have as many pools against one database as you want (realizing
>> that most DBMSs have connection limits.)  Just give each pool a unique name.
>>
>>   <mbean code="org.jboss.jdbc.XADataSourceLoader"
>> name="DefaultDomain:service=XADataSource,name=myDB">
>>     <attribute name="PoolName">myDB</attribute>
>>
>>   <mbean code="org.jboss.jdbc.XADataSourceLoader"
>> name="DefaultDomain:service=XADataSource,name=my2ndDB">
>>     <attribute name="PoolName">my2ndDB</attribute>
>>
>> Everything else would be the same for the two data sources.
>>
>> ----- Original Message -----
>> From: <[EMAIL PROTECTED]>
>> To: <[EMAIL PROTECTED]>
>> Sent: Thursday, January 31, 2002 8:21 AM
>> Subject: [JBoss-user] Several XADataSourceLoaders for just one database
>>
>>
>> > After some not successfully trials, I have a new Idea.
>> >
>> > Is it possible to configure two or more XADataSourceLoader to just one
>> > Database.
>> > As I tried this I've got an
>> > javax.naming.NameAlreadyBoundException.
>> >
>> > I want to configure two or more pools to just one database. So when a
>> > connectionpools hasnt any free connections left for an user, the database
>> user
>> > could be switched to the next pool to reach the database.
>> >
>> > Many Thanks in Advance!
>> > Sjus
>> >
>> > --
>> > GMX - Die Kommunikationsplattform im Internet.
>> > http://www.gmx.net
>> >
>> >
>> > _______________________________________________
>> > JBoss-user mailing list
>> > [EMAIL PROTECTED]
>> > https://lists.sourceforge.net/lists/listinfo/jboss-user
>>
>>
>>
>> _______________________________________________
>> JBoss-user mailing list
>> [EMAIL PROTECTED]
>> https://lists.sourceforge.net/lists/listinfo/jboss-user



jurlsn> --__--__--

jurlsn> Message: 3
jurlsn> From: "Guy Rouillier" <[EMAIL PROTECTED]>
jurlsn> To: <[EMAIL PROTECTED]>
jurlsn> Subject: Re: [JBoss-user] Several XADataSourceLoaders for just one database
jurlsn> Date: Fri, 1 Feb 2002 00:25:48 -0500

jurlsn> I doubt it, but that's what the man asked for.  I'd personally just go with
jurlsn> the bigger pool.

jurlsn> ----- Original Message -----
jurlsn> From: "Dmitri Colebatch" <[EMAIL PROTECTED]>
jurlsn> To: "Guy Rouillier" <[EMAIL PROTECTED]>;
jurlsn> <[EMAIL PROTECTED]>
jurlsn> Sent: Thursday, January 31, 2002 10:53 PM
jurlsn> Subject: Re: [JBoss-user] Several XADataSourceLoaders for just one database


>> is this actually going to be any better than having one pool double the
jurlsn> size?  I'd assume the cost putting the logic on the client
>> side means you'd be worse off than if you just had a bigger pool to start
jurlsn> with.?
>>
>> cheesr
>> dim
>>
>>
>> ----- Original Message -----
>> From: "Guy Rouillier" <[EMAIL PROTECTED]>
>> To: <[EMAIL PROTECTED]>
>> Sent: Friday, February 01, 2002 2:20 PM
>> Subject: Re: [JBoss-user] Several XADataSourceLoaders for just one
jurlsn> database
>>
>>
>> > Sure, you can have as many pools against one database as you want
jurlsn> (realizing
>> > that most DBMSs have connection limits.)  Just give each pool a unique
jurlsn> name.





jurlsn> --__--__--

jurlsn> Message: 4
jurlsn> Reply-To: "Scott M Stark" <[EMAIL PROTECTED]>
jurlsn> From: "Scott M Stark" <[EMAIL PROTECTED]>
jurlsn> To: <[EMAIL PROTECTED]>
jurlsn> Subject: Re: [JBoss-user] Binding objects into JNDI
jurlsn> Date: Thu, 31 Jan 2002 22:36:50 -0800
jurlsn> Organization: JBoss Group

jurlsn> The java:comp/env context is a special read-only context available to J2EE
jurlsn> components that is local to one component. The only information that can
jurlsn> be in there is what you have specified in the deployment descriptors. Use
jurlsn> a different binding name like just "factories/ObjectFactory"

jurlsn> xxxxxxxxxxxxxxxxxxxxxxxx
jurlsn> Scott Stark
jurlsn> Chief Technology Officer
jurlsn> JBoss Group, LLC
jurlsn> xxxxxxxxxxxxxxxxxxxxxxxx
jurlsn> ----- Original Message -----
jurlsn> From: Dan Berger
jurlsn> To: [EMAIL PROTECTED]
jurlsn> Sent: Thursday, January 31, 2002 7:01 PM
jurlsn> Subject: [JBoss-user] Binding objects into JNDI


jurlsn> Greetings.

jurlsn> I'm writing in the hopes that someone on this list can straighten me out on
jurlsn> something - I'm trying to write non app-server specific code, deployable as
jurlsn> part of a .ear, to bind an object into the JNDI tree and I'm having a devil
jurlsn> of a time.

jurlsn> I've read just about everything I can get my hands on - including the JNDI
jurlsn> tutorial at Sun - and so far, no dice.

jurlsn> I've even sifted through the jboss code a bit hoping to glean the secrets
jurlsn> from it - and still, no progress.

jurlsn> To be more specific - what I want to do is allow a factory object to bind
jurlsn> itself into the JNDI tree during ear deployment - so that application code
jurlsn> in that ear can do something like this:

jurlsn> Context ctx = new InitialContext();
jurlsn> ObjectFactory = ( ObjectFactory ) obj.lookup(
jurlsn> "java:/comp/env/factories/ObjectFactory" );
jurlsn> CreatedObject = ObjectFactory.newInstance( "someArg" );

jurlsn> Where ObjectFactory is just a run-of-the-mill Java class.

jurlsn> I've tried various things - including having ObjectFactory implement
jurlsn> Serializable, Referenceable, and even ObjectFactory.  I've tried (re)binding
jurlsn> it into the tree from a static block and from a servlet/jsp.  In either
jurlsn> case, I get an exception "Factory not bound."

jurlsn> I've tried adding a jndi.properties file to the jar containing the class -
jurlsn> only to discover (by code inspection) that JBoss only looks for
jurlsn> jndi.properties files once - on startup; not on each application deployment.

jurlsn> Any suggestions or examples would be greatly appreciated.

jurlsn> Cheers.
jurlsn> --
jurlsn>    Dan Berger [[EMAIL PROTECTED]]

jurlsn>    "We are what we repeatedly do.  Excellence, then, is not an act,
jurlsn>     but a habit."
jurlsn>                                   -- Aristotle

jurlsn>    "It comes in pints?!"
jurlsn>       -- Pippin



jurlsn> --__--__--

jurlsn> Message: 5
jurlsn> Date: Fri, 1 Feb 2002 13:49:42 +0100 (MET)
jurlsn> From: [EMAIL PROTECTED]
jurlsn> To: [EMAIL PROTECTED]
jurlsn> Subject: RE:  [JBoss-user] Several XADataSourceLoaders for just one database

jurlsn> Yeah, I've got only a naming error, now its working with these two pools.

jurlsn> I try to increase the DatabaseConnectionpoolsize dynamically, during the
jurlsn> server is running. But all my trials doesnt really work, nothing were effected.

jurlsn> So I thought to make two pools, so that blocked connections could be
jurlsn> forwarded to the second pool, if there aren't any free connections left.

jurlsn> I don't have any good solution for these dynamically increasing.

jurlsn> Maybe somebody has gained some experiences with this?

jurlsn> I'm still very interested in any advices.

jurlsn> Many thanks in advance!
jurlsn> Sjus
 




-- 
Best regards,
 Roman                            mailto:[EMAIL PROTECTED]





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

Reply via email to