Re: [JBoss-user] Pre compile jsps on jboss server

2003-10-08 Thread mike
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Hi Rod,

i don't know if you've found the answer to this, but i came across a
usefull post (it relates to jetty) a wee while ago about this. here it is.
Cheers
Mike
JSP Precompilation - What, Why and How ?

- -
If you include a .jsp in your .war and hit it, Jasper (the JSP engine)
will find the JSP, transform it into a .java, compile that into a
.class, load and run it, returning the output. The .class file is then
cached and reused on subsequent hits.
This can lead to 3 problems.
1). You might prefer to be notified of compile errors during your
development cycle - rather than post deployment.
2). The first person to hit the page will have to wait a while whilst
this process is carried out.
3). If you are deploying into a heavily loaded site, it is possible
that a page may be hit again before the first hit has finished it's
on-the-fly preparation. This may result in more than one concurrent
attempt at compiling the page, resulting in unecessary load on the
server and more than one user waiting a long time for the resource
that they have requested.
The way out of all these problems is to precompile your JSPs - i.e. Do
what Jasper would do lazily, preemptively during your development
iteration.
Doing this results in the further following advantages:

- - your production site may consider the presence of a compiler a
security breach. Precompiled JSPs do not need one.
- - dispatch of request to servlet is simpler and therefore quicker
since it goes direct from Jetty-Servlet and not
Jetty-Jasper-Servlet.
Here is a mail I sent to jboss-user to help someone who wanted to do
this:
I have just fixed up the JBoss website to precompile JSPs.
This is a diff showing the code I added to the build.xml

http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/jboss/website/content/bui
ld.xml.diff?r1=texttr1=1.7r2=texttr2=1.8diff_format=h
and this is a diff showing what I added to the web.xml

http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/jboss/website/content/src
/resources/content-war/WEB-INF/web.xml.diff?r1=texttr1=1.7r2=texttr2=
1.8diff_format=h
The comment line in the web.xml MUST be after the last servlet/ and
before the first servlet-mapping/ directive.
JspC will generate some xml servlet/ and servlet-mapping/ elements
which I substitute in at this comment.
The rest you will have to figure out for yourself - it is well
commented.
You will probably not need some of the workarounds I have had to
retrofit.
Since adding this item I have found the following :

1). Throwing a lot of concurrent requests at compile-on-the-fly JSPs
can make Jasper simply fall about and complain about files not
existing. Remove the load and hit the same page and it is returned no
problem - conclusion compile-on-the-fly is simply not an option for
enterprise level sites.
2). The JspC stuff referenced above fails to take into account
welcome-files. Jetty will look for a file of the same (e.g. index.jsp)
(so you should make sure something is there - even if it is an empty
file) and if so redirectt the request to it. - Of course, you could
probably remove the welcome-file directive and map your servlet
directly.
Rod Macpherson wrote:

| Ironically nobody on our team would consider using weblogic for
| development because it is far too slow. Individual jars cannot be hot
| deployed and the EJB compile stage add several micro-eons to the
| development process. Letting weblogic compile the EJBs for you does not
| help since it is even slower and has the undesirable efffect of
| crashing, without exception :(
|
| As far as precompiled JSPs it would be nice to just stipulate
| precompile my jsps without having to resort to servlet mapping. Having
| said that, it's only a deployment issue where QA can start testing at
| full speed right out of the gates. How many milliseconds does it taking
| to compile a single JSP? If it takes a second rather than half a second
| is that really a material issue? I am a little puzzled by that one.
|
| Several people have been hitting the compile my JSPs please issue so
| hopefully we will get that as a simple push-button solution at some
| point.
|
| Cheers,
|
| Rod
|
| -Original Message-
| From: Konstadinis Euaggelos [mailto:[EMAIL PROTECTED]
| Sent: Monday, October 06, 2003 1:24 AM
| To: [EMAIL PROTECTED]
| Subject: Re: [JBoss-user] Pre compile jsps on jboss server
|
|
| This is true,
|
| In our company, it's the first time we use JBOSS (Web-Logic is too
| fast), If you make a change in jsp, the JBoss is to slow in compilation
| of that jsp . Host name=localhost unpackWars=true autoDeploy=true
| workDir=${jboss.server.home.dir}/work/MainEngine/localhostattribute
| name=DeleteWorkDirsfalse/attribute
|
| I  have made this changes to jboss-service.xml of Tomcat in order to
| keep the compiled jsp in work directory and not in tmp. This sometimes
| causes a wired behaviour, a change that is made in layout of a jsp or in
| javascript 

[JBoss-user] Java Preferences

2003-10-08 Thread Brian Wallis

I need to store and retrieve some application preference data, both on a per 
logged in user (web interface) and system basis. The 
java.util.prefs.Preferences interface seems to provide what I need, but not 
quite. What I need is a jboss version that 
- Stores the preferences within the jboss server directory tree (a prefs
  directory next to log, deploy, conf, ...)
- Uses the callers security context to get the current user name (principal) 
  rather than the property user.name as java.util.prefs.FileSystemPreferences
  does.

Is there anything like this for use in jboss or are other suggestions for easy 
storage/retrival of preference values?

thanks, brian...



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


RE: [JBoss-user] JNDI names for session and entity beans?

2003-10-08 Thread Steven Harris
I'm running jboss-3.2.1_tomcat-4.1.24. I am using the web console to look at
JndiNames of my Beans, though as I mentioned, I see the same results when I
look up home interfaces from an MBean, namely that local entity beans seem
to have JNDI names based on ejb-name whereas the JNDI names of stateless
session beans are based on jndi-name, both as defined in jboss.xml. 

In the example below looking up SiteLocalHome and AssociationSvcEJB from
an MBean at server startup will give me not bound, whereas I can look up
SiteEJB and AssociationSvcLocalHome. I can live with this, but I thought
it was odd. Is it this disparity that you say has been fixed?

-Original Message-
From: Adrian Brock [mailto:[EMAIL PROTECTED]
Sent: Tuesday, October 07, 2003 6:06 PM
To: [EMAIL PROTECTED]
Subject: Re: [JBoss-user] JNDI names for session and entity beans?


Are you talking about jsr77 and the web-console?
This was fixed in 3.2.2RC1

Regards,
Adrian

On Tue, 2003-10-07 at 19:18, Steven Harris wrote:
 I've got local entity beans and remote stateless session beans, with JNDI
 names defined in jboss.xml. Jboss seems to use the ejb-name as the JNDI
 name of my local entity beans and the jndi-name as the JNDI name of my
 stateless session beans. For example:
 
 From ejb.jar
 --
 
 session
 ejb-nameAssociationSvcEJB/ejb-name

homecom.pfn.wirepower.srv.service.associationSvc.AssociationSvcHome/home

remotecom.pfn.wirepower.srv.service.associationSvc.AssociationSvc/remote

ejb-classcom.pfn.wirepower.srv.service.associationSvc.impl.AssociationSvcB
 ean/ejb-class
 session-typeStateless/session-type
 transaction-typeBean/transaction-type
 ..etc
 /session
 
 entity
 ejb-nameSiteEJB/ejb-name

local-homecom.pfn.wirepower.srv.persistence.site.SiteLocalHome/local-home
 
 localcom.pfn.wirepower.srv.persistence.site.SiteLocal/local

ejb-classcom.pfn.wirepower.srv.persistence.site.impl.SiteBean/ejb-class
 persistence-typeContainer/persistence-type
 prim-key-classjava.lang.Integer/prim-key-class
 ..etc
 /entity
 
 
 From JBoss.xml
 ---
 session
   ejb-nameAssociationSvcEJB/ejb-name
   jndi-nameAssociationSvcHome/jndi-name
 /session
 
 entity
   ejb-nameSiteEJB/ejb-name
   jndi-nameSiteLocalHome/jndi-name
 /entity
 
 The JBoss console shows the jndiName=AssociationSvcHome and
 jndiName=SiteEjb. Referencing them programatically from an MBean confirms
 this. 
 
 
 ---
 This sf.net email is sponsored by:ThinkGeek
 Welcome to geek heaven.
 http://thinkgeek.com/sf
 ___
 JBoss-user mailing list
 [EMAIL PROTECTED]
 https://lists.sourceforge.net/lists/listinfo/jboss-user
-- 
 
Adrian Brock
Director of Support
Back Office
JBoss Group, LLC 
 



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


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


RE: FW: [JBoss-user] Problem integrating MySql with JBOSS

2003-10-08 Thread Comtois, Pierre
For InnoDB, simply add type=InnoDB at the end of the create statement ...
CREATE TABLE tableX (.) type=InnoDB

I realized that about the Hypersonic bean after I sent my reply ... Am I
right in thinking that I can setup the Hypersonic GUI to open my MySql DB
when it open ... I see there is a setting called DATABASE set to default
and I suspect that is what I have to change for that to happen.

On a related topic, if I choose Connect from the File-Connect, I do not
see an entry for the MySql configuration I have ... I have to select
MM.MySql and modify the settings (which never get saved). What file would I
need to modify so I don't need to re-enter that information ?

Here are notes you might find useful. I've compiled them from all over the
web about setting up MySql for InnoDB ... I'm documenting all the steps so
it's repeatable.

MySql InnoDB Configuration

- Run winmysqladmin.exe (under bin subfolder):
1. First time (when my.ini does not exist under Windows directory, e.g.
C:\WinNT), you will be prompted for username/password. Enter your choice

 

2. Its window will come up and then minimize into System Tray. Bring it up
by:
Right click on System Tray icon - Option Show me.
3. By default, mysqld is used which has only ISAM, which does NOT support
transaction. To use mysqld-max with InnoDB or BDB enabled (supporting
transactions), configure my.ini as following:
Select tab my.ini Setup - Select mysqld-max - In editor for my.ini:
[mysqld]
...
[WinMySQLadmin]
...
Add the following before line [WinMySQLadmin], 
innodb_data_home_dir = C:\mysql\ibdata
innodb_data_file_path = ibdata1:500M;ibdata2:500M
set-variable = innodb_buffer_pool_size=70M
set-variable = innodb_additional_mem_pool_size=10M
innodb_log_group_home_dir = C:\mysql\iblogs
innodb_log_arch_dir = C:\mysql\iblogs
innodb_log_archive=0
set-variable = innodb_log_files_in_group=3
set-variable = innodb_log_file_size=10M
set-variable = innodb_log_buffer_size=8M
innodb_flush_log_at_trx_commit=1
set-variable = innodb_file_io_threads=4
set-variable = innodb_lock_wait_timeout=50
* The above specifies that two 500MB database files be created at
C:\mysql3.23\ibdata, and three 10MB log files created at
C:\mysql3.23\iblogs.
Then click Save Modification to save the changes into my.ini (under e.g.
C:\WinNT).

4. Manually create the folder ibdata location and iblogs location (in
the above example, it's C:\mysql\ibdata and C:\mysql\iblogs).

5. Start the server (mysql service):
Right click on the window - Option Win NT - item Install the service
Then Right click again - Option Win NT - item Start the service.
It will take a moment to create the database files and log files as
configured.


Test the configuration:
1. Make sure service Mysql is started.
2. Try to login.
- Open a Command window, try mysql -u username -p. You'll be prompted
for password (use the one you specified in my.ini, e.g.
username/password).
- You are in mysql console. Try SQL SELECT user(); or SELECT 1+1;. (Be
sure to end your SQL with semicolon.)
3. Add a user - username username, and password password.
In mysql console, enter SQL - GRANT ALL PRIVILEGES ON test.* TO
username@localhost IDENTIFIED BY 'password';
4. Login to database test as user username:
- In DOS, enter mysql -u username -p test (Note: test here is the
database name, NOT the password. Password will be prompted.)
- After giving password, you should be in test as username:
- Try SELECT user(); and you should get username@localhost.
- Try creating a table and put some data:
CREATE TABLE table1 (id INTEGER NOT NULL, data VARCHAR(100),PRIMARY KEY
(id)) type=InnoDB;
INSERT INTO table1 (id, data) VALUES (1, 'one');
INSERT INTO table1 (id, data) VALUES (2, 'two');
INSERT INTO table1 (id, data) VALUES (3, 'three');
SELECT * FROM table1; 
Note: 
* The default CREATE TABLE creates table as type ISAM, which does not
support transaction. Include clause type=InnoDB in your CREATE TABLE
statement as the above, then your table will have transaction support.
* By default, AUTOCOMMIT is on. To turn it off, do SET AUTOCOMMIT=0;. 

Pierre Comtois
Business Acceleration Services, Solutions Consulting 
45 O'Connor Street, Suite 500*Ottawa, Ontario K1P 1A4
Ph: 613-787-4649  *  FAX: 613-567-6053  *  E-Mail:  [EMAIL PROTECTED]




-Original Message-
From: Adrian Brock [mailto:[EMAIL PROTECTED] 
Sent: October 7, 2003 4:25 PM
To: [EMAIL PROTECTED]
Subject: RE: FW: [JBoss-user] Problem integrating MySql with JBOSS


On Tue, 2003-10-07 at 19:37, Comtois, Pierre wrote:
 Finally resolved the exception issue:
 
 1. I created the tables manually and for my appl. Made them of type 
 InnoDB
 

What is the sql for InnoDB, I would like to include a version in
docs/examples/jca

 2. I gave SELECT permission to my user to the mysql database so it 
 could access its permission table. I'm a novice at MySql as well so I 
 might have messed that up myself :-)
 

Doesn't a user get this right for tables they create?

 3. I had put my computer name in 

RE: FW: [JBoss-user] Problem integrating MySql with JBOSS

2003-10-08 Thread Comtois, Pierre
Same for me ...


Pierre Comtois
Business Acceleration Services, Solutions Consulting 
45 O'Connor Street, Suite 500*Ottawa, Ontario K1P 1A4
Ph: 613-787-4649  *  FAX: 613-567-6053  *  E-Mail:  [EMAIL PROTECTED]




-Original Message-
From: Guy Rouillier [mailto:[EMAIL PROTECTED] 
Sent: October 7, 2003 9:12 PM
To: [EMAIL PROTECTED]
Subject: Re: FW: [JBoss-user] Problem integrating MySql with JBOSS


Michael Klem wrote:
  From MySQL version 4.0, InnoDB is enabled by default. So sql used to
 create a db table will default to being an InnoDB table. To explicitly 
 create a table as InnoDB do this:
   CREATE TABLE CUSTOMER (A INT, B CHAR (20), INDEX (A)) TYPE = InnoDB;

That has not been my experience.  I have MySQL 4 on both Windows 2000 
and Linux, and if I don't specify a type, tables end up as MyISAM.
-- 
Guy Rouillier




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


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


RE: [JBoss-user] JNDI names for session and entity beans?

2003-10-08 Thread Adrian Brock
On Wed, 2003-10-08 at 14:36, Steven Harris wrote:
 I'm running jboss-3.2.1_tomcat-4.1.24. I am using the web console to look at
 JndiNames of my Beans, though as I mentioned, I see the same results when I
 look up home interfaces from an MBean, namely that local entity beans seem
 to have JNDI names based on ejb-name whereas the JNDI names of stateless
 session beans are based on jndi-name, both as defined in jboss.xml. 
 
 In the example below looking up SiteLocalHome and AssociationSvcEJB from
 an MBean at server startup will give me not bound, whereas I can look up
 SiteEJB and AssociationSvcLocalHome. I can live with this, but I thought
 it was odd. Is it this disparity that you say has been fixed?
 

Use local-jndi-name, jndi-name is for the remote interface.
JMX uses the local name only when there is no remote
(jsr77 wasn't doing the same which is what I fixed).

Regards,
Adrian

 -Original Message-
 From: Adrian Brock [mailto:[EMAIL PROTECTED]
 Sent: Tuesday, October 07, 2003 6:06 PM
 To: [EMAIL PROTECTED]
 Subject: Re: [JBoss-user] JNDI names for session and entity beans?
 
 
 Are you talking about jsr77 and the web-console?
 This was fixed in 3.2.2RC1
 
 Regards,
 Adrian
 
 On Tue, 2003-10-07 at 19:18, Steven Harris wrote:
  I've got local entity beans and remote stateless session beans, with JNDI
  names defined in jboss.xml. Jboss seems to use the ejb-name as the JNDI
  name of my local entity beans and the jndi-name as the JNDI name of my
  stateless session beans. For example:
  
  From ejb.jar
  --
  
  session
  ejb-nameAssociationSvcEJB/ejb-name
 
 homecom.pfn.wirepower.srv.service.associationSvc.AssociationSvcHome/home
 
 remotecom.pfn.wirepower.srv.service.associationSvc.AssociationSvc/remote
 
 ejb-classcom.pfn.wirepower.srv.service.associationSvc.impl.AssociationSvcB
  ean/ejb-class
  session-typeStateless/session-type
  transaction-typeBean/transaction-type
  ..etc
  /session
  
  entity
  ejb-nameSiteEJB/ejb-name
 
 local-homecom.pfn.wirepower.srv.persistence.site.SiteLocalHome/local-home
  
  localcom.pfn.wirepower.srv.persistence.site.SiteLocal/local
 
 ejb-classcom.pfn.wirepower.srv.persistence.site.impl.SiteBean/ejb-class
  persistence-typeContainer/persistence-type
  prim-key-classjava.lang.Integer/prim-key-class
  ..etc
  /entity
  
  
  From JBoss.xml
  ---
  session
  ejb-nameAssociationSvcEJB/ejb-name
  jndi-nameAssociationSvcHome/jndi-name
  /session
  
  entity
  ejb-nameSiteEJB/ejb-name
  jndi-nameSiteLocalHome/jndi-name
  /entity
  
  The JBoss console shows the jndiName=AssociationSvcHome and
  jndiName=SiteEjb. Referencing them programatically from an MBean confirms
  this. 
  
  
  ---
  This sf.net email is sponsored by:ThinkGeek
  Welcome to geek heaven.
  http://thinkgeek.com/sf
  ___
  JBoss-user mailing list
  [EMAIL PROTECTED]
  https://lists.sourceforge.net/lists/listinfo/jboss-user
-- 
 
Adrian Brock
Director of Support
Back Office
JBoss Group, LLC 
 



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


[JBoss-user] HSQLDB

2003-10-08 Thread Rafal Kedziorski
hi,

HSQLDB creates an thm folder named hsperfdata_jboss. Where can be set, 
where HSQLDB should store this data.

Regards,
Rafal


---
This SF.net email is sponsored by: SF.net Giveback Program.
SourceForge.net hosts over 70,000 Open Source Projects.
See the people who have HELPED US provide better services:
Click here: http://sourceforge.net/supporters.php
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


RE: [JBoss-user] HSQLDB

2003-10-08 Thread Comtois, Pierre
I don not have any such folder. I am using 3,2,2RC4 ... Are you as well ?
Where is yours located ?


Pierre Comtois
Business Acceleration Services, Solutions Consulting 
45 O'Connor Street, Suite 500*Ottawa, Ontario K1P 1A4
Ph: 613-787-4649  *  FAX: 613-567-6053  *  E-Mail:  [EMAIL PROTECTED]




-Original Message-
From: Rafal Kedziorski [mailto:[EMAIL PROTECTED] 
Sent: October 8, 2003 11:11 AM
To: [EMAIL PROTECTED]
Subject: [JBoss-user] HSQLDB


hi,

HSQLDB creates an thm folder named hsperfdata_jboss. Where can be set, 
where HSQLDB should store this data.


Regards,
Rafal



---
This SF.net email is sponsored by: SF.net Giveback Program. SourceForge.net
hosts over 70,000 Open Source Projects. See the people who have HELPED US
provide better services: Click here: http://sourceforge.net/supporters.php
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


---
This SF.net email is sponsored by: SF.net Giveback Program.
SourceForge.net hosts over 70,000 Open Source Projects.
See the people who have HELPED US provide better services:
Click here: http://sourceforge.net/supporters.php
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] Redeploy problem of webservices on JBoss 3.2.2

2003-10-08 Thread Bernd Koecke
Hi,

I have a problem with redeploying wsr-files on JBoss 3.2.2RC3,RC4 and nightly
snapshot. RC2 works fine. Environment is SUN-jdk-1.4.2_01 on Linux.

I have an ear-file with some EJBs and one of these beans needs a (Axis/SOAP)
webservice. This service is packed in a wsr-file in the same ear and noted in
apllication.xml as module/java. After server startup I deploy the whole ear
file, do some tests which uses the webservice and all works fine.

In the next step I delete the ear-file and all is undeployed.

After this I redeploy the ear-file again. Logfile says that the wsr is deployed,
 all works fine except the webservice from the wsr-file. JBoss claims, that he
can't find webservice in JNDI.

This only happens after using the webservice. When I start JBoss and
deploy-undeploy-deploy the whole ear several times without using it in
between, all works fine. But after using the service and redeploying, I got a
NamingException.

The wsr file contains an autogenerated MANIFEST.MF, my web-service.xml in
META-INF dir and the Java-classes for the service stubs.

Are there any changes from RC2 to the newer versions for which I have to change
my packaging/config?

Thanks,

Bernd
-- 
Dipl.-Inform. Bernd Koecke
UNIX-Entwicklung
Schlund+Partner AG
Fon: +49-721-91374-0
E-Mail: [EMAIL PROTECTED]



---
This SF.net email is sponsored by: SF.net Giveback Program.
SourceForge.net hosts over 70,000 Open Source Projects.
See the people who have HELPED US provide better services:
Click here: http://sourceforge.net/supporters.php
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


RE: FW: [JBoss-user] Problem integrating MySql with JBOSS

2003-10-08 Thread Rupp, Heiko
Since 3.2.1 (or at least 3.2.2 rc2 :-) there is the possibility to
execute arbitrary sql commands after create table.
So you can specify a alter table foo type=innodb there.

See Jboss-Change-Note 743570
http://sourceforge.net/tracker/?func=detailaid=743570group_id=22866atid=381174

  Heiko


 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED] Behalf Of Comtois,
 Pierre
 Sent: Wednesday, October 08, 2003 3:44 PM
 To: '[EMAIL PROTECTED]'
 Subject: RE: FW: [JBoss-user] Problem integrating MySql with JBOSS
 
 
 For InnoDB, simply add type=InnoDB at the end of the create 
 statement ...
 CREATE TABLE tableX (.) type=InnoDB
 
 I realized that about the Hypersonic bean after I sent my 
 reply ... Am I
 right in thinking that I can setup the Hypersonic GUI to open 
 my MySql DB
 when it open ... I see there is a setting called DATABASE 
 set to default
 and I suspect that is what I have to change for that to happen.
 
 On a related topic, if I choose Connect from the 
 File-Connect, I do not
 see an entry for the MySql configuration I have ... I have to select
 MM.MySql and modify the settings (which never get saved). 
 What file would I
 need to modify so I don't need to re-enter that information ?
 
 Here are notes you might find useful. I've compiled them from 
 all over the
 web about setting up MySql for InnoDB ... I'm documenting all 
 the steps so
 it's repeatable.
 
 MySql InnoDB Configuration
 
 - Run winmysqladmin.exe (under bin subfolder):
 1. First time (when my.ini does not exist under Windows 
 directory, e.g.
 C:\WinNT), you will be prompted for username/password. Enter 
 your choice
 
  
 
 2. Its window will come up and then minimize into System 
 Tray. Bring it up
 by:
 Right click on System Tray icon - Option Show me.
 3. By default, mysqld is used which has only ISAM, which 
 does NOT support
 transaction. To use mysqld-max with InnoDB or BDB enabled 
 (supporting
 transactions), configure my.ini as following:
 Select tab my.ini Setup - Select mysqld-max - In editor 
 for my.ini:
 [mysqld]
 ...
 [WinMySQLadmin]
 ...
 Add the following before line [WinMySQLadmin], 
 innodb_data_home_dir = C:\mysql\ibdata
 innodb_data_file_path = ibdata1:500M;ibdata2:500M
 set-variable = innodb_buffer_pool_size=70M
 set-variable = innodb_additional_mem_pool_size=10M
 innodb_log_group_home_dir = C:\mysql\iblogs
 innodb_log_arch_dir = C:\mysql\iblogs
 innodb_log_archive=0
 set-variable = innodb_log_files_in_group=3
 set-variable = innodb_log_file_size=10M
 set-variable = innodb_log_buffer_size=8M
 innodb_flush_log_at_trx_commit=1
 set-variable = innodb_file_io_threads=4
 set-variable = innodb_lock_wait_timeout=50
 * The above specifies that two 500MB database files be created at
 C:\mysql3.23\ibdata, and three 10MB log files created at
 C:\mysql3.23\iblogs.
 Then click Save Modification to save the changes into 
 my.ini (under e.g.
 C:\WinNT).
 
 4. Manually create the folder ibdata location and iblogs 
 location (in
 the above example, it's C:\mysql\ibdata and C:\mysql\iblogs).
 
 5. Start the server (mysql service):
 Right click on the window - Option Win NT - item Install 
 the service
 Then Right click again - Option Win NT - item Start the service.
 It will take a moment to create the database files and log files as
 configured.
 
 
 Test the configuration:
 1. Make sure service Mysql is started.
 2. Try to login.
 - Open a Command window, try mysql -u username -p. You'll 
 be prompted
 for password (use the one you specified in my.ini, e.g.
 username/password).
 - You are in mysql console. Try SQL SELECT user(); or 
 SELECT 1+1;. (Be
 sure to end your SQL with semicolon.)
 3. Add a user - username username, and password password.
 In mysql console, enter SQL - GRANT ALL PRIVILEGES ON test.* TO
 username@localhost IDENTIFIED BY 'password';
 4. Login to database test as user username:
 - In DOS, enter mysql -u username -p test (Note: test here is the
 database name, NOT the password. Password will be prompted.)
 - After giving password, you should be in test as username:
 - Try SELECT user(); and you should get username@localhost.
 - Try creating a table and put some data:
 CREATE TABLE table1 (id INTEGER NOT NULL, data 
 VARCHAR(100),PRIMARY KEY
 (id)) type=InnoDB;
 INSERT INTO table1 (id, data) VALUES (1, 'one');
 INSERT INTO table1 (id, data) VALUES (2, 'two');
 INSERT INTO table1 (id, data) VALUES (3, 'three');
 SELECT * FROM table1; 
 Note: 
 * The default CREATE TABLE creates table as type ISAM, which does not
 support transaction. Include clause type=InnoDB in your CREATE TABLE
 statement as the above, then your table will have transaction support.
 * By default, AUTOCOMMIT is on. To turn it off, do SET 
 AUTOCOMMIT=0;. 
 
 Pierre Comtois
 Business Acceleration Services, Solutions Consulting 
 45 O'Connor Street, Suite 500*Ottawa, Ontario K1P 1A4
 Ph: 613-787-4649  *  FAX: 613-567-6053  *  E-Mail:  
 [EMAIL PROTECTED]
 
 
 
 
 -Original Message-
 From: 

Re: [JBoss-user] SQLException from 3.2.2 branch when trying to remove an entity.

2003-10-08 Thread Alexey Loubyansky
It was a bug that is fixed now. Could you, please, check it out in 24h? 
Thanks much!

alex

Jason Essington wrote:
I am using a build from cvs as of this (10/7) morning. It claims to be  RC5

the exact code that fails is

record.remove();

from the previous example.

 From the debug output in the server.log file it appears that the   
relationships are severed and the record and it's recently severed  
relationships are deleted however after that happens JBoss must be  
performing a query to see who is left in the collection. It is that  
query that is failing with a SQLException.

If there is more information I could supply you with, please let me  know.

These entities had been working perfectly in 3.2.1 and the code for  
them has not changed.

-jason

On Tuesday, October 7, 2003, at 01:22  PM, Alexey Loubyansky wrote:

What JBoss version exactly are you using? 3.2.2RC5?
Could you post the exact code that fails?
Thanks,

alex

Jason Essington wrote:

I have some code that worked just fine in 3.2.1 but now it is 
having   trouble in the 3.2.2 branch of JBoss.
I am getting an SQLException when I try to remove an entity that has  
a  1-m cascade delete relationship.
The code I am using first gets a collection of entities via a 
finder   then iterates over the collection calling .remove() on each 
entity   something like:
for (Iterator i = mtmRecords.iterator(); i.hasNext();)
{
FXMarkToMarketLocal record = (FXMarkToMarketLocal) i.next();
try
{
if (record != null)
{
if (log.isDebugEnabled())
log.debug(\nRemoving Mark to Market record +   
record.getRid().toString()+\n);
record.remove();
}
}
catch (RemoveException e)
{
log.warn(Unable to remove an old mark to market record., e);
}
}
JBoss seems to go ahead and disassociate the related entities then   
delete the entity and it's related entities (which are to be  
cascaded)  just fine, but when this is complete, it tries to issue  
the following  SQL statement:
SELECT rid,  FROM tfxmtm WHERE (rid=?) OR (rid=?) OR (rid=?) OR  
(rid=?)  OR (rid=?) OR (rid=?) OR (rid=?) OR (rid=?) OR (rid=?) OR  
(rid=?) OR  (rid=?)
This statement appears to be missing all of its CMP fields (minus 
the   pk field), and is not valid sql. This causes the exception 
shown  below.
Is there something I am doing that is no longer allowed in 3.2.2? Or  
is  this just a bug?
java.sql.SQLException: ERROR:  parser: parse error at or near FROM  
at  character 14
at   
org.postgresql.core.QueryExecutor.execute(QueryExecutor.java:131)
at   
org.postgresql.jdbc1.AbstractJdbc1Connection.ExecSQL(AbstractJdbc1Conn 
ec tion.java:505)
at   
org.postgresql.jdbc1.AbstractJdbc1Statement.execute(AbstractJdbc1State 
me nt.java:320)
at   
org.postgresql.jdbc2.AbstractJdbc2Statement.execute(AbstractJdbc2State 
me nt.java:48)
at   
org.postgresql.jdbc1.AbstractJdbc1Statement.executeQuery(AbstractJdbc1 
St atement.java:153)
at   
org.jboss.resource.adapter.jdbc.WrappedPreparedStatement.executeQuery( 
Wr appedPreparedStatement.java:302)
at   
org.jboss.ejb.plugins.cmp.jdbc.JDBCLoadEntityCommand.execute(JDBCLoadE 
nt ityCommand.java:158)
at   
org.jboss.ejb.plugins.cmp.jdbc.JDBCLoadEntityCommand.execute(JDBCLoadE 
nt ityCommand.java:76)
at   
org.jboss.ejb.plugins.cmp.jdbc.JDBCStoreManager.loadEntity(JDBCStoreMa 
na ger.java:577)
at   
org.jboss.ejb.plugins.cmp.jdbc.JDBCStoreManager.loadEntity(JDBCStoreMa 
na ger.java:559)
at   
org.jboss.ejb.plugins.CMPPersistenceManager.loadEntity(CMPPersistenceM 
an ager.java:381)
at   
org.jboss.resource.connectionmanager.CachedConnectionInterceptor.loadE 
nt ity(CachedConnectionInterceptor.java:352)
at   
org.jboss.ejb.plugins.EntitySynchronizationInterceptor.invoke(EntitySy 
nc hronizationInterceptor.java:239)
at   
org.jboss.resource.connectionmanager.CachedConnectionInterceptor.invok 
e( CachedConnectionInterceptor.java:185)
at   
org.jboss.ejb.plugins.EntityReentranceInterceptor.invoke(EntityReentra 
nc eInterceptor.java:114)
at   
org.jboss.ejb.plugins.EntityMultiInstanceInterceptor.invoke(EntityMult 
iI nstanceInterceptor.java:108)
at   
org.jboss.ejb.plugins.EntityLockInterceptor.invoke(EntityLockIntercept 
or .java:89)
at   
org.jboss.ejb.plugins.EntityCreationInterceptor.invoke(EntityCreationI 
nt erceptor.java:54)
at   
org.jboss.ejb.plugins.AbstractTxInterceptor.invokeNext(AbstractTxInter 
ce ptor.java:84)
at   
org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransactions(TxIntercept 
or CMT.java:267)
at   
org.jboss.ejb.plugins.TxInterceptorCMT.invoke(TxInterceptorCMT.java:12 
8)
at   
org.jboss.ejb.plugins.SecurityInterceptor.invoke(SecurityInterceptor.j 
av a:118)
at   
org.jboss.ejb.plugins.LogInterceptor.invoke(LogInterceptor.java:191)
at   

[JBoss-user] HTTP basic auth from embedded Tomcat?

2003-10-08 Thread Matthew Hixson
I was just wondering if there is any plan to make HTTP basic auth work  
with Tomcat embedded in JBoss using the MemoryRealm.

http://jakarta.apache.org/tomcat/tomcat-4.1-doc/realm- 
howto.html#MemoryRealm

The last I heard was that Realm didn't work when running Tomcat ebedded  
in Tomcat.

Is there any other way to get a simple basic auth working from a text  
configuration file?
  Thanks,
   -M@



---
This SF.net email is sponsored by: SF.net Giveback Program.
SourceForge.net hosts over 70,000 Open Source Projects.
See the people who have HELPED US provide better services:
Click here: http://sourceforge.net/supporters.php
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


RE: [JBoss-user] HSQLDB

2003-10-08 Thread Rafal Kedziorski
At 11:41 08.10.2003 -0400, Comtois, Pierre wrote:
I don not have any such folder. I am using 3,2,2RC4 ... Are you as well ?
Where is yours located ?
in the system TMP folder. at the same place Jetty stores own files. but 
this can be configured.

Regards,
Rafal 



---
This SF.net email is sponsored by: SF.net Giveback Program.
SourceForge.net hosts over 70,000 Open Source Projects.
See the people who have HELPED US provide better services:
Click here: http://sourceforge.net/supporters.php
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] EJBException principal=null when call Jboss-net web service from Microsoft.NET client

2003-10-08 Thread Bates, Alex

Here is the exception I get in my ASP.Net page when I try to call my
jboss-net web service:

java.rmi.ServerException: EJBException:; nested exception is:
javax.ejb.EJBException: checkSecurityAssociation; CausedByException is:
Authentication exception, principal=null 

But get this: when I first connect to a JSP that uses the EJB in question,
then go back to my ASP.Net page, the security exception goes away!!  

Has anyone else experienced this?  I've tried setting security credentials
as one article on Jboss.Net said to do, but this didn't work.


Notes:
*my EJBs are secured 
*I thought the JSR Web Services for J2EE said it was excluding security, but
I was unable to connect at all from my C# client without adding login code
as follows:

 C# client code (using generated QueryEngineRemoteService proxy
to web service) --

QueryEngineRemoteService ws = new QueryEngineRemoteService();
string strSel = DropDownList1.SelectedItem.Text;
string strResult = null;

// this line of code has no effect
ws.Credentials = new System.Net.NetworkCredential(mylogin,mypassword);


string strName = strSel;

try 
{
strResult = ws.executeResultSetByName(strName);
} 
catch (Exception e) 
{
}







---
This SF.net email is sponsored by: SF.net Giveback Program.
SourceForge.net hosts over 70,000 Open Source Projects.
See the people who have HELPED US provide better services:
Click here: http://sourceforge.net/supporters.php
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] SAR Has Dependency On JMS Connection Factory Queue - But No MBean start()

2003-10-08 Thread Nicholas
We have SAR that depends on a JMS Connection Factory
and a Queue. We have attempted to set them as
dependencies in the SAR's jboss-service, but doing so
causes the start() method to never be called at jboss
startup time.

However, not putting in the dependencies results in a
JNDI lookup failure when the MBean looks up the
ConnectionFactory and/or the Queue.

The dependencies we put in look like this:

dependsjboss.mq:service=InvocationLayer,type=JVM/depends
dependsjboss.mq.destination:name=ClientChangeNotification,service=Queue/depends

Which MBeans should I be putting the dependencies on
to make this work ?

Thanks !

//Nicholas

=
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: SF.net Giveback Program.
SourceForge.net hosts over 70,000 Open Source Projects.
See the people who have HELPED US provide better services:
Click here: http://sourceforge.net/supporters.php
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


Re: [JBoss-user] SAR Has Dependency On JMS Connection Factory Queue - But No MBean start()

2003-10-08 Thread Adrian Brock
And the error message is? Something about incomplete deployments?

Regards,
Adrian

On Wed, 2003-10-08 at 22:49, Nicholas wrote:
 We have SAR that depends on a JMS Connection Factory
 and a Queue. We have attempted to set them as
 dependencies in the SAR's jboss-service, but doing so
 causes the start() method to never be called at jboss
 startup time.
 
 However, not putting in the dependencies results in a
 JNDI lookup failure when the MBean looks up the
 ConnectionFactory and/or the Queue.
 
 The dependencies we put in look like this:
 
 dependsjboss.mq:service=InvocationLayer,type=JVM/depends
 dependsjboss.mq.destination:name=ClientChangeNotification,service=Queue/depends
 
 Which MBeans should I be putting the dependencies on
 to make this work ?
 
 Thanks !
 
 //Nicholas
 
 =
 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: SF.net Giveback Program.
 SourceForge.net hosts over 70,000 Open Source Projects.
 See the people who have HELPED US provide better services:
 Click here: http://sourceforge.net/supporters.php
 ___
 JBoss-user mailing list
 [EMAIL PROTECTED]
 https://lists.sourceforge.net/lists/listinfo/jboss-user
-- 
 
Adrian Brock
Director of Support
Back Office
JBoss Group, LLC 
 



---
This SF.net email is sponsored by: SF.net Giveback Program.
SourceForge.net hosts over 70,000 Open Source Projects.
See the people who have HELPED US provide better services:
Click here: http://sourceforge.net/supporters.php
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


Re: [JBoss-user] SAR Has Dependency On JMS Connection Factory Queue - But No MBean start()

2003-10-08 Thread Nicholas
Yes, sorry. It does, but I cannot tell why. The
dependendencies listed below work if we exclude the
JMS  MBeans.


2003-10-08 17:59:37,239 ERROR
[org.jboss.deployment.scanner.URLDeploymentScanner]
MBeanException: Exception in MBean operation
'checkIncompleteDeployments()'
Cause: Incomplete Deployment listing:
Packages waiting for a deployer:
  none
Incompletely deployed packages:
  none
MBeans waiting for classes:
  none
MBeans waiting for other MBeans:
[ObjectName: jboss:service=DataSyncController
 state: CONFIGURED
 I Depend On:  
jboss.jca:name=UpdateCacheDS,service=LocalTxCM
jboss.jca:name=OracleDS,service=LocalTxCM
jboss.jca:name=FLTStagingDS,service=LocalTxCM
jboss.j2ee:jndiName=ejb/ClientManager,service=EJB
jboss.j2ee:jndiName=ejb/UserManager,service=EJB
jboss.j2ee:jndiName=ejb/Client,service=EJB
jboss.j2ee:jndiName=ejb/Combo,service=EJB
jboss.j2ee:jndiName=ejb/ClientAssignment,service=EJB
jboss.j2ee:jndiName=ejb/ClientInactivation,service=EJB
jboss.j2ee:jndiName=ejb/TaxEvent,service=EJB
jboss.j2ee:jndiName=ejb/TaxEventTransaction,service=EJB
jboss.j2ee:jndiName=ejb/QuarterlyProcessStatus,service=EJB
jboss.j2ee:jndiName=ejb/FltHistoryManager,service=EJB
jboss.j2ee:jndiName=ejb/UserManagerLocal,service=EJB
jboss.j2ee:jndiName=ejb/ClientBits,service=EJB
jboss.j2ee:jndiName=ejb/DataSynchLocal,service=EJB
jboss.mq:service=InvocationLayer,type=JVM
jboss.mq.destination:name=ClientChangeNotification,service=Queue
jboss:service=CacheService
jboss:service=EBSScheduler

 Depends On Me: ]

Thanks.

//Nicholas



--- Adrian Brock [EMAIL PROTECTED] wrote:
 And the error message is? Something about incomplete
 deployments?
 
 Regards,
 Adrian
 
 On Wed, 2003-10-08 at 22:49, Nicholas wrote:
  We have SAR that depends on a JMS Connection
 Factory
  and a Queue. We have attempted to set them as
  dependencies in the SAR's jboss-service, but doing
 so
  causes the start() method to never be called at
 jboss
  startup time.
  
  However, not putting in the dependencies results
 in a
  JNDI lookup failure when the MBean looks up the
  ConnectionFactory and/or the Queue.
  
  The dependencies we put in look like this:
  
 

dependsjboss.mq:service=InvocationLayer,type=JVM/depends
 

dependsjboss.mq.destination:name=ClientChangeNotification,service=Queue/depends
  
  Which MBeans should I be putting the dependencies
 on
  to make this work ?
  
  Thanks !
  
  //Nicholas
  
  =
  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: SF.net Giveback
 Program.
  SourceForge.net hosts over 70,000 Open Source
 Projects.
  See the people who have HELPED US provide better
 services:
  Click here: http://sourceforge.net/supporters.php
  ___
  JBoss-user mailing list
  [EMAIL PROTECTED]
 

https://lists.sourceforge.net/lists/listinfo/jboss-user
 -- 
  
 Adrian Brock
 Director of Support
 Back Office
 JBoss Group, LLC 
  
 
 
 

---
 This SF.net email is sponsored by: SF.net Giveback
 Program.
 SourceForge.net hosts over 70,000 Open Source
 Projects.
 See the people who have HELPED US provide better
 services:
 Click here: http://sourceforge.net/supporters.php
 ___
 JBoss-user mailing list
 [EMAIL PROTECTED]

https://lists.sourceforge.net/lists/listinfo/jboss-user


=
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: SF.net Giveback Program.
SourceForge.net hosts over 70,000 Open Source Projects.
See the people who have HELPED US provide better services:
Click here: http://sourceforge.net/supporters.php
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


Re: [JBoss-user] SAR Has Dependency On JMS Connection Factory Queue - But No MBean start()

2003-10-08 Thread Adrian Brock
Is the queue name correct? Does it start if you remove that
dependency?

Post the queue deployment descriptor.

Regards,
Adrian

On Wed, 2003-10-08 at 23:39, Nicholas wrote:
 Yes, sorry. It does, but I cannot tell why. The
 dependendencies listed below work if we exclude the
 JMS  MBeans.
 
 
 2003-10-08 17:59:37,239 ERROR
 [org.jboss.deployment.scanner.URLDeploymentScanner]
 MBeanException: Exception in MBean operation
 'checkIncompleteDeployments()'
 Cause: Incomplete Deployment listing:
 Packages waiting for a deployer:
   none
 Incompletely deployed packages:
   none
 MBeans waiting for classes:
   none
 MBeans waiting for other MBeans:
 [ObjectName: jboss:service=DataSyncController
  state: CONFIGURED
  I Depend On:  
 jboss.jca:name=UpdateCacheDS,service=LocalTxCM
 jboss.jca:name=OracleDS,service=LocalTxCM
 jboss.jca:name=FLTStagingDS,service=LocalTxCM
 jboss.j2ee:jndiName=ejb/ClientManager,service=EJB
 jboss.j2ee:jndiName=ejb/UserManager,service=EJB
 jboss.j2ee:jndiName=ejb/Client,service=EJB
 jboss.j2ee:jndiName=ejb/Combo,service=EJB
 jboss.j2ee:jndiName=ejb/ClientAssignment,service=EJB
 jboss.j2ee:jndiName=ejb/ClientInactivation,service=EJB
 jboss.j2ee:jndiName=ejb/TaxEvent,service=EJB
 jboss.j2ee:jndiName=ejb/TaxEventTransaction,service=EJB
 jboss.j2ee:jndiName=ejb/QuarterlyProcessStatus,service=EJB
 jboss.j2ee:jndiName=ejb/FltHistoryManager,service=EJB
 jboss.j2ee:jndiName=ejb/UserManagerLocal,service=EJB
 jboss.j2ee:jndiName=ejb/ClientBits,service=EJB
 jboss.j2ee:jndiName=ejb/DataSynchLocal,service=EJB
 jboss.mq:service=InvocationLayer,type=JVM
 jboss.mq.destination:name=ClientChangeNotification,service=Queue
 jboss:service=CacheService
 jboss:service=EBSScheduler
 
  Depends On Me: ]
 
 Thanks.
 
 //Nicholas
 
 
 
 --- Adrian Brock [EMAIL PROTECTED] wrote:
  And the error message is? Something about incomplete
  deployments?
  
  Regards,
  Adrian
  
  On Wed, 2003-10-08 at 22:49, Nicholas wrote:
   We have SAR that depends on a JMS Connection
  Factory
   and a Queue. We have attempted to set them as
   dependencies in the SAR's jboss-service, but doing
  so
   causes the start() method to never be called at
  jboss
   startup time.
   
   However, not putting in the dependencies results
  in a
   JNDI lookup failure when the MBean looks up the
   ConnectionFactory and/or the Queue.
   
   The dependencies we put in look like this:
   
  
 
 dependsjboss.mq:service=InvocationLayer,type=JVM/depends
  
 
 dependsjboss.mq.destination:name=ClientChangeNotification,service=Queue/depends
   
   Which MBeans should I be putting the dependencies
  on
   to make this work ?
   
   Thanks !
   
   //Nicholas
   
   =
   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: SF.net Giveback
  Program.
   SourceForge.net hosts over 70,000 Open Source
  Projects.
   See the people who have HELPED US provide better
  services:
   Click here: http://sourceforge.net/supporters.php
   ___
   JBoss-user mailing list
   [EMAIL PROTECTED]
  
 
 https://lists.sourceforge.net/lists/listinfo/jboss-user
  -- 
   
  Adrian Brock
  Director of Support
  Back Office
  JBoss Group, LLC 
   
  
  
  
 
 ---
  This SF.net email is sponsored by: SF.net Giveback
  Program.
  SourceForge.net hosts over 70,000 Open Source
  Projects.
  See the people who have HELPED US provide better
  services:
  Click here: http://sourceforge.net/supporters.php
  ___
  JBoss-user mailing list
  [EMAIL PROTECTED]
 
 https://lists.sourceforge.net/lists/listinfo/jboss-user
 
 
 =
 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: SF.net Giveback Program.
 SourceForge.net hosts over 70,000 Open Source Projects.
 See the people who have HELPED US provide better services:
 Click here: http://sourceforge.net/supporters.php
 ___
 JBoss-user mailing list
 [EMAIL PROTECTED]
 https://lists.sourceforge.net/lists/listinfo/jboss-user
-- 
 
Adrian Brock
Director of Support
Back Office
JBoss Group, LLC 
 



---
This SF.net email is sponsored by: SF.net Giveback Program.
SourceForge.net hosts over 70,000 Open Source Projects.
See the people who have HELPED US provide better services:
Click here: http://sourceforge.net/supporters.php
___
JBoss-user mailing list

Re: [JBoss-user] HTTP basic auth from embedded Tomcat?

2003-10-08 Thread Scott M Stark
See the org.jboss.security.auth.spi.UsersRolesLoginModule described in the
JAAS howto available from the sourceforge docs section:
http://sourceforge.net/docman/display_doc.php?docid=18240group_id=22866

Scott Stark
Chief Technology Officer
JBoss Group, LLC

Matthew Hixson wrote:
I was just wondering if there is any plan to make HTTP basic auth work  
with Tomcat embedded in JBoss using the MemoryRealm.

http://jakarta.apache.org/tomcat/tomcat-4.1-doc/realm- 
howto.html#MemoryRealm

The last I heard was that Realm didn't work when running Tomcat ebedded  
in Tomcat.

Is there any other way to get a simple basic auth working from a text  
configuration file?
  Thanks,
   -M@


---
This SF.net email is sponsored by: SF.net Giveback Program.
SourceForge.net hosts over 70,000 Open Source Projects.
See the people who have HELPED US provide better services:
Click here: http://sourceforge.net/supporters.php
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] MacOS X Server JBoss Management Tool

2003-10-08 Thread Hunter Hillegas
I see that OS X 10.3 ships with a JBoss Management Tool.

Anyone know anything about it?

Who wrote it? Apple? JBossGroup?

Curious.

Hunter



---
This SF.net email is sponsored by: SF.net Giveback Program.
SourceForge.net hosts over 70,000 Open Source Projects.
See the people who have HELPED US provide better services:
Click here: http://sourceforge.net/supporters.php
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


Re: [JBoss-user] Java Preferences

2003-10-08 Thread Guy Rouillier
Brian Wallis wrote:
I need to store and retrieve some application preference data, both on a per 
logged in user (web interface) and system basis. The 
java.util.prefs.Preferences interface seems to provide what I need, but not 
quite. What I need is a jboss version that 
- Stores the preferences within the jboss server directory tree (a prefs
  directory next to log, deploy, conf, ...)
- Uses the callers security context to get the current user name (principal) 
  rather than the property user.name as java.util.prefs.FileSystemPreferences
  does.

Is there anything like this for use in jboss or are other suggestions for easy 
storage/retrival of preference values?
Have you looked at JConfig?  You can use that to serialize arbitrary 
configuration values to any datastore you like - XML file, database, etc.

thanks, brian...



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


--
Guy Rouillier


---
This SF.net email is sponsored by: SF.net Giveback Program.
SourceForge.net hosts over 70,000 Open Source Projects.
See the people who have HELPED US provide better services:
Click here: http://sourceforge.net/supporters.php
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] help : Unsubscribe

2003-10-08 Thread Abhijit Saha
Hi,

Please unsubscribe me from this mailing list for the some time until i give
a new e-mail address.

Thanks  Regards,
Abhijit Saha
Software Engineer,
CA-TCG Software Pvt Ltd
H/F: +91-33-9830164490
Phone : +91-33-23575660/1/2/3/4/5/6 (Extn. 104/105).

E-Mail: [EMAIL PROTECTED]
mailto:[EMAIL PROTECTED] 



-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]
Sent: Thursday, September 18, 2003 6:54 PM
To: [EMAIL PROTECTED]
Subject: JBoss-user digest, Vol 1 #5054 - 11 msgs


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

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

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

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



---
This SF.net email is sponsored by: SF.net Giveback Program.
SourceForge.net hosts over 70,000 Open Source Projects.
See the people who have HELPED US provide better services:
Click here: http://sourceforge.net/supporters.php
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


Re: [JBoss-user] Shared ejb-jars, scoped ears and MDBs

2003-10-08 Thread Neal Sanche
I realize this message was posted a *long* time ago, but it never got 
a reply, and I am running into the same difficulty now. Is there any 
way to assign a JNDI name to an MDB, or supress the automatic 
assignment of a JNDI name so that conflicts like this don't occur?

Cheers.

-Neal

On April 3, 2003 10:30 am, Weiqi Gao wrote:
 In trying to deploy multiple ears that uses shared ejb-jars in the
 same instance of JBoss, I'm using scoped deployment of ears and
 modifying the global JNDI name of the session beans:
  app1.ear (scoped)
  shared-ejb.jar (JNDI name ejb/Foo - ejb/Foo/app1)
  non-shared-ejb.jar, etc.

  app2.ear (scoped)
  shared-ejb.jar (JNDI name ejb/Foo - ejb/Foo/app2)
  non-shared-ejb.jar, etc.

 I encountered a problem with MDBs.  I have an MDB in
 shared-ejb.jar. There is no JNDI name for me to alter because it is
 an MDB.  However the deployer assigns a local JNDI name to it
 anyway based on its ejb-name. My MDB named ejb/Bar occupies the
 JNDI name /local/ejb/Bar upon deployment.  And this causes a
 conflict between app1.ear and app2.ear when deployed in the same
 instance of JBoss.

 The only way out that I can see is to change the ejb-name of the
 MDB. Are there other alternatives?

 Thanks for your help.

 --
 Weiqi Gao
 [EMAIL PROTECTED]




 ---
 This SF.net email is sponsored by: ValueWeb:
 Dedicated Hosting for just $79/mo with 500 GB of bandwidth!
 No other company gives more support or power for your dedicated
 server http://click.atdmt.com/AFF/go/sdnxxaff00300020aff/direct/01/
 ___
 JBoss-user mailing list
 [EMAIL PROTECTED]
 https://lists.sourceforge.net/lists/listinfo/jboss-user



---
This SF.net email is sponsored by: SF.net Giveback Program.
SourceForge.net hosts over 70,000 Open Source Projects.
See the people who have HELPED US provide better services:
Click here: http://sourceforge.net/supporters.php
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] help : Unsubscribe

2003-10-08 Thread CHien-HUng Chang
Hi,

Please unsubscribe me from this mailing list

.thanks and regrds
Chienhung



---
This SF.net email is sponsored by: SF.net Giveback Program.
SourceForge.net hosts over 70,000 Open Source Projects.
See the people who have HELPED US provide better services:
Click here: http://sourceforge.net/supporters.php
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user