[JBoss-user] [Tomcat, HTTPD, Servlets JSP] - Re: Limit AJP to only select webservers

2005-12-23 Thread anguyen
How about running a firewall on the JBoss/Tomcat server machine?  That would be 
the most secure way to handle it, IMO.


View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=3914179#3914179

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3914179


---
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637alloc_id=16865op=click
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Tomcat, HTTPD, Servlets JSP] - Re: Limit AJP to only select webservers

2005-12-23 Thread anguyen
It's not clear from your post whether the firewall you have in fron of 
JBoss/Tomcat is a separate piece of hardware or is a software firewall running 
as part of the OS on the same machine.

My suggestion was to use a software firewall that is part of the OS.  There is 
no way to attach to AJP from within a software firewall.  Any connections 
destined for JBoss/Tomcat must go through the OS's NIC driver and TCP/IP stack 
before getting to the socket in JBoss/Tomcat.  The software firewall sits 
somewhere between the OS's NIC driver and the application's socket, checking 
each packet that comes into the machine.


View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=3914185#3914185

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3914185


---
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637alloc_id=16865op=click
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Tomcat, HTTPD, Servlets JSP] - Re: mod_jk with Jboss/Tomcat problem!!!!

2005-10-31 Thread anguyen
workers.properties

  | worker.list=loadbalancer
  | 
  | worker.node1.port=10009
  | worker.node1.host=175.45.72.102
  | worker.node1.type=ajp13
  | worker.node1.lbfactor=1
  | 
  | worker.node2.port=10009
  | worker.node2.host=175.45.72.105
  | worker.node2.type=ajp13
  | worker.node2.lbfactor=1
  | 
  | worker.loadbalancer.type=lb
  | worker.loadbalancer.balanced_workers=node1, node2 
  | 

httpd.conf

  | # Load mod_jk module
  | # Specify the filename of the mod_jk lib
  | LoadModule jk_module apache_1.3.27_install/libexec/mod_jk_1.2.14.so
  | 
  | # Where to find workers.properties
  | JkWorkersFile apache_1.3.27_install/conf/workers.properties
  | 
  | # Where to put jk logs
  | JkLogFile /apache_1.3.27_install/logs/mod_jk.log
  | 
  | # Set the jk log level [debug/error/info]
  | JkLogLevel trace
  | 
  | # Select the log format
  | JkLogStampFormat [%a %b %d %H:%M:%S %Y]
  | 
  | # JkOptions indicates to send SSK KEY SIZE
  | JkOptions +ForwardKeySize +ForwardURICompat -ForwardDirectories
  | 
  | # JkRequestLogFormat
  | JkRequestLogFormat %w %V %T %q %r %U %v %V %w
  | 
  | # Mount your applications
  | JkMount /* loadbalancer
  | JkMount /viewserver/* loadbalancer
  | 


View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=3904512#3904512

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3904512


---
This SF.Net email is sponsored by the JBoss Inc.
Get Certified Today * Register for a JBoss Training Course
Free Certification Exam for All Training Attendees Through End of 2005
Visit http://www.jboss.com/services/certification for more information
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Clustering/JBoss] - Re: Does JBoss Cluster HA_JNDI support this implementation

2005-10-23 Thread anguyen
JBoss does come with other load-balance policies, like first available: 
http://docs.jboss.com/jbossas/javadoc/4.0.2/org/jboss/ha/framework/interfaces/FirstAvailable.html.
There's also 
http://docs.jboss.com/jbossas/javadoc/4.0.2/org/jboss/ha/framework/interfaces/FirstAvailableIdenticalAllProxies.html.
I know these are links to the 4.0.2 javadocs, but the link to the 3.2.7 
javadocs aren't working.  These load-balance policies may be available in 3.2.7.

This policy randomly selects the first target, so if that's not the behavior 
you want, you can extend this policy and customize the first target selection.

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=3902855#3902855

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3902855


---
This SF.Net email is sponsored by the JBoss Inc.
Get Certified Today * Register for a JBoss Training Course
Free Certification Exam for All Training Attendees Through End of 2005
Visit http://www.jboss.com/services/certification for more information
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Clustering/JBoss] - Re: AJP port with clustered instances on the same machine

2005-10-17 Thread anguyen
In sample-bindings.xml, the ajp port is calculated using the http port:

  |   service-config name=jboss.web:service=WebServer
  |  delegateClass=org.jboss.services.binding.XSLTFileDelegate
  |  
  |  delegate-config
  | ...
  |  xsl:variable name=portAJP select=$port - 71/
  | ...
  |  /delegate-config
  |  binding port=8080/
  |   /service-config
  | 
So for the ports-default config, the ajp port is 8009.  For the ports-01 
config, the ajp port is 8109 (http port is configured as 8180).

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=3901593#3901593

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3901593


---
This SF.Net email is sponsored by:
Power Architecture Resource Center: Free content, downloads, discussions,
and more. http://solutions.newsforge.com/ibmarch.tmpl
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Installation, Configuration Deployment] - Re: Problem running multiple servers!!!

2005-10-15 Thread anguyen
I remember seeing that request a while back.  I even voted for it =)

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=3901348#3901348

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3901348


---
This SF.Net email is sponsored by:
Power Architecture Resource Center: Free content, downloads, discussions,
and more. http://solutions.newsforge.com/ibmarch.tmpl
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Installation, Configuration Deployment] - Re: Problem running multiple servers!!!

2005-10-14 Thread anguyen
Move the tmp directory to a local (not shared) path.

  | run.sh -c myserver -Djboss.server.temp.dir=/tmp/myserver
  | 


View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=3901174#3901174

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3901174


---
This SF.Net email is sponsored by:
Power Architecture Resource Center: Free content, downloads, discussions,
and more. http://solutions.newsforge.com/ibmarch.tmpl
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Installation, Configuration Deployment] - Re: Problem running multiple servers!!!

2005-10-14 Thread anguyen
Ok, so I see two questions now.
1) How do I move the log directory?
2) How do I move the work directory?

From what I've found, changing the log directory is a lot harder than it needs 
to be.  There are two log files JBoss creates: boot.log and server.log.  
server.log is defined in myserver/conf/log4j.xml.  boot.log is defined in 
bin/run.jar#log4j.properties.  As you've noticed, there's not a simple system 
property you can change to move these files.  The log directory by default is 
defined as ${jboss.server.home.dir}/log.  Since you want to share the server 
directory, you can't change jboss.server.home.dir to be differrent for each 
instance.

To fix server.log, modify myserver/conf/log4j.xml:

  |   param name=File value=${jboss.server.home.dir}/log/server.log/
  | 
to

  |   param name=File value=${myserver.log.dir}/server.log/
  | 
Now change your startup command to:

  | run.sh -c myserver -Djboss.server.temp.dir=/tmp/myserver 
-Dmyserver.log.dir=/path/to/log/dir
  | 
That should take care of server.log.

Changing boot.log is a little tricker.  You will need to extract 
log4j.properties from run.jar and place it somewhere shared by both servers.  
Change the file location in log4j.properties as you did for server.log:

  | log4j.appender.FILE.File=${jboss.server.home.dir}/log/boot.log
  | 
to

  | log4j.appender.FILE.File=${myserver.log.dir}/boot.log
  | 
Now change your startup command to:

  | run.sh -c myserver -Djboss.server.temp.dir=/tmp/myserver 
-Dmyserver.log.dir=/path/to/log/dir 
-Dlog4j.configuration=file:/path/to/custom/log4j.properties
  | 
That should take care of both log files.  Didn't I say this was harder than it 
needs to be?  If anyone knows of a better way, please educate the rest of us!

Changing the work directory involves changing a tomcat config.  Modify 
myserver/deploy/jbossweb-tomcat55/server.xml:

  |  Host name=localhost
  | autoDeploy=false deployOnStartup=false deployXML=false
  | 
to

  |  Host name=localhost
  | autoDeploy=false deployOnStartup=false deployXML=false 
workDir=${jboss.server.temp.dir}/work
  | 
Now the work directory will be based off the temp directory, which you have 
already changed to be different for each instance. 

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=3901251#3901251

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3901251


---
This SF.Net email is sponsored by:
Power Architecture Resource Center: Free content, downloads, discussions,
and more. http://solutions.newsforge.com/ibmarch.tmpl
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Installation, Configuration Deployment] - Re: JBoss variables

2005-10-10 Thread anguyen
From what I've seen, log4j will automatically replace ${...} with the 
corresponding value in system properties.  So if you include ${my.log.dir} as 
a value in your log4j.properties, you could specify 
-Dmy.log.dir=/path/to/log/dir in the command line and /path/to/log/dir will be 
substitued for ${my.log.dir} by log4j.

You could also create a properties file that contains 
my.log.dir=/path/to/log/dir and pass it to JBoss's main program using -P 
my.properties.



View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=3900234#3900234

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3900234


---
This SF.Net email is sponsored by:
Power Architecture Resource Center: Free content, downloads, discussions,
and more. http://solutions.newsforge.com/ibmarch.tmpl
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Installation, Configuration Deployment] - Re: 1 Jboss listening on 2 ports

2005-10-04 Thread anguyen
Are these devices connecting via HTTP?  If so, then add another connector to 
deploy/jbossweb-tomcat55.sar/server.xml:

  |   Connector port=34567 address=${jboss.bind.address}
  |  maxThreads=250 strategy=ms maxHttpHeaderSize=8192
  |  emptySessionPath=true
  |  enableLookups=false acceptCount=100
  |  connectionTimeout=2 disableUploadTimeout=true/
  | 


View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=3899092#3899092

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3899092


---
This SF.Net email is sponsored by:
Power Architecture Resource Center: Free content, downloads, discussions,
and more. http://solutions.newsforge.com/ibmarch.tmpl
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Beginners Corner] - Re: deploying dll lib

2005-09-25 Thread anguyen
Try setting -Djava.library.path=path/to/dlls as a JVM argument.  If you use the 
JBoss startup scripts, you can set this in either run.bat/run.sh or run.conf.



View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=3896929#3896929

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3896929


---
SF.Net email is sponsored by:
Tame your development challenges with Apache's Geronimo App Server. Download
it for free - -and be entered to win a 42 plasma tv or your very own
Sony(tm)PSP.  Click here to play: http://sourceforge.net/geronimo.php
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Installation, Configuration Deployment] - Re: HELP: Need help configuring ldap login module from java

2005-09-20 Thread anguyen
I think the LDAP login module will do that mapping for you.

I just want to make sure I understand your case.  You have role with DN 
cn=ffv1::01find customer::find customer,o=blackhawk.  A lookup of this role 
should return an attribute nsRole that has the value role01.  If this is 
the case, I think this configuration should work:

  |   module-option name=roleAttributeIsDNtrue/module-option
  |   module-option name=roleNameAttributeIDnsRole/module-option
  | 




View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=3895926#3895926

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3895926


---
SF.Net email is sponsored by:
Tame your development challenges with Apache's Geronimo App Server. Download
it for free - -and be entered to win a 42 plasma tv or your very own
Sony(tm)PSP.  Click here to play: http://sourceforge.net/geronimo.php
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Installation, Configuration Deployment] - Re: HELP: Need help configuring ldap login module from java

2005-09-19 Thread anguyen
Have you looked at 
http://docs.jboss.org/jbossas/jboss4guide/r3/html/ch8.chapter.html#d0e18741.

From my understanding of your code, the login module config should look 
something like:

  | login-module code=org.jboss.security.auth.spi.LdapLoginModule 
flag=required
  |   module-option 
name=java.naming.factory.initialcom.sun.jndi.ldap.LdapCtxFactory/module-option
  |   module-option name=java.naming.provider.urlldap://[ip 
address]:389/module-option
  |   module-option 
name=java.naming.security.authenticationsimple/module-option
  |   module-option 
name=java.naming.security.principaluid=fastforward,cn=Applications,o=blackhawk/module-option
  |   module-option 
name=java.naming.security.credentials[password]/module-option
  |   module-option name=principalDNPrefixuid=/module-option  
  
  |   module-option name=principalDNSuffix,o=blackhawk/module-option
  |   module-option name=rolesCtxDN???  ???/module-option
  |   module-option name=roleAttributeId???  ???/module-option
  |   module-option name=roleAttributeIsDN???  ???/module-option
  |   module-option name=roleNameAttributeID???  ???/module-option
  | /login-module
  | 

I'm not able to infer from you code example those last four values.  They are 
specific to your LDAP schema.

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=3895710#3895710

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3895710


---
SF.Net email is sponsored by:
Tame your development challenges with Apache's Geronimo App Server. Download
it for free - -and be entered to win a 42 plasma tv or your very own
Sony(tm)PSP.  Click here to play: http://sourceforge.net/geronimo.php
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Beginners Corner] - Re: Can I use expressions in jboss.xml

2005-09-12 Thread anguyen
I know that this type of variable substitution works in ejb-jar.xml.  From what 
I've seen, you can do this type of thing in any JBoss XML config file.  In 
4.0.2, you can even specify a default value: 
${jboss.partition.name:DefaultPartition}



View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=3894353#3894353

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3894353


---
SF.Net email is Sponsored by the Better Software Conference  EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile  Plan-Driven Development * Managing Projects  Teams * Testing  QA
Security * Process Improvement  Measurement * http://www.sqe.com/bsce5sf
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Installation, Configuration Deployment] - Re: Defining datasources in webapp config files?

2005-09-06 Thread anguyen
I place mydb-ds.xml in the root of my ear.  My ear/META-INF/jboss-app.xml looks 
like this:

  | ?xml version=1.0 encoding=UTF-8?
  | !DOCTYPE jboss-app
  | PUBLIC -//JBoss//DTD J2EE Application 1.4//EN
  | http://www.jboss.org/j2ee/dtd/jboss-app_4_0.dtd;
  | 
  | jboss-app
  |   module
  | servicemydb-ds.xml/service
  |   /module
  | /jboss-app
  | 
I still have to copy the JDBC driver jar to the server's lib directory.  Anyone 
know if it's possible to package the JDBC driver jar in the ear?  The DTD for 
-ds.xml files doesn't look like it has a way to specify a classpath, like 
regular -service.xml files.  I suppose I could use the XSLT stylesheet that 
JBoss uses to transform the -ds.xml into a -service.xml ahead of time and add 
the classpath entry, but I was hoping there was an easier way.

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=3893204#3893204

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3893204


---
SF.Net email is Sponsored by the Better Software Conference  EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile  Plan-Driven Development * Managing Projects  Teams * Testing  QA
Security * Process Improvement  Measurement * http://www.sqe.com/bsce5sf
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Installation, Configuration Deployment] - Re: RemoteAddrValve Problems

2005-09-06 Thread anguyen
I'm not suggesting you place context elements in server.xml.  Follow the 
example at http://jakarta.apache.org/tomcat/tomcat-5.0-doc/config/host.html to 
add the valve at the host level.

This way, you don't need to mess with context.xml at all.

In server.xml, you would have something like this:

  | Server
  |   ...
  |   Engine ...
  | ...
  | Host ...
  |   ...
  |   Valve className=org.apache.catalina.valves.RemoteHostValve
  |  allow=*.mycompany.com,www.yourcompany.com/
  |   Valve className=org.apache.catalina.valves.RemoteAddrValve
  |  deny=192.168.1.*/
  |   ...
  | /Host
  |   /Engine
  | /Server
  | 
These valves are defined in the Host section, not within Context.  The docs 
claim this is allowed.

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=3893259#3893259

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3893259


---
SF.Net email is Sponsored by the Better Software Conference  EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile  Plan-Driven Development * Managing Projects  Teams * Testing  QA
Security * Process Improvement  Measurement * http://www.sqe.com/bsce5sf
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Installation, Configuration Deployment] - Re: RemoteAddrValve Problems

2005-09-06 Thread anguyen
Now I'm confused.
anonymous wrote : I'm having some trouble getting 
RemoteAddrValve/RemoteHostValve working at the host level.
anonymous wrote : Please don't tell me in WEB-INF of each of the protected 
resources. This is supposed to be a host level deal;
If you want to protect different contexts differently, then it sounds like you 
will need to create a context.xml for each webapp and place it in WEB-INF.  Can 
you post your context.xml files?

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=3893275#3893275

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3893275


---
SF.Net email is Sponsored by the Better Software Conference  EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile  Plan-Driven Development * Managing Projects  Teams * Testing  QA
Security * Process Improvement  Measurement * http://www.sqe.com/bsce5sf
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Installation, Configuration Deployment] - Re: Jboss/Tomcat scratchdir doesn't work

2005-09-05 Thread anguyen
With JBoss 4.0.2/Tomcat 5.5, you can set it in jbossweb-tomcat55.sar/server.xml:

  | Server
  | ...
  |   Engine ...
  |   ...
  | Host ... workDir=/tmp/work
  | ...
  | /Host
  |   /Engine
  | /Server
  | 
According to the config docs 
(http://jakarta.apache.org/tomcat/tomcat-5.0-doc/config/host.html), this should 
work for Tomcat 5.0 too.

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=3893048#3893048

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3893048


---
SF.Net email is Sponsored by the Better Software Conference  EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile  Plan-Driven Development * Managing Projects  Teams * Testing  QA
Security * Process Improvement  Measurement * http://www.sqe.com/bsce5sf
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Installation, Configuration Deployment] - Re: Block Directory Listings

2005-08-31 Thread anguyen
I haven't tried this, but it looks it should work.

To change this setting for all webapps deployed in JBoss, change 
deploy/jbossweb-tomcat55.sar/conf/web.xml:

from

  |servlet
  |   servlet-namedefault/servlet-name
  |   
servlet-classorg.apache.catalina.servlets.DefaultServlet/servlet-class
  |   init-param
  |  param-namedebug/param-name
  |  param-value0/param-value
  |   /init-param
  |   init-param
  |  param-namelistings/param-name
  |  param-valuetrue/param-value
  |   /init-param
  |   load-on-startup1/load-on-startup
  |/servlet
  | 
to

  |servlet
  |   servlet-namedefault/servlet-name
  |   
servlet-classorg.apache.catalina.servlets.DefaultServlet/servlet-class
  |   init-param
  |  param-namedebug/param-name
  |  param-value0/param-value
  |   /init-param
  |   init-param
  |  param-namelistings/param-name
  |  param-valuefalse/param-value
  |   /init-param
  |   load-on-startup1/load-on-startup
  |/servlet
  | 


View the original post : 
http://locahost:8080/index.html?module=bbop=viewtopicp=3892446#3892446

Reply to the post : 
http://locahost:8080/index.html?module=bbop=postingmode=replyp=3892446


---
SF.Net email is Sponsored by the Better Software Conference  EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile  Plan-Driven Development * Managing Projects  Teams * Testing  QA
Security * Process Improvement  Measurement * http://www.sqe.com/bsce5sf
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Clustering/JBoss] - Re: Clustered servers on same machine not load-balancing

2005-08-31 Thread anguyen
It looks like you're using the non-clustered naming context to lookup your EJB. 
 Try this:

  | ...
  | Properties props = new Properties();
  | props.setProperty(javax.naming.Context.PROVIDER_URL, 
jnp://localhost:1100);
  | InitialContext ic = new InitialContext(props);
  | ...
  | 


View the original post : 
http://locahost:8080/index.html?module=bbop=viewtopicp=3892505#3892505

Reply to the post : 
http://locahost:8080/index.html?module=bbop=postingmode=replyp=3892505


---
SF.Net email is Sponsored by the Better Software Conference  EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile  Plan-Driven Development * Managing Projects  Teams * Testing  QA
Security * Process Improvement  Measurement * http://www.sqe.com/bsce5sf
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Tomcat, HTTPD, Servlets JSP] - Using ${...} in web.xml

2005-08-31 Thread anguyen
I have a need to support variables in web.xml whose values can be provided by 
system properties.  I can do this for virtually all other JBoss config files, 
like jboss-web.xml, jboss-service.xml, etc...  Does anyone know if there's an 
easy way to get this kind of variable support to work in web.xml?

I was trying to locate the Tomcat code that processes web.xml, hoping that I 
could inject some custom behavior there, but I'm not able to find that piece of 
code :(

Any help is much appreciated.

View the original post : 
http://locahost:8080/index.html?module=bbop=viewtopicp=3892502#3892502

Reply to the post : 
http://locahost:8080/index.html?module=bbop=postingmode=replyp=3892502


---
SF.Net email is Sponsored by the Better Software Conference  EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile  Plan-Driven Development * Managing Projects  Teams * Testing  QA
Security * Process Improvement  Measurement * http://www.sqe.com/bsce5sf
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Clustering/JBoss] - Re: client-side invoker load-balance logic in code?

2005-08-31 Thread anguyen
Can you post your jboss.xml from your ejb jar?


View the original post : 
http://locahost:8080/index.html?module=bbop=viewtopicp=3892522#3892522

Reply to the post : 
http://locahost:8080/index.html?module=bbop=postingmode=replyp=3892522


---
SF.Net email is Sponsored by the Better Software Conference  EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile  Plan-Driven Development * Managing Projects  Teams * Testing  QA
Security * Process Improvement  Measurement * http://www.sqe.com/bsce5sf
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Installation, Configuration Deployment] - Re: My own Log4j.properties for Jboss 3.2.3

2005-08-09 Thread anguyen
Did you rename conf/log4j.xml to something else (like conf/jboss-log4j.xml) and 
update conf/jboss-service.xml to match?  Also, I think log4j.jar should go in 
WEB-INF/lib.

View the original post : 
http://www.jboss.org/index.html?module=bbop=viewtopicp=3889099#3889099

Reply to the post : 
http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3889099


---
SF.Net email is Sponsored by the Better Software Conference  EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile  Plan-Driven Development * Managing Projects  Teams * Testing  QA
Security * Process Improvement  Measurement * http://www.sqe.com/bsce5sf
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Beginners Corner] - Re: lookup-problem in a swing-client

2005-06-30 Thread anguyen
I apologize for the confusion.  I failed to recognize that you were doing this 
lookup from a Swing client.

java:comp/env is a special naming context, the Environment Naming Context (ENC) 
for a J2EE component.  It's only valid within the scope of a J2EE component, 
such as a servlet or EJB, which is why it works in the tutorial's servlet, and 
why you won't see it in the JMX console.

The EJB reference gets mapped to the servlet's ENC (java:comp/env/ejb/Fibo) via 
an ejb-ref element in web.xml and an ejb-ref-jnid element in jboss-web.xml.



View the original post : 
http://www.jboss.org/index.html?module=bbop=viewtopicp=3883224#3883224

Reply to the post : 
http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3883224


---
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_id=7477alloc_id=16492op=click
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Beginners Corner] - Re: lookup-problem in a swing-client

2005-06-29 Thread anguyen
Try changing it like this:

  | Object ref = context.lookup(java:comp/env/ejb/Fibo);
  | 
Note there is no '/' before 'comp'.

View the original post : 
http://www.jboss.org/index.html?module=bbop=viewtopicp=3883103#3883103

Reply to the post : 
http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3883103


---
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_id=7477alloc_id=16492op=click
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Beginners Corner] - Re: jndi lookup of datasource: broken in jboss 4.x?

2005-05-07 Thread anguyen
Try changing jboss-web.xml like this:

  | ?xml version=1.0 encoding=UTF-8?
  | jboss-web
  | resource-ref
  | res-ref-namejdbc/dev/res-ref-name
  | jndi-namejava:/dev/jndi-name
  | /resource-ref
  | /jboss-web
  | 


View the original post : 
http://www.jboss.org/index.html?module=bbop=viewtopicp=3876879#3876879

Reply to the post : 
http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3876879


---
This SF.Net email is sponsored by: NEC IT Guy Games.
Get your fingers limbered up and give it your best shot. 4 great events, 4
opportunities to win big! Highest score wins.NEC IT Guy Games. Play to
win an NEC 61 plasma display. Visit http://www.necitguy.com/?r=20
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Installation Configuration] - Re: Server configurations are completely unrelocatable

2005-04-28 Thread anguyen
Adrian, you're right, that is counter intuitive.  It's got my vote to be fixed.



View the original post : 
http://www.jboss.org/index.html?module=bbop=viewtopicp=3875790#3875790

Reply to the post : 
http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3875790


---
SF.Net email is sponsored by: Tell us your software development plans!
Take this survey and enter to win a one-year sub to SourceForge.net
Plus IDC's 2005 look-ahead and a copy of this survey
Click here to start!  http://www.idcswdc.com/cgi-bin/survey?id=105hix
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Installation Configuration] - Re: Closing unused services

2005-04-27 Thread anguyen
Have you looked at the tuning/slimming section on the wiki?
http://www.jboss.org/wiki/Wiki.jsp?page=JBossASTuningSliming

View the original post : 
http://www.jboss.org/index.html?module=bbop=viewtopicp=3875624#3875624

Reply to the post : 
http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3875624


---
SF.Net email is sponsored by: Tell us your software development plans!
Take this survey and enter to win a one-year sub to SourceForge.net
Plus IDC's 2005 look-ahead and a copy of this survey
Click here to start!  http://www.idcswdc.com/cgi-bin/survey?id=105hix
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Installation Configuration] - Re: Changing Server Configuration Home

2005-04-26 Thread anguyen
Have you tried -Djboss.server.base.dir=...?

You can find a list of other location-specific properties in the admin docs: 
http://docs.jboss.org/jbossas/admindevel326/html/ch01.html#ch1.dirs.fig


View the original post : 
http://www.jboss.org/index.html?module=bbop=viewtopicp=3875308#3875308

Reply to the post : 
http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3875308


---
SF email is sponsored by - The IT Product Guide
Read honest  candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595alloc_id=14396op=click
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Installation Configuration] - Re: Interceptors on session beans not functioning

2005-04-22 Thread anguyen
It sounds like perhaps you only added the interceptor to one container 
configuration.

In 3.2.7, I count 17 container configurations in standardjboss.xml.  You should 
at least add your interceptor to all containers in which you're deploying EJBs.

For the client interceptors, I think you need to do the same thing for all 
invoker-proxy-bindings.


View the original post : 
http://www.jboss.org/index.html?module=bbop=viewtopicp=3875136#3875136

Reply to the post : 
http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3875136


---
SF email is sponsored by - The IT Product Guide
Read honest  candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595alloc_id=14396op=click
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Management, JMX/JBoss] - Re: Service Binding Manager and Log4jService

2005-04-19 Thread anguyen
Dimitris, you're a genius!

Changing the order worked, but as I expected, the XSLTFileDelegate didn't work. 
 I'm gonna try my hand at implementing XSLTURLDelegate.  Should be very similar 
to the file delegate.

It's unfortunate that the binding delegates aren't setup well to be extended.  
They provide no hooks for subclasses to alter small pieces of functionality.  
It seems a basic abstract delegate should be provided to share functionality as 
well as offer subclasses a way to handle specific parameter types.

For example, XSLTConfigDelegate allows for arbitrary parameter bindings into 
the transformation.  XSLTFileDelegate only allows parameter bindings for host 
and port.  IMO, that functionality should be refactored into a base class.

If there's interest, I would be willing to do the refactoring and submit the 
code.

View the original post : 
http://www.jboss.org/index.html?module=bbop=viewtopicp=3874454#3874454

Reply to the post : 
http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3874454


---
This SF.Net email is sponsored by: New Crystal Reports XI.
Version 11 adds new functionality designed to reduce time involved in
creating, integrating, and deploying reporting solutions. Free runtime info,
new features, or free trial, at: http://www.businessobjects.com/devxi/728
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Management, JMX/JBoss] - Service Binding Manager and Log4jService

2005-04-18 Thread anguyen
This may sound wierd, but I want to use the ServiceBindingManager to modify the 
log4j.xml used by the Log4jService.  I've enabled the SBM and modified my 
bindings.xml file to include an XSLTFileDelegate for 
jboss.system:type=Log4jService,service=Logging.  This delegate probably won't 
work for the ConfigurationURL attribute on Log4jService, but I just wanted to 
see what would happen.

It looks like my bindings are not being applied.  I placed a breakpoint in the 
XSLTFileDelegate, and it's never called for the Log4jService.  Is there a 
limitation on what services can be manipulated with Service Binding Manager?  
Are jboss.system services excluded?


View the original post : 
http://www.jboss.org/index.html?module=bbop=viewtopicp=3874367#3874367

Reply to the post : 
http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3874367


---
This SF.Net email is sponsored by: New Crystal Reports XI.
Version 11 adds new functionality designed to reduce time involved in
creating, integrating, and deploying reporting solutions. Free runtime info,
new features, or free trial, at: http://www.businessobjects.com/devxi/728
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Clustering/JBoss] - Re: error on jboss start: b ad argument for IP_MULTICAST_IF:

2005-04-14 Thread anguyen
FWIW, I get the same error when starting the all configuration on Mac OS X 
10.3.8, JBoss 3.2.7.  I even tried changing the HAJNDI autodiscovery mcast 
address to the same address used in the JGroup config (different port of 
course), and still get the same error.  I've pretty much ignored it, since I 
don't necessarily need HAJNDI autodiscovery.

View the original post : 
http://www.jboss.org/index.html?module=bbop=viewtopicp=3873918#3873918

Reply to the post : 
http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3873918


---
SF email is sponsored by - The IT Product Guide
Read honest  candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595alloc_id=14396op=click
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Beginners Corner] - Re: corba tcp connection remains after destoying the orb and

2005-04-14 Thread anguyen
Perhaps the connections are remaining open until _ncRef and _server are garbage 
collected.  You can try changing your destroy() method to:

  | if (_server != null) {
  |   _server._release();
  |   _server = null;
  | }
  | if (_ncRef != null) {
  |   _ncRef._release();
  |   _ncRef = null;
  |   _nameService = null;
  | }
  | _orb.shutdown(true);
  | _orb.destroy();
  | _orb = null;
  | 
I think destroying the ORB only releases connections from object adaptors that 
you've registered with the ORB.  I don't think it closes any connections 
obtained from references to remote services.  I could be wrong.



View the original post : 
http://www.jboss.org/index.html?module=bbop=viewtopicp=3873916#3873916

Reply to the post : 
http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3873916


---
SF email is sponsored by - The IT Product Guide
Read honest  candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595alloc_id=14396op=click
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Clustering/JBoss] - Re: error on jboss start: b ad argument for IP_MULTICAST_IF:

2005-04-14 Thread anguyen
Thanks for the tip on disabling HAJNDI autodiscovery.

Ok, I ran my server through the debugger watching both the JGroups multicast 
socket creation and the DetatchedHANamingService.AutoDiscovery multicast socket 
creation.

The main difference is that in org.jgroups.protocols.UDP.createSockets(), 
mcast_recv_sock.setInterface(bind_addr) is passing in an real address on my 
machine.  In DetatchedHANamingService.AutoDiscovery.start(), 
socket.setInterface(bindAddress) is passing 0.0.0.0.  That call is throwing an 
exception thus logging the warning as seen above.

I noticed these comments in org.jgroups.protocols.UDP:

  | // changed by bela Feb 12 2003: by default multicast sockets will 
be bound to all network interfaces
  | 
  | // CHANGED *BACK* by bela March 13 2003: binding to all interfaces 
did not result in a correct
  | // local_addr. As a matter of fact, comparison between e.g. 
0.0.0.0:1234 (on hostA) and
  | // 0.0.0.0:1.2.3.4 (on hostB) would fail !
  | 

If I set a valid bind address for HAJNDI in cluster-service.xml, the warning 
disappears!

View the original post : 
http://www.jboss.org/index.html?module=bbop=viewtopicp=3874028#3874028

Reply to the post : 
http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3874028


---
SF email is sponsored by - The IT Product Guide
Read honest  candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595alloc_id=14396op=click
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Installation Configuration] - Re: ServiceBindingManager multiple jboss same machine using

2005-04-10 Thread anguyen
You're right. 
http://docs.jboss.org/jbossas/admindevel326/html/ch10.html#d0e21029.

I've always just modified the configs for each service directly, but it looks 
like you can use the ServiceBindingManager to override individual service 
config values all from one central config.


View the original post : 
http://www.jboss.org/index.html?module=bbop=viewtopicp=3873374#3873374

Reply to the post : 
http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3873374


---
SF email is sponsored by - The IT Product Guide
Read honest  candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595alloc_id=14396op=click
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Installation Configuration] - Re: ServiceBindingManager multiple jboss same machine using

2005-04-10 Thread anguyen
Looks like someone forgot to update 
docs/examples/binding-manager/sample-bindings.xml with entries for the 
PooledInvokerHA (new in 4.0?)

Anyways, it's easy fix to add the required entry for ports-01. Here is a diff 
that adds the binding entry for the pooledha invoker in all service binding 
configurations:

  | *** docs/examples/binding-manager/sample-bindings.xml.dist  Sun Apr 10 
12:38:17 2005
  | --- docs/examples/binding-manager/sample-bindings.xml   Sun Apr 10 12:41:16 
2005
  | ***
  | *** 92,97 
  | --- 92,104 
  |binding port=/
  | /service-config
  |   
  | +   service-config name=jboss:service=invoker,type=pooledha
  | +  
delegateClass=org.jboss.services.binding.AttributeMappingDelegate
  | +  
  | +  delegate-config portName=ServerBindPort/
  | +  binding port=4446/
  | +   /service-config
  | + 
  |   
  | !-- * iiop-service.xml ** --
  |   
  | ***
  | *** 309,314 
  | --- 316,328 
  |binding port=4544/
  | /service-config
  |   
  | +   service-config name=jboss:service=invoker,type=pooledha
  | +  
delegateClass=org.jboss.services.binding.AttributeMappingDelegate
  | +  
  | +  delegate-config portName=ServerBindPort/
  | +  binding port=4546/
  | +   /service-config
  | + 
  |   
  | !-- * iiop-service.xml ** --
  |   
  | ***
  | *** 530,535 
  | --- 544,556 
  |binding port=4644/
  | /service-config
  |   
  | +   service-config name=jboss:service=invoker,type=pooledha
  | +  
delegateClass=org.jboss.services.binding.AttributeMappingDelegate
  | +  
  | +  delegate-config portName=ServerBindPort/
  | +  binding port=4646/
  | +   /service-config
  | + 
  |   
  | !-- * iiop-service.xml ** --
  |   
  | ***
  | *** 748,753 
  | --- 769,781 
  |
  |delegate-config portName=RMIObjectPort/
  |binding port=4744/
  | +   /service-config
  | + 
  | +   service-config name=jboss:service=invoker,type=pooledha
  | +  
delegateClass=org.jboss.services.binding.AttributeMappingDelegate
  | +  
  | +  delegate-config portName=ServerBindPort/
  | +  binding port=4746/
  | /service-config
  | 

View the original post : 
http://www.jboss.org/index.html?module=bbop=viewtopicp=3873380#3873380

Reply to the post : 
http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3873380


---
SF email is sponsored by - The IT Product Guide
Read honest  candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595alloc_id=14396op=click
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Beginners Corner] - Re: Classpath problem - Sequences of jar files in the classp

2005-04-09 Thread anguyen
As far as I know, there's no easy way to control the order of jar files in the 
server/xxx/lib directory or even the WEB-INF/lib directory of a webapp.

For webapps, you can place your overridden classes in WEB-INF/classes, as 
WEB-INF/classes must come before any jars in WEB-INF/lib in the classpath 
according to the servlet spec.

If you want to override classes that are in JBoss' server/xxx/lib/*.jar, you 
can try this.  Create folder server/xxx/classes.  Modify 
server/xxx/conf/jboss-service.xml.  Add a line before classpath codebase=lib 
archives*/ like this classpath codebase=classes/
  | classpath codebase=lib archives*/.  I haven't tried this myself so 
I'm not sure if this would work.  In particular, I'm not sure if JBoss obeys 
the ordering of classpath elements in jboss-service.xml.

HTH

View the original post : 
http://www.jboss.org/index.html?module=bbop=viewtopicp=3873323#3873323

Reply to the post : 
http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3873323


---
SF email is sponsored by - The IT Product Guide
Read honest  candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595alloc_id=14396op=click
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Installation Configuration] - Re: ServiceBindingManager multiple jboss same machine using

2005-04-09 Thread anguyen
I would start with this:
anonymous wrote : java.lang.Exception: Port 4446 is already in use

If you want to run both nodes on the same machine, you need to change the port 
assignments for the second node.  I would consult the wiki on what ports are 
being used and where they're configured: 
http://www.jboss.org/wiki/Wiki.jsp?page=UsingJBossBehindAFirewall

View the original post : 
http://www.jboss.org/index.html?module=bbop=viewtopicp=3873324#3873324

Reply to the post : 
http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3873324


---
SF email is sponsored by - The IT Product Guide
Read honest  candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595alloc_id=14396op=click
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Installation Configuration] - Re: How do i set the depends for a mbean in user-service.xml

2005-04-08 Thread anguyen
Try this:

  | dependsjboss.jca:service=LocalTxCM,name=xactly-dataSource-oraclePool
  | 


View the original post : 
http://www.jboss.org/index.html?module=bbop=viewtopicp=3873274#3873274

Reply to the post : 
http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3873274


---
SF email is sponsored by - The IT Product Guide
Read honest  candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595alloc_id=14396op=click
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Installation Configuration] - Re: How do i set the depends for a mbean in user-service.xml

2005-04-08 Thread anguyen
Or rather:

  | 
dependsjboss.jca:service=LocalTxCM,name=xactly-dataSource-oraclePool/depends
  | 


View the original post : 
http://www.jboss.org/index.html?module=bbop=viewtopicp=3873275#3873275

Reply to the post : 
http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3873275


---
SF email is sponsored by - The IT Product Guide
Read honest  candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595alloc_id=14396op=click
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [EJB/JBoss] - Re: How to mark SLSB as unavailable?

2005-04-06 Thread anguyen
Well, it looks like I found a solution to my problem.

Problem: I have a stateless session EJB that throws a CreateException in 
ejbCreate(). In a clustered environment, I believe this should cause the client 
proxy to fail-over to another node. The current behavior in JBoss 3.2.6 is to 
throw the CreateException back to the client wrapped in an 
UndeclaredThrowableException. The client proxy just propogates the 
UndeclaredThrowableException all the way back up the call chain without failing 
over.

Solution: I wrote my own interceptor that catches CreateExceptions and throws 
back a GenericClusteringException. The client proxy will fail-over when it 
receives a GenericClusteringException with status set to not completed.

Here is the code to my interceptor, in case anyone is interested.

  | package com.itgssi.util.jboss.ejb;
  | 
  | import javax.ejb.CreateException;
  | 
  | import org.jboss.ejb.plugins.AbstractInterceptor;
  | import org.jboss.ha.framework.interfaces.GenericClusteringException;
  | import org.jboss.invocation.Invocation;
  | 
  | /**
  |  * p
  |  * codeCreateExceptionHandlerInterceptor/code handles CreateExceptions
  |  * during invocations to an EJB. In order for these exceptions to cause the
  |  * client to fail-over in a clustered environment, they get converted to
  |  * codeGenericClusteringException/codes.
  |  * /p
  |  * p
  |  * emNOTE:/em for this interceptor to work propertly, it must come 
BEFORE
  |  * codeorg.jboss.ejb.plugins.CleanShutdownInterceptor/code.
  |  * codeCleanShutdownInterceptor/code will change the status on
  |  * codeGenericClusteringException/code s that pass through it to MAYBE,
  |  * which will not cause the client to fail-over. This is the behavior in 
JBoss
  |  * 3.2.6; I'm not sure about other versions.
  |  * /p
  |  * 
  |  * @author anguyen
  |  */
  | public class CreateExceptionHandlerInterceptor extends AbstractInterceptor {
  | 
  |/**
  | * This invocation handles codeCreateException/codes thrown by
  | * other invokers further down the chain. The current behavior is
  | * to log the codeCreateException/code's message as a warning
  | * and throw a codeGenericClusteringException/code with a
  | * completed status of NO. Clients of a clustered EJB should
  | * interpret this exception as an indication that the EJB
  | * is unavailable on this node and fail-over to another node.
  | */
  |public Object invoke(Invocation mi) throws Exception {
  |   try {
  |  return getNext().invoke(mi);
  |   }
  |   catch (CreateException e) {
  |  handleCreateException(e);
  |  // if handle create exception doesn't throw an exception
  |  throw e;
  |   }
  |   catch (Exception e) {
  |  Throwable rootCause = e;
  |  while ((rootCause = rootCause.getCause()) != null) {
  | // loop until we get to the root cause
  |  }
  |  if (rootCause instanceof CreateException) {
  | handleCreateException((CreateException) rootCause);
  |  }
  |  // if the root cause is not a CreateException, rethrow
  |  // the original exception
  |  throw e;
  |   }
  |}
  | 
  |void handleCreateException(CreateException e) throws Exception {
  |   String message = EJB creation failed on node;
  |   log.warn(message);
  |   log.debug(Stack Trace, e);
  |   throw new 
GenericClusteringException(GenericClusteringException.COMPLETED_NO, message);
  |}
  | }
  | 

To use this interceptor, I created a custom container for my EJB in jboss.xml.

  | ?xml version=1.0 encoding=UTF-8?
  | !DOCTYPE jboss PUBLIC -//JBoss//DTD JBOSS 3.0//EN 
http://www.jboss.org/j2ee/dtd/jboss_3_0.dtd;
  | 
  | jboss
  | 
  |enterprise-beans
  | 
  |  !--
  |To add beans that you have deployment descriptor info for, add
  |a file to your XDoclet merge directory called jboss-beans.xml that 
contains
  |the session/session, entity/entity and 
message-driven/message-driven
  |markup for those beans.
  |  --
  | 
  |   session
  |  ejb-nameMySLSB/ejb-name
  |  jndi-nameejb/MySLSB/jndi-name
  |  configuration-nameMy Clustered Stateless 
SessionBean/configuration-name
  |   clusteredtrue/clustered
  |   cluster-config
  |   partition-nameDefaultPartition/partition-name
  |   
home-load-balance-policyorg.jboss.ha.framework.interfaces.RoundRobin/home-load-balance-policy
  |   
bean-load-balance-policyorg.jboss.ha.framework.interfaces.RoundRobin/bean-load-balance-policy
  |   /cluster-config
  | 
  |   /session
  | 
  |/enterprise-beans
  | 
  |resource-managers
  |/resource-managers
  | 
  |   !--
  | | for container settings, you can merge in jboss-container.xml
  | | this can contain invoker-proxy-bindings/ and 
container-configurations

[JBoss-user] [EJB/JBoss] - Re: How to mark SLSB as unavailable?

2005-04-06 Thread anguyen
Oops, the catch block for Exception should look like this:

  |   catch (Exception e) {
  |  Throwable rootCause = e;
  |  Throwable nextCause = null;
  |  while ((nextCause = rootCause.getCause()) != null) {
  | rootCause = nextCause;
  |  }
  |  if (rootCause instanceof CreateException) {
  | handleCreateException((CreateException) rootCause);
  |  }
  |  // if the root cause is not a CreateException, rethrow
  |  // the original exception
  |  throw e;
  |   }
  | 

View the original post : 
http://www.jboss.org/index.html?module=bbop=viewtopicp=3872932#3872932

Reply to the post : 
http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3872932


---
SF email is sponsored by - The IT Product Guide
Read honest  candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595alloc_id=14396op=click
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Clustering/JBoss] - Re: Shared JNDI between cluster nodes

2005-04-06 Thread anguyen
roberto wrote : 
  | 
  |   | ...
  |   | try
  |   | {
  |   | object = new InitialContext().lookup(myinformation);
  |   | }
  |   | catch(Exception vErr)
  |   | {}
  |   | ...
  |   | 
  | 
That piece of code is using the local JDNI context, not the global one.  I 
think you want to use the global JNDI context.  Assuming you're using the all 
configuration, you would do something like this:

  | try
  | {
  | Properties properties = new Properties();
  | properties.setProperty(javax.naming.Context.PROVIDER_URL, localhost:1100);
  | object = new InitialContext(properties).lookup(myinformation);
  | }
  | catch (Exception vErr)
  | {}
  | 
If you've changed the port number for the HAJNDI service, then adjust the 
localhost: property.

View the original post : 
http://www.jboss.org/index.html?module=bbop=viewtopicp=3872936#3872936

Reply to the post : 
http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3872936


---
SF email is sponsored by - The IT Product Guide
Read honest  candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595alloc_id=14396op=click
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Installation Configuration] - Re: JBoss Deployment order within ear

2005-04-06 Thread anguyen
Have you tried adding a depends element to your SAR's jboss-service.xml?  
Something like:

  | mbean code=my.MBean name=...
  |   
dependsjboss.management.local:J2EEApplication=null,J2EEServer=Local,j2eeType=WebModule,name=my.war/depends
  | ...
  | /mbean
  | 
I'm not sure what the JMX name should be for a deployed WAR, but looking 
through the JMX console, the above example would be my guess.

View the original post : 
http://www.jboss.org/index.html?module=bbop=viewtopicp=3872942#3872942

Reply to the post : 
http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3872942


---
SF email is sponsored by - The IT Product Guide
Read honest  candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595alloc_id=14396op=click
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Installation Configuration] - Re: JBoss Deployment order within ear

2005-04-06 Thread anguyen
Just noticed that you're within in EAR file, so perhaps try setting 
J2EEApplication=... to the name of your ear.

View the original post : 
http://www.jboss.org/index.html?module=bbop=viewtopicp=3872943#3872943

Reply to the post : 
http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3872943


---
SF email is sponsored by - The IT Product Guide
Read honest  candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595alloc_id=14396op=click
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [EJB/JBoss] - Re: How to mark SLSB as unavailable?

2005-04-02 Thread anguyen
I guess I'm alone in this.

I've done some more digging and found this post 
http://www.jboss.org/index.html?module=bbop=viewtopict=61675 and this bug 
http://jira.jboss.com/jira/browse/JBAS-1600 which says it has been fixed in 
4.0.2.  I haven't checked to see what the behavior is now in 4.0.2, but I'm 
hoping that if a CreateException is thrown from ejbCreate, the behavior of the 
client proxy will be to fail-over.

I will look into 4.0.2 and see what happens.  Hopefully, I can back port this 
fix to 3.2.6.


View the original post : 
http://www.jboss.org/index.html?module=bbop=viewtopicp=3872464#3872464

Reply to the post : 
http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3872464


---
SF email is sponsored by - The IT Product Guide
Read honest  candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595alloc_id=14396op=click
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [EJB/JBoss] - Re: EJB Classloader question

2005-03-31 Thread anguyen
I get this same behavior in JBoss 3.2.6 with the EJB classpath.  I don't have a 
war so can't confirm the WAR classpath behavior.


View the original post : 
http://www.jboss.org/index.html?module=bbop=viewtopicp=3872155#3872155

Reply to the post : 
http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3872155


---
This SF.net email is sponsored by Demarc:
A global provider of Threat Management Solutions.
Download our HomeAdmin security software for free today!
http://www.demarc.com/info/Sentarus/hamr30
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [EJB/JBoss] - How to mark SLSB as unavailable?

2005-03-31 Thread anguyen
I have a SLSB that I am deploying to all nodes in a cluster.  The 
load-balancing works fine.  This EJB depends on a license that is only 
available on certain nodes in the cluster.  Is there a way to mark this bean as 
unavailable on the nodes that don't have the required license?  I have tried 
throwing a CreateException and an EJBException in the ejbCreate() method, but 
that ends up propogating to the remote caller.  I'd like the client to failover 
to another node until it finds a node that has a valid license.  I've also 
tried throwing an EJBException in the EJBs constructor, but that has the same 
behavior as throwing it in ejbCreate().

According the EJB 2.1 specs, a RuntimeException (such as EJBException) thrown 
from any EJB method should cause the bean to enter state does not exist.  
Shouldn't the clustering automatically failover to another node if a bean does 
not exist on one node?

Please help!

Andy Nguyen

View the original post : 
http://www.jboss.org/index.html?module=bbop=viewtopicp=3872067#3872067

Reply to the post : 
http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3872067


---
SF email is sponsored by - The IT Product Guide
Read honest  candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595alloc_id=14396op=click
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [EJB/JBoss] - Re: How to mark SLSB as unavailable?

2005-03-31 Thread anguyen
Forgot to mention, I'm using JBoss 3.2.6 on Linux JDK 1.4.2_07.

Looking at JRMPInvokerProxyHA.invoke(), it looks like the invocation must throw 
one of the following exceptions in order for fail-over to happen: 
java.net.ConnectException, java.net.UnknownHostException, 
java.rmi.ConnectException, java.rmi.ConnectIOException, 
java.rmi.NoSuchObjectException, java.rmi.UnmarshalException, 
java.rmi.UnknownHostException or GenericClusteringException (with 
completionStatus == GenericClusteringException.COMPLETED_NO).  It doesn't look 
my EJB can throw any of these exceptions directly, so my question then would 
be, what can I do in my EJB to make the container or one of the interceptors 
throw one of these exceptions?  Do I need to write my own interceptor?  Should 
I modify JRMPInvokerProxyHA.invoke() to catch EJBException and failover when 
this happens?

Andy Nguyen

View the original post : 
http://www.jboss.org/index.html?module=bbop=viewtopicp=3872078#3872078

Reply to the post : 
http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3872078


---
This SF.net email is sponsored by Demarc:
A global provider of Threat Management Solutions.
Download our HomeAdmin security software for free today!
http://www.demarc.com/info/Sentarus/hamr30
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user