[JBoss-user] How to change: jboss.bind.address

2004-02-03 Thread Pitre, Russell








How do I change the “jboss.bind.address”  
I’m using version 3.2.3 w/ Tomcat.

 

I found this:

 

Using 3.2.2 or greater use the --host switch. In 3.2.2 you must remove snmp-adapter.sar from your deploy or it will generate bind errors.  Example: run.bat -c default --host localhost

 

 

But, what if I have to different wepapps that I want to
listen on two different IPs.  Can I set this address in jboss-service.xml
file with the Tomcat .sar??

 

 

 

 

Thanx in advance

Russ








RE: [JBoss-user] Throwing exception question....

2004-01-14 Thread Pitre, Russell
Right!but doesn't...

Here's what the jsp looks like..
<%
InitialContext context = new InitialContext(); 

Object ref = context.lookup("ejb/FactoryBean");

FactoryHome factoryHome = (FactoryHome) PortableRemoteObject.narrow (
ref, FactoryHome.class);

Factory factory = factoryHome.create();

String ObjectString = "601645,601647,601649";

ArrayList list = new ArrayList();

list =  factory.getPersistableObjects("com.shawmut.model.Address",
ObjectString);
%>


This should not compile



The Factory interface and its corresponding bean implementation both
throw MaxRequestObjectsException...


Thanx-
Russ

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Rod
Macpherson
Sent: Wednesday, January 14, 2004 4:50 PM
To: [EMAIL PROTECTED]
Subject: RE: [JBoss-user] Throwing exception question

The JSP compile should fail in that case. 

-Original Message-
From: Pitre, Russell [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, January 14, 2004 12:38 PM
To: [EMAIL PROTECTED]
Subject: RE: [JBoss-user] Throwing exception question


Yah, I have my MaxNumberOfRequestsException class extending Exception
already..still not sure what it is

Still baffled!

Russ



-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Adrian
Brock
Sent: Wednesday, January 14, 2004 2:46 PM
To: [EMAIL PROTECTED]
Subject: Re: [JBoss-user] Throwing exception question

You'll need:

public class MaxNumberOfRequestsException extends Exception rather than
extends RuntimeException 
or whatever you are using to avoid declaring it as being thrown.

RuntimeExceptions and Errors do not need to be handled.

Regards,
Adrian

On Wed, 2004-01-14 at 19:07, Pitre, Russell wrote:
> Hello All-
> 
>  
> 
> Using: jboss3.2.3-tomcat
> 
>  
> 
> I have a class that will throw a user defined exception.
> 
>  
> 
> My method:
> 
> public ArrayList getPersistableObjects (String className, String keys)

> {
> 
> if(cachelessKeyValues.length() > MAX_NUMBER_OF_REQUESTS) {
> 
> throw new MaxNumberOfRequestsException("Request exceeds maximum number

> of requests (" + MAX_NUMBER_OF_REQUESTS + ")");
> 
> }else{
> 
> do my stuff
> 
> }
> 
> }
> 
>  
> 
> I am wrapping this class with an ejb.  I want to force my front end 
> developers to use a try catch statement to catch this exception in 
> their jsp's.  I have the remote interface and the bean class itself 
> throwing the exception up the line
> 
>  
> 
> BEAN CLASS:
> 
>  
> 
> public ArrayList getPersistableObjects(String className, String keys) 
> throws MaxNumberOfRequestsException{
> 
> return Mule.getInstance().getPersistableObjects(className, keys);
> 
> }
> 
> INTERFACE:
> 
>  
> 
> public ArrayList getPersistableObjects (String className, String keys)

> throws MaxNumberOfRequestsException, java.rmi.RemoteException;
> 
>  
> 
>  
> 
> Everything compiles and works fine except that when the jsp compiles, 
> it does not force you to catch MaxNumberOfRequestsException
> 
>  
> 
>  
> 
> Any ideas?  I've been banging my head all day with this.
> 
> Russ
-- 
 
Adrian Brock
Director of Support
Back Office
JBoss Group, LLC 
 



---
This SF.net email is sponsored by: Perforce Software.
Perforce is the Fast Software Configuration Management System offering
advanced branching capabilities and atomic changes on 50+ platforms.
Free Eval! http://www.perforce.com/perforce/loadprog.html
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user




---
This SF.net email is sponsored by: Perforce Software.
Perforce is the Fast Software Configuration Management System offering
advanced branching capabilities and atomic changes on 50+ platforms.
Free Eval! http://www.perforce.com/perforce/loadprog.html
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


---
This SF.net email is sponsored by: Perforce Software.
Perforce is the Fast Software Configuration Management System offering
advanced branching capabilities and atomic changes on 50+ platforms.
Free Eval! http://www.perforce.com/perforce/loadprog.html
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user




---
This SF.net e

RE: [JBoss-user] Throwing exception question....

2004-01-14 Thread Pitre, Russell
Yah, I have my MaxNumberOfRequestsException class extending Exception
already..still not sure what it is

Still baffled!

Russ



-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Adrian
Brock
Sent: Wednesday, January 14, 2004 2:46 PM
To: [EMAIL PROTECTED]
Subject: Re: [JBoss-user] Throwing exception question

You'll need:

public class MaxNumberOfRequestsException extends Exception
rather than
extends RuntimeException 
or whatever you are using to avoid declaring it as being thrown.

RuntimeExceptions and Errors do not need to be handled.

Regards,
Adrian

On Wed, 2004-01-14 at 19:07, Pitre, Russell wrote:
> Hello All-
> 
>  
> 
> Using: jboss3.2.3-tomcat
> 
>  
> 
> I have a class that will throw a user defined exception.
> 
>  
> 
> My method:
> 
> public ArrayList getPersistableObjects (String className, String keys)
> {
> 
> if(cachelessKeyValues.length() > MAX_NUMBER_OF_REQUESTS) {
> 
> throw new MaxNumberOfRequestsException("Request exceeds maximum number
> of requests (" + MAX_NUMBER_OF_REQUESTS + ")");
> 
> }else{
> 
> do my stuff 
> 
> }
> 
> }
> 
>  
> 
> I am wrapping this class with an ejb.  I want to force my front end
> developers to use a try catch statement to catch this exception in
> their jsp's.  I have the remote interface and the bean class itself
> throwing the exception up the line
> 
>  
> 
> BEAN CLASS:
> 
>  
> 
> public ArrayList getPersistableObjects(String className, String keys)
> throws MaxNumberOfRequestsException{
> 
> return Mule.getInstance().getPersistableObjects(className, keys);
> 
> }
> 
> INTERFACE:
> 
>  
> 
> public ArrayList getPersistableObjects (String className, String keys)
> throws MaxNumberOfRequestsException, java.rmi.RemoteException;
> 
>  
> 
>  
> 
> Everything compiles and works fine except that when the jsp compiles,
> it does not force you to catch MaxNumberOfRequestsException
> 
>  
> 
>  
> 
> Any ideas?  I've been banging my head all day with this.
> 
> Russ
-- 
 
Adrian Brock
Director of Support
Back Office
JBoss Group, LLC 
 



---
This SF.net email is sponsored by: Perforce Software.
Perforce is the Fast Software Configuration Management System offering
advanced branching capabilities and atomic changes on 50+ platforms.
Free Eval! http://www.perforce.com/perforce/loadprog.html
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user




---
This SF.net email is sponsored by: Perforce Software.
Perforce is the Fast Software Configuration Management System offering
advanced branching capabilities and atomic changes on 50+ platforms.
Free Eval! http://www.perforce.com/perforce/loadprog.html
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] Throwing exception question....

2004-01-14 Thread Pitre, Russell








Hello All-

 

Using: jboss3.2.3-tomcat

 

I have a class that will throw a user defined exception.

 

My method:

public ArrayList getPersistableObjects (String className,
String keys) {

if(cachelessKeyValues.length() >
MAX_NUMBER_OF_REQUESTS) {

throw new
MaxNumberOfRequestsException("Request exceeds maximum number of requests
(" + MAX_NUMBER_OF_REQUESTS + ")");

}else{

    ….do
my stuff 

}

}

 

I am wrapping this class with an ejb.  I want to force
my front end developers to use a try catch statement to catch this exception in
their jsp’s.  I have the remote interface and the bean class itself
throwing the exception up the line….

 

BEAN CLASS:

 

public ArrayList getPersistableObjects(String className,
String keys) throws MaxNumberOfRequestsException{

return
Mule.getInstance().getPersistableObjects(className, keys);

}

INTERFACE:

 

public ArrayList getPersistableObjects (String className,
String keys) throws MaxNumberOfRequestsException, java.rmi.RemoteException;

 

 

Everything compiles and works fine except that when the jsp
compiles, it does not force you to catch MaxNumberOfRequestsException

 

 

Any ideas?  I’ve been banging my head all day
with this…..

Russ








RE: [JBoss-user] Exclude a class from being logged to the appender

2004-01-06 Thread Pitre, Russell
That doesn't solve my problem..

I took a look at log4j.xml and I didn't find an example of I'm trying to
dohere's my log4j.xml file...if you take a look at the
"Userdefined Categories" you'll notice where I'm using the
additivity="false" value to eliminate logs being sent to the console.
Well, that's what I'm trying to do at least.I've googled all day
long but to no availso frustratingand I can't find anything
within the Jboss docs either.(I have the CS subscription, and I'll
reserve my comments about their documentation)..So if anyone can
help me out I would really appreciate it..


==
http://jakarta.apache.org/log4j/";
debug="false">

  
  
  

  
  










  
  

  
   
  


  
  
  

  





  
  

  
  
  



  

   

  
  
  

  







  
   
  


  
  
  











  
  
  

  



  
  



-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Nicholas
Sent: Tuesday, January 06, 2004 12:11 PM
To: [EMAIL PROTECTED]
Subject: Re: [JBoss-user] Exclude a class from being logged to the
appender

You can raise the priority of the specific class:


 


//Nicholas

--- "Pitre, Russell" <[EMAIL PROTECTED]> wrote:
> Does anyone know how I can EXCLUDE a certain class
> from being logged to
> the console appender.  This class logs a "ping"
> message every 5 seconds
> and I don't want to see the messages on the console
> during development.
> 
> 
>  
> 
>  
> 
> Any help is greatly appreciated...  
> 
>  
> 
>  class="org.apache.log4j.ConsoleAppender">
> 
> 
> 
> 
> 
> 
> 
>  
> 
> 
> 
>   
> 
>value="%d{ABSOLUTE} %-5p [%c{1}]
> %m%n"/>
> 
> 
> 
>   
> 
>  
> 
>  
> 
> Thanx Russ-
> 
>  
> 
>  
> 
>  
> 
>  
> 
> 


=
Nicholas Whitehead
Home: (973) 377 9335
Cell: (201) 615 2716
[EMAIL PROTECTED]
Get Your News From The Crowbar: http://crowbar.dnsalias.com:443/crowbar/


---
This SF.net email is sponsored by: IBM Linux Tutorials.
Become an expert in LINUX or just sharpen your skills.  Sign up for
IBM's
Free Linux Tutorials.  Learn everything from the bash shell to sys
admin.
Click now! http://ads.osdn.com/?ad_id=1278&alloc_id=3371&op=click
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user




---
This SF.net email is sponsored by: IBM Linux Tutorials.
Become an expert in LINUX or just sharpen your skills.  Sign up for IBM's
Free Linux Tutorials.  Learn everything from the bash shell to sys admin.
Click now! http://ads.osdn.com/?ad_id78&alloc_id371&op=click
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] Exclude a class from being logged to the appender

2004-01-06 Thread Pitre, Russell








Does anyone know how I can EXCLUDE a certain class from
being logged to the console appender.  This class logs a “ping” message
every 5 seconds and I don’t want to see the messages on the console
during development.  

 

 

Any help is greatly appreciated…  

 



    

    

    

 

    

  

  

    

  

 

 

Thanx Russ-

 

 

 

 








[JBoss-user] rmi security manager....

2004-01-06 Thread Pitre, Russell








I have coded an rmi server for my j2ee appl for Jboss and
wish to use the rmi security manager…….How can I supply the
following argument at runtime….For now I have been starting JBoss with
run.bat but in the production I will be running Jboss as a service…..If
someone supply me with a hint for both solutions that would be great…Here
is the argument I need to pass:

 

-Djava.security.policy=mypolicyfile