Re: [JBoss-user] JBoss On Linux

2003-12-04 Thread David Ward
Peter,

I've read others' responses to your problems, and they all seem to be 
addressing the wrong thing: performance.  What you describe does not 
sound like a performance problem (neither of speed nor memory 
management).  You never said the app was slow, so why do you care about 
SPECjAppServer2002 benchmarks and the like?

It sounds more like a resource leak to me, my first guess being of file 
descriptors.  On Linux/UNIX based systems, socket connections (like to 
your mailserver and database) - not just files - use file descriptors. 
If that's the case, something - or a growing number of things - are 
holding onto sockets or files (same thing to UNIX) and not letting go.

If I were you I would do 2 things:

1) In the short term, increase your system setting for max # of file 
descriptors (in my experience, OS defaults are stunningly low for 
production systems).  This will require a system reboot to take effect.

2) Find out where your resource leak is.  It may be there's one in your 
application (that runs in jboss), and then the cron runs that might 
require a lot of descriptors too.  Together, they could use up to your 
limit.  To diagnose this you might have to employ more than just one 
tool.  netstat (comes with Linux/UNIX), filemon 
(http://www.sysinternals.com/linux/utilities/filemon.shtml) , Optimizeit 
(http://www.borland.com/optimizeit/optimizeit_profiler/), etc.

Last, maybe there really isn't a leak, but the nature of your 
application, plus the crons that run at specific times, just simply 
require more file descriptors than what your system has configured. 
Upping that value might prove to be all you need to do.  If it never 
grows past that max, you're set - no leak.  Unfortunately, without doing 
some surfing, I can't tell you where to set it for your system, or what 
the best value should be.  I'll leave that as an exercise for you.  ;)

Anyway, hope this helps.  And sorry in advance if it ends up leading you 
down the wrong path.  I just wanted to share what your problem smelled 
like to me.

David

Peter Luttrell escribió:

We're using JBoss3.2.1 with Jetty on RedHat 9 with Suns 1.4.2_01 vm. We 
have a pretty heavy load.

After roughly a week many of the boxes start to experience weird 
problems where JBoss is unable to get what looks to be socket 
connections. In some cases, we cannot contact our mailserver, in other 
cases we cannot contact our database; in the latest case we're unable to 
get a connection to the local jndi server (localhost:1099). Sometimes a 
simple restart of jboss will sometimes solves the problems, othertimes 
we have to restart linux. The times of the crashes are roughly 4am and 
sometimes 6am, so it's likely caused by a cron job running at those 
times, which we're currently looking into. Has anyone experienced 
similar problems?
.peter




---
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_id78alloc_id371op=click
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


Re: [JBoss-user] JBoss On Linux

2003-12-04 Thread David Ward
Rod,

Input appreciated and respected, however I think to help Peter we need 
to keep off the performance bunny hole.  He never said performance was 
his problem.

As a side note, you're right: what you tested (startup time) was far 
from a valid performance benchmark.  JVMs intended to boost server 
performance don't try to be fast for startup times (if you want that, 
use the -client jvm option, not -server).  They care more about being 
fast for things servers care about after they're already up and running 
- like handling multiple threads quickly, optimizing server hotspots 
like network connections, and effective memory management of large heaps 
under load, etc.  Besides, I take benchmarks with a grain of salt - each 
custom app does different things, and thus it's impossible that a 
generic benchmark is going to tell you what you really need to know - 
how does tool A stack up against tool B with YOUR application...

Oh shoot, now you got me goin' down the bunny hole.  Seriously, Peter - 
  my guess is you've either got a resource leak or an inappropriate 
resource configuration.  Start by looking at file descriptors.

Just my 2 cents (again),
David
Rod Macpherson escribi:

Downloaded JRockit and launched a large J2EE application in debug mode. JBoss started in 1:24. Using Sun's JDK 1.4 JVM the same application started in 1:32. I would call that a noise-level improvement given JRockit is a commercial product focused on performance. Not a valid benchmark but then if your compiled code is really all that you would expect to see more than a fraction of 1% improvement. Conclusion: JRockit is not worth the disk space it's sitting on:)
 

	-Original Message- 
	From: David Ward [mailto:[EMAIL PROTECTED] 
	Sent: Thu 12/4/2003 6:28 PM 
	To: [EMAIL PROTECTED] 
	Cc: 
	Subject: Re: [JBoss-user] JBoss On Linux
	
	

Peter,

I've read others' responses to your problems, and they all seem to be
addressing the wrong thing: performance.  What you describe does not
sound like a performance problem (neither of speed nor memory
management).  You never said the app was slow, so why do you care about
SPECjAppServer2002 benchmarks and the like?

It sounds more like a resource leak to me, my first guess being of file
descriptors.  On Linux/UNIX based systems, socket connections (like to
your mailserver and database) - not just files - use file descriptors.
If that's the case, something - or a growing number of things - are
holding onto sockets or files (same thing to UNIX) and not letting go.

If I were you I would do 2 things:

1) In the short term, increase your system setting for max # of file
descriptors (in my experience, OS defaults are stunningly low for
production systems).  This will require a system reboot to take effect.

2) Find out where your resource leak is.  It may be there's one in your
application (that runs in jboss), and then the cron runs that might
require a lot of descriptors too.  Together, they could use up to your
limit.  To diagnose this you might have to employ more than just one
tool.  netstat (comes with Linux/UNIX), filemon
(http://www.sysinternals.com/linux/utilities/filemon.shtml) , Optimizeit
(http://www.borland.com/optimizeit/optimizeit_profiler/), etc.

Last, maybe there really isn't a leak, but the nature of your
application, plus the crons that run at specific times, just simply
require more file descriptors than what your system has configured.
Upping that value might prove to be all you need to do.  If it never
grows past that max, you're set - no leak.  Unfortunately, without doing
some surfing, I can't tell you where to set it for your system, or what
the best value should be.  I'll leave that as an exercise for you.  ;)

Anyway, hope this helps.  And sorry in advance if it ends up leading you
down the wrong path.  I just wanted to share what your problem smelled
like to me.

David


Peter Luttrell escribi:

 We're using JBoss3.2.1 with Jetty on RedHat 9 with Suns 1.4.2_01 vm. We
 have a pretty heavy load.

 After roughly a week many of the boxes start to experience weird
 problems where JBoss is unable to get what looks to be socket
 connections. In some cases, we cannot contact our mailserver, in other
 cases we cannot contact our database; in the latest case we're unable to
 get a connection to the local jndi server (localhost:1099). Sometimes a
 simple restart of jboss will sometimes solves the problems, othertimes
 we have to restart linux. The times of the crashes are roughly 4am and
 sometimes 6am, so it's likely caused

Re: [JBoss-user] How to develop Weblogic Startup Class like feature in JBoss 3.2? Please Help

2003-11-13 Thread David Ward
The MBean option would work, however if you need to implement startup/shutdown
capability that is agnostic across app servers, may I suggest the following:

In the Servlet 2.3 spec, ServletContextListeners were introduced. Implement one
of those and enter it a war's web.xml file. Then add this war file to your ear
that also contains your ejb-jar files (if you need more than just a web app).
Then, you can trigger startup from the contextInitialized() method and shutdown
on the contextDestroyed() method. This is a standard J2EE way of doing
startup/shutdown hooks of J2EE applications, and is therefore appserver agnostic.

If you can't use Servlet 2.3 spec, you can use a similar (though not as elegant)
mechanism in 2.2. Write a Serlvet instead of a ServletContextListener, and do
your startup/shutdown code in the init()/destroy() methods, respectively. Then
in web.xml, register the servlet *and be sure to add* a
load-on-startup1/load-on-startup element (the # doesn't really matter unless
you want to order it with other servlets).

If you are using the 2.3 spec, double check the following:
1) Make sure you have the appropriate listener tag in web.xml.
2) Make sure your web.xml is referring to the servlet 2.3 spec in the dtd line
at the top, NOT 2.2.
3) Make sure your listener class ended up in your war file in the correct place,
with the packaging matching that noted in your web.xml listener tag.

Hope this helps,
David


Mensaje citado por Andrew May [EMAIL PROTECTED]:

 We migrated from WebLogic 5 to JBoss and changed our startup classes into
 Standard MBeans. 
 It's possible to do many of the same kind of things start up classes allow
 you to do, such 
 as creating/manipulating connection pools, all via JMX.
 
 If you implement a start() method in your MBean it will be called by JBoss
 when the MBean 
 has been deployed and it's dependancies satisfied. There are also other
 lifecycle methods 
 (e.g. stop()) - I think the details are in the paid for admininstration
 documentation.
 
 If you want to deploy an MBean as part of an application (as opposed to when
 the server 
 starts), you can deploy SARs within an EAR. You need to add the sars to the
 JBoss specific 
 deployment descriptor in the META-INF directory of the EAR, called
 jboss-app.xml:
 
 example jboss-app.xml:
 
 jboss-app
 module
 serviceutil/cache.sar/service
 /module
 /jboss-app
 
 Hope that helps,
 
 -Andrew
 
 Sasidharan, Manoj wrote:
 
  Hello All,
  
  I am desperately looking for some help in developing a JBoss Mbean to
 solve
  our application startup logic issue.
  
  We are moving from Weblogic 7.0 to JBoss 3.2. So looking for some way to
  implement the Weblogic Startup Class functionality in JBoss.
  
  Any help on this would be highly appreciated.
  
  Thanks in advance for your time and suggestions/help.
  
  Best Regards
  MS


---
This SF.Net email sponsored by: ApacheCon 2003,
16-19 November in Las Vegas. Learn firsthand the latest
developments in Apache, PHP, Perl, XML, Java, MySQL,
WebDAV, and more! http://www.apachecon.com/
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] Cocoon war dir hot-redeploy causes JBoss Shutdown

2003-11-11 Thread David Ward
Hi, all.  My company has found a bug, which I've since entered at 
SourceForge.  Thought I'd copy/paste the details here to give it some 
visibility and see if others have seen the same problem.  Thanks!

Bug: 840496
https://sourceforge.net/tracker/?func=detailatid=376685aid=840496group_id=22866
I've discovered a problem that only happens with jboss
3.0 + tomcat + cocoon 2.0 + expanded war directory,
relating to hot-redeploy. Basically, if you have a
cocoon.war/ *directory* web application, and touch it's
web.xml file, JBoss shuts down! Here are the steps to
re-create:
1) Download a completely fresh
jboss-3.0.7_tomcat-4.1.24 from sourceforge.
2) Download a completely fresh cocoon-2.0.4 (vm14) from
apache.
3) Dropped cocoon.war in jboss' deploy directory.
4) Started up jboss.
5) Hit the cocoon servlet (got a sitemap error but
didn't care)
6) touch cocoon.war.
7) NO REDEPLOY PROBLEM
8) Hit the cocoon servlet (got same sitemap error but
still didn't care - at least could still hit it).
9) Stop jboss.
10) Delete the db, tmp and log dirs to be completely
clean distro again.
11) Explode the cocoon.war file into cocoon.war/
*DIRECTORY INSTEAD*.
12) Start up jboss.
13) Hit the cocoon servlet (sitemap error; still don't
care)
14) touch cocoon.war/WEB-INF/web.xml
15) *** REDEPLOY PROBLEM: jboss shuts down!! ***
JBoss/Jetty does not do this. JBoss 3.2.x does not do
this. A JBoss/Tomcat webapp without Cocoon does not do
this. JBoss/Tomcat with a Cocoon war *file* does not
do this. It has to be JBoss 3.0/Tomcat with a Cocoon
2.0 war *directory*, and you touch it's web.xml file to
cause a redeploy. I have tested it on many different
combinations, and here is the breakdown:
1) jboss-3.0.7_tomcat-4.1.24 + cocoon-2.0.4 - FAILED
2) jboss-3.0.8_tomcat-4.1.24 + cocoon-2.0.4 - FAILED
3) jboss-3.0.8_tomcat-4.1.27 + cocoon-2.0.4 - FAILED
4) jboss-3.0.8_tomcat-4.1.29 + cocoon-2.0.4 - FAILED
5) jboss-3.2.2 (tomcat_4.1.27) + cocoon-2.0.4 - PASSED
6) jboss-3.0.8_tomcat-4.1.24 + cocoon-2.1.2 - PASSED,
though 500 errors
Something was fixed in JBoss 3.2.2 / Tomcat that fixed
this problem. Does anyone have any idea what this was?
Unfortunately, we cannot upgrade to JBoss 3.2.2 right
now. If the fix is known, can it be backported back to
3.0? A jboss-3.0.9_tomcat-4.1.29 with the backported
fix would be awesome and greatly appreciated!
BTW, with JBoss 3.2.2, it looks like the shutdown was
intercepted; here's a line from the console:
22:43:58,980 INFO [STDOUT] Mon Nov 03 22:43:58 EST
2003 SHUTDOWN : System.exit() was not called
When I see that line with 3.2.2, the redeploy finishes
and JBoss does not shutdown. Maybe find where that log
is done and see what can be similarly done in 3.0.x to
intercept the shutdown?
Last bit of info: This is using Sun JDK 1.4.1 and
1.4.2. It is recreateable on Windows; not sure about
Linux and MacOSX.
Thanks!
David
PS: Scott, I apologize if it was bad for me to assign it to you.  I did 
it because I know you've been the one in the past that has dealt with 
web-tier integration into jboss, so I thought you'd be interested in 
this one.





---
This SF.Net email sponsored by: ApacheCon 2003,
16-19 November in Las Vegas. Learn firsthand the latest
developments in Apache, PHP, Perl, XML, Java, MySQL,
WebDAV, and more! http://www.apachecon.com/
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] weblogic - jboss transition/translation project?

2003-10-27 Thread David Ward
Hi, all -

Didn't there used to be a project that given weblogic-specific deployment
descriptors, jboss could automagically translate it to it's own needs and use it
(dynamically at deployment time)?

I thought this was undertaken to try to ease migration from weblogic to jboss.
Am I smoking something or am I remembering correctly?  Any pointers to
documentation, list/form threads, etc. appreciated.

Thanks,
David

Oh yeah, what version of weblogic - jboss was this?  My current project
assignment is running weblogic 8.1, and thinking of moving to jboss 3.2.2...


---
This SF.net email is sponsored by: The SF.net Donation Program.
Do you like what SourceForge.net is doing for the Open
Source Community?  Make a contribution, and help us add new
features and functionality. Click here: http://sourceforge.net/donate/
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


Re: [JBoss-user] weblogic - jboss transition/translation project?

2003-10-27 Thread David Ward
Thanks!


Mensaje citado por Alexey Loubyansky [EMAIL PROTECTED]:

 http://jboss.org/services/bea-port.jsp
 
 WebLogic 6.1
 
 Your feedback would be highly appreciated.
 
 alex
 
 David Ward wrote:
  Hi, all -
  
  Didn't there used to be a project that given weblogic-specific deployment
  descriptors, jboss could automagically translate it to it's own needs and
 use it
  (dynamically at deployment time)?
  
  I thought this was undertaken to try to ease migration from weblogic to
 jboss.
  Am I smoking something or am I remembering correctly?  Any pointers to
  documentation, list/form threads, etc. appreciated.
  
  Thanks,
  David
  
  Oh yeah, what version of weblogic - jboss was this?  My current project
  assignment is running weblogic 8.1, and thinking of moving to jboss
 3.2.2...
  
  
  ---
  This SF.net email is sponsored by: The SF.net Donation Program.
  Do you like what SourceForge.net is doing for the Open
  Source Community?  Make a contribution, and help us add new
  features and functionality. Click here: http://sourceforge.net/donate/
  ___
  JBoss-user mailing list
  [EMAIL PROTECTED]
  https://lists.sourceforge.net/lists/listinfo/jboss-user
  
 
 
 
 
 ---
 This SF.net email is sponsored by: The SF.net Donation Program.
 Do you like what SourceForge.net is doing for the Open
 Source Community?  Make a contribution, and help us add new
 features and functionality. Click here: http://sourceforge.net/donate/
 ___
 JBoss-user mailing list
 [EMAIL PROTECTED]
 https://lists.sourceforge.net/lists/listinfo/jboss-user
 


-
David Ward
[EMAIL PROTECTED]
http://www.dotech.com


---
This SF.net email is sponsored by: The SF.net Donation Program.
Do you like what SourceForge.net is doing for the Open
Source Community?  Make a contribution, and help us add new
features and functionality. Click here: http://sourceforge.net/donate/
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


Re: [JBoss-user] Invoking executables from J2EE world

2003-06-30 Thread David Ward
Manoj,

java.lang.Runtime.getRuntime().exec(String);
(There are 6 different overloaded exec methods to choose from.)

Don't do this from an EJB as it is not allowed per ejb spec.
No problem doing it from your web tier, though.

Hope this helps,
David


Mensaje citado por Sasidharan, Manoj [EMAIL PROTECTED]:
 Hello All,
 
 Inside our J2EE application, we have a requirement to invoke executables.
 Can somebody suggest the best ways of implementing this feature.
 
 Thanks in advance for your time and suggestion.
 
 rgds
 MS
 


---
This SF.Net email sponsored by: Free pre-built ASP.NET sites including
Data Reports, E-commerce, Portals, and Forums are available now.
Download today and enter to win an XBOX or Visual Studio .NET.
http://aspnet.click-url.com/go/psa0016ave/direct;at.asp_061203_01/01
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


Re: [JBoss-user] execute some command at end of deployment/startup

2003-06-26 Thread David Ward
Ittay,

I know you want to initialize your beans; I am telling you how you can do it
using a standard j2ee technique.

If you have an ear with an ejb-jar and a war in it (even if the war is just for
this purpose), once your entire app is started up, the contextInitialized method
will be called in your ServletContextListener.  It is in that method that you
can get a handle on some local (or remote if you want) interfaces to your beans
and do your initialization.  All this should happen as part of (the end of) the
deploy of your app before traffic starts hitting it.

The above mechanism is 100% appserver-agnostic, and pure j2ee.  Using MBeans and
depends/ and stuff like that is not guaranteed to work on all appservers.

David


Mensaje citado por Ittay Dror [EMAIL PROTECTED]:

 why use the web side of things? what i want to initialize is my beans.
 ins't there a j2ee way of doing that?
 
 thanx,
 ittay
 On Wed, 2003-06-25 at 15:51, David Ward wrote:
  Ittay,
  
  Implement a javax.servlet.ServletContextListener, add it to your web.xml of
 your
  war (if you have one, otherwise make one), and then you can put stuff in
 the
  contextInitialized(ServletContextEvent) and
  contextDestroyed(ServletContextEvent) methods.  It's a good appserver
 agnostic
  startup/shutdown hook mechanism.
  
  David
  
  
  Mensaje citado por Ittay Dror [EMAIL PROTECTED]:
  
   Hello,
   
   I want to be able to run some code that calls EJBs at the end of my ear
   deployment. I've tried to do this by creating an MBean, and putting the
   code in its start() method. My problem is that the MBean starts before
   the EJBs are deployed. I've tried putting a depends on the object
   names JBoss gives to these beans (in domain jboss.j2ee), but then the
   code is called before JBoss is able to create the beans. There is
   another way, which is to depends the MBean on the EJBModule. However,
   JBoss recognizes this by the full path of the jars, which may change in
   different computers.
   
   Any help is appreciated,
   Thank you,
   Ittay
  
  
  ---
  This SF.Net email is sponsored by: INetU
  Attention Web Developers  Consultants: Become An INetU Hosting Partner.
  Refer Dedicated Servers. We Manage Them. You Get 10% Monthly Commission!
  INetU Dedicated Managed Hosting http://www.inetu.net/partner/index.php
  ___
  JBoss-user mailing list
  [EMAIL PROTECTED]
  https://lists.sourceforge.net/lists/listinfo/jboss-user
 -- 
 ===
 Ittay Dror ([EMAIL PROTECTED])
 User Space, RD
 Qlusters Inc.
 Tel: +972-3-6081956 Fax: +972-3-6081841
 
 
 
 ---
 This SF.Net email is sponsored by: INetU
 Attention Web Developers  Consultants: Become An INetU Hosting Partner.
 Refer Dedicated Servers. We Manage Them. You Get 10% Monthly Commission!
 INetU Dedicated Managed Hosting http://www.inetu.net/partner/index.php
 ___
 JBoss-user mailing list
 [EMAIL PROTECTED]
 https://lists.sourceforge.net/lists/listinfo/jboss-user
 


-
David Ward
[EMAIL PROTECTED]
http://www.dotech.com


---
This SF.Net email is sponsored by: INetU
Attention Web Developers  Consultants: Become An INetU Hosting Partner.
Refer Dedicated Servers. We Manage Them. You Get 10% Monthly Commission!
INetU Dedicated Managed Hosting http://www.inetu.net/partner/index.php
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


Re: [JBoss-user] execute some command at end of deployment/startup

2003-06-25 Thread David Ward
Ittay,

Implement a javax.servlet.ServletContextListener, add it to your web.xml of your
war (if you have one, otherwise make one), and then you can put stuff in the
contextInitialized(ServletContextEvent) and
contextDestroyed(ServletContextEvent) methods.  It's a good appserver agnostic
startup/shutdown hook mechanism.

David


Mensaje citado por Ittay Dror [EMAIL PROTECTED]:

 Hello,
 
 I want to be able to run some code that calls EJBs at the end of my ear
 deployment. I've tried to do this by creating an MBean, and putting the
 code in its start() method. My problem is that the MBean starts before
 the EJBs are deployed. I've tried putting a depends on the object
 names JBoss gives to these beans (in domain jboss.j2ee), but then the
 code is called before JBoss is able to create the beans. There is
 another way, which is to depends the MBean on the EJBModule. However,
 JBoss recognizes this by the full path of the jars, which may change in
 different computers.
 
 Any help is appreciated,
 Thank you,
 Ittay


---
This SF.Net email is sponsored by: INetU
Attention Web Developers  Consultants: Become An INetU Hosting Partner.
Refer Dedicated Servers. We Manage Them. You Get 10% Monthly Commission!
INetU Dedicated Managed Hosting http://www.inetu.net/partner/index.php
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


Re: [JBoss-user] @jboss-net: xdoclet module

2003-06-25 Thread David Ward
I think it would be a *great* idea to have this downloadable at jboss'
sourceforge page.  The jar could be available either:

1) As part of the jboss download (maybe in ${jboss.home}/lib or
${jboss.home}/docs/xdoclet/ or...)

2) As a separate download, but still contextual to each jboss release (just in
case it changes due to a change in jboss for that version).

I'm guessing #1 is easier, and it's the one I would vote for!

Thanks for bringing this up!
David


Mensaje citado por Barlow, Dustin [EMAIL PROTECTED]:

 Is there any plan to distribute the xdoclet-module-jboss-net.jar XDoclet
 ejbdoclet subtask module outside of the main jboss source tree?  
 
 The module wasn't built on the main jboss build and it took me some time to
 find this module and to figure out that I could manually build it in the
 jboss-net subdirectory of the main jboss source tree.  
 
 It may just be me, but this seems to be a less then optimal place to find
 and create this module for use in XDoclet.  I'm sure there are those who
 don't happen to have the jboss source tree, or don't want to download the
 entire jboss code base just to compile this xdoclet module.  Can/Should
 this
 module be added to the main JBoss download page on source forge?
 
 Or have I missed something obvious?
 
 Dustin
 
 
 ---
 This SF.Net email is sponsored by: INetU
 Attention Web Developers  Consultants: Become An INetU Hosting Partner.
 Refer Dedicated Servers. We Manage Them. You Get 10% Monthly Commission!
 INetU Dedicated Managed Hosting http://www.inetu.net/partner/index.php
 ___
 JBoss-user mailing list
 [EMAIL PROTECTED]
 https://lists.sourceforge.net/lists/listinfo/jboss-user
 


-
David Ward
[EMAIL PROTECTED]
http://www.dotech.com


---
This SF.Net email is sponsored by: INetU
Attention Web Developers  Consultants: Become An INetU Hosting Partner.
Refer Dedicated Servers. We Manage Them. You Get 10% Monthly Commission!
INetU Dedicated Managed Hosting http://www.inetu.net/partner/index.php
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


Re: [JBoss-user] Jetty and work files

2003-06-24 Thread David Ward
Quote from: 
http://www.coredevelopers.net/technology/jetty/jetty-jboss-faq.jsp

I want to change where Jetty writes it's temporary files. (revised: 
02/06/2003)
Jetty, being a good java citizen, respects the 'java.io.tmpdir' property 
(defaults to /tmp on Unix). Try setting this as you start up JBoss (see 
the following item) to your required directory e.g. 
$JBOSS_HOME/server/default/tmp.

So basically, set the java.io.tmpdir -D property when jboss starts up 
(edit your run.sh script or set it in your $JAVA_OPTS).

Hope this helps,
David
Lars Hoss escribió::
Hi all!

Is it possible to tell Jetty not to store the work files below /tmp 
(using Linux)?
Currently whenever I start Jetty it creates a directory like 
Jetty_0_0_0_... below /tmp.
This isn't very feasible because our cronjob removes files below /tmp 
after some days
of inactivity. Setting the scratchdir variable in webdefault.xml isn't 
very useable as well for the work
files of all webapps will go into one single directory.

Any suggestions?

Thanks in advance,
Lars


---
This SF.Net email is sponsored by: INetU
Attention Web Developers  Consultants: Become An INetU Hosting Partner.
Refer Dedicated Servers. We Manage Them. You Get 10% Monthly Commission!
INetU Dedicated Managed Hosting http://www.inetu.net/partner/index.php
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


--

-
David Ward
[EMAIL PROTECTED]
http://www.dotech.com


---
This SF.Net email is sponsored by: INetU
Attention Web Developers  Consultants: Become An INetU Hosting Partner.
Refer Dedicated Servers. We Manage Them. You Get 10% Monthly Commission!
INetU Dedicated Managed Hosting http://www.inetu.net/partner/index.php
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] Re: [JBoss-user] J2EE en españa

2003-06-04 Thread David Ward
I think it's a great idea to have a Jboss list in Spanish (I'm looking forward
to participating in it).  I also agree it's probably a good idea that the main
jboss-user list stays mostly in English, since it seems to be the common
denominator for programmers.

However, let's all try to be just a bit more tolerant of a few postings here and
there in other languages.  (I've also seen German and some French - like from
Marc Fleury himself.) This is supposed to be a leading *world-wide community*,
right?  Let me translate Jorge's message for you, so you can catch the drift of
the postive attitude the recent Spanish postings have had:  It is clear that we
do not make distinction of (per) country.  The idea is to construct a Hispanic
community of (on/about) JBoss.

A new Spanish-speaking list has been created, and I expect to see the traffic
move over there.  But again, please tolerate a few initial messages in Spanish
here for people who haven't heard of the new Spanish list, so that those of us
that speak Spanish can help direct them over to the other list.

Thanks for your patience/understanding/tolerance,
David


Mensaje citado por x:

 and spend less time cleaning our inboxes!!
 
 -Original Message-
 From: xxx 
 Sent: Tuesday, June 03, 2003 1:44 PM
 To: [EMAIL PROTECTED]
 Subject: [JBoss-user] RE: [JBoss-user] RE: [JBoss-user] J2EE en españa
 
 
 As long as you stay on JBoss-user, I suggest you keep your J2EE en españa
 thread in English, so we can all participate.
 
  -Original Message-
  From: [EMAIL PROTECTED]
  [mailto:[EMAIL PROTECTED] On Behalf Of 
  xx
  Sent: lundi, 2. juin 2003 17:11
  To: Lista de Jboss
  Subject: Re: [JBoss-user] RE: [JBoss-user] J2EE en españa
  
  
  Claro que no hacemos distinción de país. La idea es construir una 
  comunidad hispana de jboss
  
  JORGE
  
 


---
This SF.net email is sponsored by: eBay
Get office equipment for less on eBay!
http://adfarm.mediaplex.com/ad/ck/711-11697-6916-5
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] Re: [SourceForge.net Release] jboss : JBoss

2003-06-04 Thread David Ward
I clicked on the link for the release notes, and no changes were listed.  Can
anyone please share what the Changes between 3.0.8 and 3.0.7 were?

Thanks,
David


Mensaje citado por SourceForge.net [EMAIL PROTECTED]:

 Project: JBoss.org  (jboss)
 Package: JBoss
 Date   : 2003-06-02 19:41
 
 Project JBoss.org ('jboss') has released the new version of package
 'JBoss'.
 You can download it from SourceForge.net by following this link:
 https://sourceforge.net/project/showfiles.php?group_id=22866release_id=163197
 or browse Release Notes and ChangeLog by visiting this link:
 https://sourceforge.net/project/shownotes.php?release_id=163197 
 
 You receive this email because you requested to be notified when new
 versions
 of this package were released. If you don't wish to be notified in the
 future,
 please login to SourceForge.net and click this link:
 https://sourceforge.net/project/filemodule_monitor.php?filemodule_id=16942
 If you lost your SourceForge.net login name or password, refer to this
 document:
 https://sourceforge.net/docman/display_doc.php?docid=760group_id=1
 
 Note that you may receive this message indirectly via one of your mailing
 list
 subscriptions. Please review message headers before reporting unsolicited
 mailings.
 


---
This SF.net email is sponsored by: eBay
Get office equipment for less on eBay!
http://adfarm.mediaplex.com/ad/ck/711-11697-6916-5
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] Re: [JBoss-user] J2EE en españa

2003-06-04 Thread David Ward
I did translate it (I put it in quotes), but here it is again:

It is clear that we do not make distinction of (per) country.  The idea is to
construct a Hispanic community of (on/about) JBoss.

Just so everyone understands, the point of all the messages in Spanish was that
a new list/forum was being created.  Postings on jboss-user were to get
interest/support/ideas for and advertise this new community to those jboss-user
subscribers who speak Spanish.

Here's the list: http://listas.javahispano.org/cgi-bin/mailman/listinfo/jboss
Here's the initial forum:
http://www.javahispano.org/forums.thread.action?forum=2thread=67384417id=1801690075

Personally, I am in full support of spin-off language-specific lists/forums if
it helps people - especially if it helps them spread the use of JBoss!  ;)  That
being said, I am happy to see other languages on the main jboss-user list,
because they need a place to start from and meet other people, right?

David


Mensaje citado por Bhagyashree Jogdand [EMAIL PROTECTED]:

 you said you were gonna translate JORGE's message...
 but u forgot
 can you please :-)
 Thanks,
 Bhagyashree
 
 - Original Message -
 From: David Ward [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Sent: Tuesday, June 03, 2003 6:29 PM
 Subject: [JBoss-user] Re: [JBoss-user] J2EE en españa
 
 
 I think it's a great idea to have a Jboss list in Spanish (I'm looking
 forward
 to participating in it).  I also agree it's probably a good idea that the
 main
 jboss-user list stays mostly in English, since it seems to be the common
 denominator for programmers.
 
 However, let's all try to be just a bit more tolerant of a few postings
 here
 and
 there in other languages.  (I've also seen German and some French - like
 from
 Marc Fleury himself.) This is supposed to be a leading *world-wide
 community*,
 right?  Let me translate Jorge's message for you, so you can catch the
 drift
 of
 the postive attitude the recent Spanish postings have had:  It is clear
 that we
 do not make distinction of (per) country.  The idea is to construct a
 Hispanic
 community of (on/about) JBoss.
 
 A new Spanish-speaking list has been created, and I expect to see the
 traffic
 move over there.  But again, please tolerate a few initial messages in
 Spanish
 here for people who haven't heard of the new Spanish list, so that those of
 us
 that speak Spanish can help direct them over to the other list.
 
 Thanks for your patience/understanding/tolerance,
 David
 
 
 Mensaje citado por x:
 
  and spend less time cleaning our inboxes!!
 
  -Original Message-
  From: xxx
  Sent: Tuesday, June 03, 2003 1:44 PM
  To: [EMAIL PROTECTED]
  Subject: [JBoss-user] RE: [JBoss-user] RE: [JBoss-user] J2EE en españa
 
 
  As long as you stay on JBoss-user, I suggest you keep your J2EE en
 españa
  thread in English, so we can all participate.
 
   -Original Message-
   From: [EMAIL PROTECTED]
   [mailto:[EMAIL PROTECTED] On Behalf Of
   xx
   Sent: lundi, 2. juin 2003 17:11
   To: Lista de Jboss
   Subject: Re: [JBoss-user] RE: [JBoss-user] J2EE en españa
  
  
   Claro que no hacemos distinción de país. La idea es construir una
   comunidad hispana de jboss
  
   JORGE
  
  
 
 
 ---
 This SF.net email is sponsored by: eBay
 Get office equipment for less on eBay!
 http://adfarm.mediaplex.com/ad/ck/711-11697-6916-5
 ___
 JBoss-user mailing list
 [EMAIL PROTECTED]
 https://lists.sourceforge.net/lists/listinfo/jboss-user
 
 
 
 
 ---
 This SF.net email is sponsored by: eBay
 Get office equipment for less on eBay!
 http://adfarm.mediaplex.com/ad/ck/711-11697-6916-5
 ___
 JBoss-user mailing list
 [EMAIL PROTECTED]
 https://lists.sourceforge.net/lists/listinfo/jboss-user
 


-
David Ward
[EMAIL PROTECTED]
http://www.dotech.com


---
This SF.net email is sponsored by: eBay
Get office equipment for less on eBay!
http://adfarm.mediaplex.com/ad/ck/711-11697-6916-5
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


Re: [JBoss-user] JMS Queue Question

2003-05-29 Thread David Ward
Excuse me if I'm wrong, but is this the same Ed Brown that was flaming JBoss on
the jboss-user list (though not being an actual user) some months ago?  If so,
what is your motivation for continued harassment?  If not, I apologize and ask
that you provide the answer you seem to be sitting on.  ;)

Thanks,
David


Mensaje citado por Ed Brown [EMAIL PROTECTED]:

 
 Yes.
 
 Quoting David Ward [EMAIL PROTECTED]:
 
  Can anyone please help me with this?
  
  Thanks again,
  David
  
  
  Mensaje citado por David Ward [EMAIL PROTECTED]:
  
   Hi, all - got a general JMS question I hope someone could help me with.
   
   It has to do with the QueueSession.createReceiver(Queue,String) method.
 
   The
   second parameter defines a messageSelector.  Now the nature of queues
 is
  that
   a
   message stays there until someone takes it out and acknowledges it, or
 the
   message expires.  My question is, what happens if no one grabs the
 message
   because no one matches the selector, and there is no expire time set? 
 Do
   they
   just pile up?
   
   Thanks,
   David
   
  



---
This SF.net email is sponsored by: ObjectStore.
If flattening out C++ or Java code to make your application fit in a
relational database is painful, don't do it! Check out ObjectStore.
Now part of Progress Software. http://www.objectstore.net/sourceforge
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


Re: [JBoss-user] JMS Queue Question

2003-05-27 Thread David Ward
Can anyone please help me with this?

Thanks again,
David


Mensaje citado por David Ward [EMAIL PROTECTED]:

 Hi, all - got a general JMS question I hope someone could help me with.
 
 It has to do with the QueueSession.createReceiver(Queue,String) method. 
 The
 second parameter defines a messageSelector.  Now the nature of queues is that
 a
 message stays there until someone takes it out and acknowledges it, or the
 message expires.  My question is, what happens if no one grabs the message
 because no one matches the selector, and there is no expire time set?  Do
 they
 just pile up?
 
 Thanks,
 David
 


---
This SF.net email is sponsored by: ObjectStore.
If flattening out C++ or Java code to make your application fit in a
relational database is painful, don't do it! Check out ObjectStore.
Now part of Progress Software. http://www.objectstore.net/sourceforge
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


Re: [JBoss-user] jetty single sign-on

2003-04-09 Thread David Ward
Can anyone please help me with this?  Is this something I need to work out
especially for the JBoss/Jetty bundle?  Or maybe it's just a Jetty thing and I
should try to find and query a jetty-user list?

Thanks again,
David


Mensaje citado por David Ward [EMAIL PROTECTED]:

 We would like to enable single-sign for web apps deployed with
 JBoss-3.0.6/Jetty.  We know how to to do it with Tomcat.  What do we need to
 get
 it working with bundled Jetty?
 
 I'm guessing we need to tweak one/all of these files?:
 
 1) $JBOSS_HOME/server/default/deploy/jbossweb.sar/webdefault.xml
 (SessionDomain
 parameter?)
 
 2)
 $JBOSS_HOME/server/default/deploy/jbossweb.sar/META-INF/jboss-service.xml
 
 3) shared jaas security domain in jboss-web.xml in my war files' WEB-INF
 dirs?
 
 Again, those are guesses.  Any help greatly appreciated.
 
 Thanks,
 David
 


---
This SF.net email is sponsored by: Etnus, makers of TotalView, The debugger 
for complex code. Debugging C/C++ programs can leave you feeling lost and 
disoriented. TotalView can help you find your way. Available on major UNIX 
and Linux platforms. Try it free. www.etnus.com
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] jetty single sign-on

2003-04-04 Thread David Ward
We would like to enable single-sign for web apps deployed with
JBoss-3.0.6/Jetty.  We know how to to do it with Tomcat.  What do we need to get
it working with bundled Jetty?

I'm guessing we need to tweak one/all of these files?:

1) $JBOSS_HOME/server/default/deploy/jbossweb.sar/webdefault.xml (SessionDomain
parameter?)

2) $JBOSS_HOME/server/default/deploy/jbossweb.sar/META-INF/jboss-service.xml

3) shared jaas security domain in jboss-web.xml in my war files' WEB-INF dirs?

Again, those are guesses.  Any help greatly appreciated.

Thanks,
David


---
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


[JBoss-user] sychronization problem with flushAuthenticationCache?

2003-04-03 Thread David Ward
Using jboss-3.0.6_tomcat-4.1.18 on Solaris 9, Sun JDK 1.4.1_01, web+ejb+db app,
all using J2EE declarative security.

There are times in our application where we have to use the MBeanServer to call
flushAuthenticationCache(ourdomain) on the JaasSecurityManagerService.  We are
looking forward to 3.0.7 being released so we can just clear out roles for
specific users, but in the meantime we have to flush the whole thing.  Even with
the fix, though, there seems to be a problem...

It turns out that if it's timed just right, flushing the auth cache during a
request to a secure resource on the server could cause
HttpServletRequest.isUserInRole(String) to return false when it should return
true.  We are able to recreate this by hitting a servlet (that calls the flush)
multiple times in one browser while someone else is using the application
normally in another.  At some point the user ends up with a you do not have
access to this URL error - when they should have access.

I've poured through the mailing list, forums and sourceforge tracker, and see a
handful of other people who have experienced *similar* problems (including
myself in a bug that was patched in 2.4.7+patch - thanks Scott! ;) ).  Please
let me know if this is a known issue or not.  If not, I can enter a bug at
sourceforge.  If need be, I can also provide a test case.

Thanks muchly,
David


---
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


Re: AW: [JBoss-user] JBoss: Not Ready For Prime Time

2003-04-02 Thread David Ward
You've said that many times; you're starting to sound like a broken record.

Everyone has a right to their opinion, however the jboss-USER list is a place
for USERS of jboss to voice theirs.  Go set up a NOT-jboss-user list and voice
your opinion there.  If you're not going to contribute, and especially if you're
not going to even use it, then get off this list.  I'm surprised the list owners
haven't booted you off already.

Bet of luck to you with your $XX,XXX bills,
David


Mensaje citado por [EMAIL PROTECTED]:

 ...If I had the time to
 contribute, I would. As it stands, I don't see JBoss as being a production
 ready tool...


---
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


Re: [JBoss-user] EJB: trigger/event from CMP set method?

2003-04-02 Thread David Ward
Darren,

Can you try something like this?
(Make sure these tags create the xml you need, but you get the idea.)


/**
 * @ejb.interface-method
 */
public void setStartDate(Date pStartDate) {
setActualStartDate(pStartDate);
setDeadlineDate( new Date(pStartDate.getTime() + 43200) );
}

/**
 * @ejb.persistence column-name=START_DATE
 */
public abstract void setActualStartDate(Date pStartDate);

/**
 * @ejb.interface-method
 * @ejb.persistence column-name=DEADLINE_DATE
 */
public abstract void setDeadlineDate(Date pDeadlineDate);


Hope this helps,
David


Mensaje citado por Darren Hartford [EMAIL PROTECTED]:

 Hi all,
 Using CMP Entity beans with a Session facade. I would like to have an
 event/trigger happen when a specific field is changed in my database, but I
 don't want to use db-specific triggers.
 
 As an example, when setStartDate is changed, have it automatically call the
 'setDeadlineDate' with 5 days more than StartDate.  
 
 I know this is an easy thing to do in the Session methods, but I have many
 methods that may modify the StartDate field, and rather have this
 trigger/event be consistent no matter who/what changes that field (within my
 application, obviously if an external app changes the field in the database
 I'm out of luck).
 
 Any ideas or suggestions please? Looking for best solution instead of working
 around the problem. Using CMP 2 entity beans with xDoclet on Jboss 3.2RC4.
 thanky!
 -D


---
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


[JBoss-user] jboss-3.0.7?

2003-04-01 Thread David Ward
Curious when 3.0.7 is going to be released.  There's 2 things that are
supposedly fixed that would be very helpful for us (and probably others) to get
our hands on:

1) Getting shutdown client class to work again (don't know the tracker id but
I've seen talk about this on the user list).

2) [ 677614 ] method to remove single Principal from authentication cache
http://sourceforge.net/tracker/index.php?func=detailaid=677614group_id=22866atid=376688

Thanks!
David


---
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


[JBoss-user] managed transaction problem

2003-04-01 Thread David Ward
Hello, all.

I'm having transaction trouble with jboss-3.0.6/jetty, jdk 1.4.1_02 and Oracle
9i w/ojdbc14.jar.  Please see the ASCII-art diagram below (hopefully it will
line up for everyone).

  Client
|
   (1)
|
V
  SLSB--(2)--[Oracle]
|^
   (3)   |
||
V|
 JMS Topic  (5)
||
   (4)   |
||
V|
Subscriber---+

Step:
(1) Client calls SLSB (stateless session bean)
(2) SLSB puts new data into Oracle database
(3) SLSB sends a message to a JMS Topic saying data has been created
(4) Topic notified Subscriber
(5) Subscriber pulls new data from database

All that gets sent to the Subscriber is the key for the new data that was
successfully inserted by the SLSB.  The problem is that when the Subscriber goes
to pull the data from Oracle, it's not there (yet!).  From what I can tell, the
JDBC Connection the SLSB was using hasn't been commited yet, so the Connection
the Subscriber is using can't see the inserted data yet.

Right now I have transaction type of Required on the SLSB, but I've tried
RequiresNew and that doesn't work.  I've also tried NotSupported and Never for
hope of doing my own JDBC Connection commit, but then the
org.jboss.adapter.jdbc.local.LocalManagedConnection complains that I can't do my
own commit (or change the autoCommit setting) during a managed transaction.

Please help!  Any and all suggestions welcome.

Thanks,
David


---
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


Re: [JBoss-user] jboss-3.0.7?

2003-04-01 Thread David Ward
Thanks, Scott!


Mensaje citado por Scott M Stark [EMAIL PROTECTED]:

 Maybe end of this week or early next week depending on when the
 3.2.0 release gets out the door.
 
 
 Scott Stark
 Chief Technology Officer
 JBoss Group, LLC
 
 
 - Original Message - 
 From: David Ward [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Sent: Tuesday, April 01, 2003 11:40 AM
 Subject: [JBoss-user] jboss-3.0.7?
 
 
  Curious when 3.0.7 is going to be released.  There's 2 things that are
  supposedly fixed that would be very helpful for us (and probably others) to
 get
  our hands on:
  
  1) Getting shutdown client class to work again (don't know the tracker id
 but
  I've seen talk about this on the user list).
  
  2) [ 677614 ] method to remove single Principal from authentication cache
 

http://sourceforge.net/tracker/index.php?func=detailaid=677614group_id=22866atid=376688
  
  Thanks!
  David
  


---
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


Re: Re[2]: [JBoss-user] simple Class-Path/ jar dependency question

2003-03-28 Thread David Ward
Try:

import org.apache.log4j.*;

instead of:

import org.apache.log4j;

Better yet, just import the Logger class specifically.  You don't need the whole
package.

Now, if the bad import line was just a typo on your part (which now that I think
about it, it probably is - otherwise you wouldn't be able to compile), double
check that there is a a log4j.jar in $JBOSS_HOME/server/default/lib/.

David



Mensaje citado por costin [EMAIL PROTECTED]:

 Okay, great; than why  :
 
   import org.apache.log4j;
 
 doesn`t work?
 
 As least that`s the log4j import statement AFAIK.
 
 DW Log4J comes with JBoss, and you have *no need* to include it in *any* of
 your
 DW application units.  Ready to use, out of the box - no messing with
 classpath! 
 DW Why would you want log4j available *only* to one app?  IMHO a logging
 service is
 DW a nice thing for an app server to provide to all deployed applications,
 and
 DW Log4J's the way to go...
 
 DW David
 
 
 
 DW Mensaje citado por costin [EMAIL PROTECTED]:
 
Hi!
  
I have a very little and common question about a problem I can`t get
solved. I have the following directories:
  
  [EMAIL PROTECTED] my]$ tree ./
  ./
  |-- META-INF
  |   `-- application.xml
  |-- ejb.jar
  |   |-- META-INF
  |   |   |-- ejb-jar.xml
  |   |   |-- jboss.xml
  |   |   `-- jbosscmp-jdbc.xml
  |   `-- app
  |   |-- ejb
  |   |   `-- *.class
  |   `-- interfaces
  |   `-- *.class
  |-- lib
  |   `-- log4j-1.2.7.jar
  `-- web.war
  |-- WEB-INF
  |   |-- classes
  |   |   `-- log4j-1.2.7.jar - ../../../lib/log4j-1.2.7.jar
  |   |-- lib
  |   |   `-- log4j-1.2.7.jar - ../../../lib/log4j-1.2.7.jar
  |   `-- web.xml
  `-- a.jsp
  
  In a.jsp I`m doing a simple import org.apache.log4j;
  
  Unfortunatelly this gives me an error as the file cannot be find.
  I`ve put even links to the jar in the appropriate directories (as you
  can see) but at no effect.
  
  What I am doing wrong? I want to make the log4j available to my
  application in the jar form without adding it to the class-path(i.e.
  available only to this ear).
  
  
  --
  Thanks,
   costin  
  
  
  
  ---
  This SF.net email is sponsored by:
  The Definitive IT and Networking Event. Be There!
  NetWorld+Interop Las Vegas 2003 -- Register today!
  http://ads.sourceforge.net/cgi-bin/redirect.pl?keyn0001en
  ___
  JBoss-user mailing list
  [EMAIL PROTECTED]
  https://lists.sourceforge.net/lists/listinfo/jboss-user
  
 
 
 DW -
 DW David Ward
 DW [EMAIL PROTECTED]
 DW http://www.dotech.com
 
 
 DW ---
 DW This SF.net email is sponsored by:
 DW The Definitive IT and Networking Event. Be There!
 DW NetWorld+Interop Las Vegas 2003 -- Register today!
 DW http://ads.sourceforge.net/cgi-bin/redirect.pl?keyn0001en
 DW ___
 DW JBoss-user mailing list
 DW [EMAIL PROTECTED]
 DW https://lists.sourceforge.net/lists/listinfo/jboss-user
 
 
 -- 
  costinmailto:[EMAIL PROTECTED]
 
 
 
 ---
 This SF.net email is sponsored by:
 The Definitive IT and Networking Event. Be There!
 NetWorld+Interop Las Vegas 2003 -- Register today!
 http://ads.sourceforge.net/cgi-bin/redirect.pl?keyn0001en
 ___
 JBoss-user mailing list
 [EMAIL PROTECTED]
 https://lists.sourceforge.net/lists/listinfo/jboss-user
 


-
David Ward
[EMAIL PROTECTED]
http://www.dotech.com


---
This SF.net email is sponsored by:
The Definitive IT and Networking Event. Be There!
NetWorld+Interop Las Vegas 2003 -- Register today!
http://ads.sourceforge.net/cgi-bin/redirect.pl?keyn0001en
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


Re: [JBoss-user] Starting threads from session beans

2003-03-27 Thread David Ward
Alex,

It is not permissible.  It is not in the j2ee spec; it is in the ejb spec.

ejb-2_0-fr2-spec.pdf: 24.1.2 Programming restrictions, page 495:

The enterprise bean must not attempt to manage threads. The enterprise bean
must not attempt to start, stop, suspend, or resume a thread; or to change a
thread's priority or name. The enterprise bean must not attempt to manage thread
groups.

- These functions are reserved for the EJB Container. Allowing the enterprise
bean to manage threads would decrease the Container s ability to properly manage
the runtime environment.

Someone else who knows more than me can answer your last question, but I'll
guess you're right - the tx (and probably security) information is probably
related at the thread level.  A possible implementation is the
java.lang.ThreadLocal class.

David


Mensaje citado por Alex Sumner [EMAIL PROTECTED]:

 Hi,
 
 Briefly: is it permissible to start a new thread from a thread running
 in a session bean? 
 
 I've heard that it isn't allowed, but can't see this explicitly
 prohibited in the J2EE specs. More importantly, what will the
 consequences be in JBoss? If the session bean thread is in a TX, would I
 be correct in assuming the new thread will not be associated with that
 TX?
 
 Thanks,
 
 Alex
 
 
 
 ---
 This SF.net email is sponsored by:
 The Definitive IT and Networking Event. Be There!
 NetWorld+Interop Las Vegas 2003 -- Register today!
 http://ads.sourceforge.net/cgi-bin/redirect.pl?keyn0001en
 ___
 JBoss-user mailing list
 [EMAIL PROTECTED]
 https://lists.sourceforge.net/lists/listinfo/jboss-user
 


-
David Ward
[EMAIL PROTECTED]
http://www.dotech.com


---
This SF.net email is sponsored by:
The Definitive IT and Networking Event. Be There!
NetWorld+Interop Las Vegas 2003 -- Register today!
http://ads.sourceforge.net/cgi-bin/redirect.pl?keyn0001en
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


Re: [JBoss-user] OT: Data Internationalisation Best Practice

2003-03-24 Thread David Ward
Maybe you could do something like this:

++
| product|
++
| product_key  number pk |
| name_i18n_id number|
| desc_i18n_id number|
++
| sequence: product_key  |
++
 |
 V
++
|i18n_text   |
++
| i18n_keynumber pk  |
| i18n_id number |
| locale  varchar(5) |
| value   varchar|
++
| sequence:i18n_key  |
| contstraint: i18n_id + locale = unique |
++
example data:

product
===
product_keyname_i18n_iddesc_i18n_id
---
25 41   42
i18n_text

i18n_keyi18n_idlocalevalue
---
1  1 enyes
2  1 essí
  179 41 enexample product
  180 41 esproducto del ejemplo
  181 42 envery easy to use
  182 42 en_US freakin' easy to use
  183 42 esmuy fácil utilizar
DB note:

Unless you only care about Western/European languages, I suggest you 
*install* your database as Unicode, UTF-8.  You will then be able to 
support Japanese, Simplified Chinese, etc.

Possible Code:
==
You could either do the CMR's to pull the strings for the value objects, 
or you could have a singleton, caching I18NTextFactory that returns 
I18NText objects that maintain the Locale-String mappings.

Maybe:

ProductValue.java
-
public long getDescriptionId() {
return mDescriptionId;
}
public String getDescription(Locale pLocale) {
if (mDescriptionText == null) {
mDescriptionText =
I18NTextFactory.getInstance().getText(mDescriptionId);
}
return mDescriptionText.getValue(pLocale);
}
private I18NText mDescriptionText = null;
productPage.jsp
===
%= productValue.getDescription( pRequest.getLocale() ) %

Let me know how you decide to do it as i18n is very interesting to me.

Thanks,
David


Brian McSweeney escribió::
Hi all,
 
This is way off JBoss as a topic, but because of the expertise in
developing J2EE apps and because the xpetstore applicaiton shows
off using JBoss as a J2EE server I thought I'd ask this design
question here anyway. Hope that's okay.
 
we are looking at internationalising the
xpetstore application http://xpetstore.sourceforge.net
 
Luckily, Herve build the application using Resource bundles for
the front end, so all the JSPs can grab all the web-site's labels
from the correct language Resource Bundle. Great!
 
However, some data that is represented in the database might
not be so easy to internationalise. For example, the application is
a basic webstore, so it has a product catalogue with the following
database structure:
 
+--+
|Category   |   
+--+
|  name  |
|  description  | 
|   etc|
+--+
   | 1
   |
   |
   | *
+--+
|Product |   
+--+
|  name  |
|  description  | 
|   etc|
+--+
   | 1
   |
   |
   | *
+--+
|Item  |   
+--+
|  name  |
|  description  | 
|  list price |  
|   etc|
+--+
 
Now, some of this information must obviously be displayed on
the website, such as names, descriptions and prices. However
they are currently entered in the database as english.
 
We identified two initial possiblities -
 
Strategy 1)
Have a field in each table for each language
 
+---+
|Product  |   
+---+
|  name_default|
|  name_french |
|  name_german   |
|  description_default | 
|  description_french | 
|  description_german   | 
|   etc   

Re: [JBoss-user] OT: Data Internationalisation Best Practice

2003-03-24 Thread David Ward
(Sending this again as my first reply somehow didn't appear to make it...)

Maybe you could do something like this:

++
| product|
++
| product_key  number pk |
| name_i18n_id number|
| desc_i18n_id number|
++
| sequence: product_key  |
++
 |
 V
++
|i18n_text   |
++
| i18n_keynumber pk  |
| i18n_id number |
| locale  varchar(5) |
| value   varchar|
++
| sequence:i18n_key  |
| contstraint: i18n_id + locale = unique |
++
example data:

product
===
product_keyname_i18n_iddesc_i18n_id
---
25 41   42
i18n_text

i18n_keyi18n_idlocalevalue
---
1  1 enyes
2  1 essí
  179 41 enexample product
  180 41 esproducto del ejemplo
  181 42 envery easy to use
  182 42 en_US freakin' easy to use
  183 42 esmuy fácil utilizar
DB note:

Unless you only care about Western/European languages, I suggest you 
*install* your database as Unicode, UTF-8.  You will then be able to 
support Japanese, Simplified Chinese, etc.

Possible Code:
==
You could either do the CMR's to pull the strings for the value objects, 
or you could have a singleton, caching I18NTextFactory that returns 
I18NText objects that maintain the Locale-String mappings.

Maybe:

ProductValue.java
-
public long getDescriptionId() {
return mDescriptionId;
}
public String getDescription(Locale pLocale) {
if (mDescriptionText == null) {
mDescriptionText =
I18NTextFactory.getInstance().getText(mDescriptionId);
}
return mDescriptionText.getValue(pLocale);
}
private I18NText mDescriptionText = null;
productPage.jsp
===
%= productValue.getDescription( request.getLocale() ) %

Let me know how you decide to do it as i18n is very interesting to me.

Thanks,
David
Brian McSweeney escribió::
Hi all,
 
This is way off JBoss as a topic, but because of the expertise in
developing J2EE apps and because the xpetstore applicaiton shows
off using JBoss as a J2EE server I thought I'd ask this design
question here anyway. Hope that's okay.
 
we are looking at internationalising the
xpetstore application http://xpetstore.sourceforge.net
 
Luckily, Herve build the application using Resource bundles for
the front end, so all the JSPs can grab all the web-site's labels
from the correct language Resource Bundle. Great!
 
However, some data that is represented in the database might
not be so easy to internationalise. For example, the application is
a basic webstore, so it has a product catalogue with the following
database structure:
 
+--+
|Category   |   
+--+
|  name  |
|  description  | 
|   etc|
+--+
   | 1
   |
   |
   | *
+--+
|Product |   
+--+
|  name  |
|  description  | 
|   etc|
+--+
   | 1
   |
   |
   | *
+--+
|Item  |   
+--+
|  name  |
|  description  | 
|  list price |  
|   etc|
+--+
 
Now, some of this information must obviously be displayed on
the website, such as names, descriptions and prices. However
they are currently entered in the database as english.
 
We identified two initial possiblities -
 
Strategy 1)
Have a field in each table for each language
 
+---+
|Product  |   
+---+
|  name_default|
|  name_french |
|  name_german   |
|  description_default | 
|  description_french | 

Re: [JBoss-user] new datasource

2003-03-23 Thread David Ward
Put it in the deploy subdir, and it will be hot-deployed.  Make sure you 
have the appropriate jdbc driver in the lib subdir first.

eg:
$JBOSS_HOME/server/default/lib/ojdbc14.jar
$JBOSS_HOME/server/default/deploy/oracle-ds.xml
Nathan Hoover escribió::
I found and configured that XML file... I was looking for instructions 
on what to do with the XML file after that.

N




---
This SF.net email is sponsored by:Crypto Challenge is now open!
Get cracking and register here for some mind boggling fun and
the chance of winning an Apple iPod:
http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0031en
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


Re: [JBoss-user] Creating a SQL sequence

2003-03-03 Thread David Ward
What about Oracle?

thx.

Mensaje citado por Alex Loubyansky [EMAIL PROTECTED]:

 Not in 3.0 branch. You need to upgrade to 3.2.
 The you can make use of entity-commands (see standardjbosscmp-jdbc.xml)
 It'll allow you to use database generated values (mysql, informix,
 sybase, hsql), specify custom sql statement to fetch new key value
 (this is for sequences), provide JNDI name for key generator factory
 (currently, only string UUID is available).
 
 alex
 
 Monday, March 03, 2003, 5:46:57 PM, Steve Jones wrote:
 
 SJ Hi,
 
 SJ I'm interested in creating a sequence in my DB at the
 SJ point of table creation by the CMP container. Is this sort
 SJ of thing configurable? Or is there a class that could be
 SJ subclassed to implement this?
 
 SJ I'm using JBoss 3.0.4.


---
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] somewhat off topic - Operations logging

2003-02-28 Thread David Ward
Have you read *any* of the Log4J docs (api or otherwise) or tried using it!?!?

Log4J is very solid and very robust.  It can log not just to file (including
rolling) but to a database, to email, to jms, to syslog, etc.  It can be
configured via xml (preferred) or properties.  Filtering and log levels are easy
to use.  You can use standard formats or define your own.  It can be managed via
JMX.  Logging can be done asyncronously. ... The list goes on and on.

http://jakarta.apache.org/log4j/docs/documentation.html
http://jakarta.apache.org/log4j/docs/api/index.html

And what do you mean by lose packets?  You mean lose a log record?  I've never
seen it happen with Log4J.

As an aside, as much as I love Log4J (and use it in all my apps now) - I don't
use its API directly.  I use Jakarta Commons Logging, which sits on TOP of Log4J
(or JDK1.4 logging, or whatever - it's pluggable).  It works very well, and I
don't lose any of my Log4J features.  It just allows the site administrator to
change the actual logging implementation if he want to.  The code just uses the
interfaces.  Of course, I don't see why anyone would NOT want to use Log4J for
the logging implementation...

http://jakarta.apache.org/commons/logging.html

David

Mensaje citado por costin [EMAIL PROTECTED]:

   Hi!
 
   This is somewhat off-topic but here goes. I need to implement some
   sort of logging in my application, meaning each time an operation on
   the database is done (or more precise an operation happining with
   tranzaction) I need to log it in a safe manner.
 
   I am thinking about the log4j but this is just a simple output - I
   need a very strong logging facility (I don`t want to lose packets).
 
   Can anyone give me a clue?
 
 --
 Thanks,
  costin  
 
 


---
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] somewhat off topic - Operations logging

2003-02-28 Thread David Ward
http://jakarta.apache.org/log4j/docs/api/org/apache/log4j/net/JMSAppender.html

In software, always see what's available before you roll your own.

David

--

Mensaje citado por Dan Avram [EMAIL PROTECTED]:

 You could try to extend a little bit log4j to output your logs to a JMS
 server.
 
 Has anyone already did something like this ?
 
 Dan
 


---
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] JaasSecurityManagerSercvice flushing credentials

2003-02-27 Thread David Ward
I have submitted this RFE that will allow flusing of just a single 
user's credentials:
http://sourceforge.net/tracker/index.php?func=detailaid=677614group_id=22866atid=376688

Hers is the original email thread:
http://www.mail-archive.com/jboss-user%40lists.sourceforge.net/msg25514.html
Scott Stark has picked it (the RFE) up and has said he would try to get 
it in the next version.  I am hoping that means JBoss 3.0.7, not just 
the final 3.2 release.

David

--

Victor Batista escribió::
Hello!
I am having problems after flushing the authentication cache at runtime. I
am using the code which is at the bottom of the email. The flush is done
correctly, although, the user which executes this code looses all its
permissions after this. According to the documentation this code drops all
cached credentials and flushes them to the specified DataSource. How can I
avoid to have the credentials being dropped from memory, or how can I reload
them.
I am using this code only when I update User's data (Roles and/or
Password).
Any help would be welcome.
Thanks in advance,
Victor Batista
java.util.ArrayList servers =
MBeanServerFactory.findMBeanServer(null);
if (servers.size() != 1)
throw new EJBException(Not exactly one server found);
MBeanServer mbeanServer = (MBeanServer) servers.get(0);
String[] params = { DCSapdbDB };
String[] signature = { java.lang.String };
try {
ObjectName name =
new ObjectName(
jboss.security,
service,
JaasSecurityManager);
mbeanServer.invoke(
name,
flushAuthenticationCache,
params,
signature);
} catch (Exception e) {
e.printStackTrace();
throw new EJBException(e);
}




---
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] Form based authentication

2003-02-24 Thread David Ward
Silvester,

I'll share what I do.  I have a single servlet that is a central controller that
delegates processing and dispatches requests to jp's (based on pathInfo). 
However, *I have 2 servlet mappings to it*.

/myapp/web/pathInfo - myapp is the context, web is the servlet, pathInfo (and
request params) tell me how to process and where to request dispatch to.

/myapp/sweb/pathInfo - same as above except sweb (notice the s) is a different
mapping *to the same servlet*, except it also is a web protected resource.

I have a dynamic login/logout link on each page (based on principal in request),
which simply links back to itself except replacing web with sweb.  After the
user logs in, he/she ends up visually back to where he/she started, though the
path in the url is a bit different.

Now, it sounds like you have an actual login form on each of your pages.  I've
not done that, but I'm guessing you could do the same thing as me, except just
pass along the username and password to a dummy login with no display that
onLoad (JavaScript) simply submits for you.  But 1) that seems hokey, and 2) you
would want to make sure you're using SSL otherwise your username and password
are plain-text'ing over the net.  What do other people do in this circumstance?

David

--

Mensaje citado por Silvester van der Bijl [EMAIL PROTECTED]:

 Hi there,
 
 We've got a web application which on each page displays a login box if the
 user isn't authenticated, or otherwise his personal menu, etc...
 
 The problem is, that after succesfully authenticating a user
 (j_security_check target), jetty doesn't know where to redirect the user
 to since I made a direct request to the login page (sort of).
 
 Shouldn't there be an additional property for j_security_check, like
 j_onsuccess_redirect_to ?
 
 Does anyone know of a workaround for this problem ? I've read about using
 a custom AuthenticationInterceptor, only I can't find where this
 interceptor is configured ?
 
 Please help.
 Silvester


---
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] j_secuity_check

2003-02-14 Thread David Ward
Gabriel,

Sorry; I didn't know what you initially meant.

Well, I just edited my login page to spit out some debug.  I enumerated 
over and logged all request headers, request attributes and request 
parameters, and  the only stuff that was visible in the implicit 
request object on the login page were headers.  Of the headers, the only 
one that might be remotely useful is the referer header, which says 
where you came *from*.  I didn't see anything about where you were 
trying to go *to*.

If you figure this one out, please share.

Thanks,
David

--

Gabriel Pinto escribió::
That's ok !

But what I need is to know where it will take me when I am at the login 
page, so that I can make differen login pages to differente protected 
contexts.

Does anyone knows how to do it?

Thaks

Gabriel



On Thu, 13 Feb 2003, David Ward wrote:


The user will go wherever he/she was trying to go to before web-tier 
security intercepted the request and presented the login page.  If the 
user fails to authenticate, you can configure the error page in web.xml.

--

Gabriel Pinto escribió::

How can I know where j_security_check will foward me after login 
authentication?

Thanks

Gabriel





---
This SF.NET email is sponsored by: FREE  SSL Guide from Thawte
are you planning your Web Server Security? Click here to get a FREE
Thawte SSL guide and find the answers to all your  SSL security issues.
http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0026en
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user



Re: [JBoss-user] j_secuity_check

2003-02-13 Thread David Ward
The user will go wherever he/she was trying to go to before web-tier 
security intercepted the request and presented the login page.  If the 
user fails to authenticate, you can configure the error page in web.xml.

--

Gabriel Pinto escribió::
How can I know where j_security_check will foward me after login 
authentication?

Thanks

Gabriel





---
This SF.NET email is sponsored by: FREE  SSL Guide from Thawte
are you planning your Web Server Security? Click here to get a FREE
Thawte SSL guide and find the answers to all your  SSL security issues.
http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0026en
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user



[JBoss-user] Re: [Xdoclet-user] XDoclet, JBoss 3 and use-soft-locking

2003-02-12 Thread David Ward
Brian,

Look at the Deprecated and Removed section on this page: 
http://xdoclet.sourceforge.net/development/design.html .  Yes, 
@use-soft-locking is going to go away (at least in XDoclet 2.0).

Now that I think of it, wasn't some version of JBoss (3.2 or 4) going to 
support Optimistic Locking?  Can someone tell me which version?

Thanks,
David

(PS: Sorry for the cross-post.)

--

Brian Wallis escribió::
XDoclet (1.2b1) generates code for optomistic locking when given the 
use-soft-locking option in @ejb.bean. As is documented, it places the 
increment in the ejbStore() method of the CMP class.

But this doesn't work in JBoss 3 (3.0.4) and probably cannot be guarenteed to 
work in any CMP implementation since (according to the spec)  ejbStore() can 
be called at any time and must be called *before* ejbFindMETHOD(...) calls. 
(section 10.7.4 5th para, 10.5.1 7th bullet, ..  and thanks to Dain on the 
Jboss-User list for pointing this out to me). 

Perhaps this use-soft-locking option should be deprecated?

brian wallis...

P.S.  I'm not sure why it needs to call ejbStore() rather than ejbLoad() but 
that is what the spec says (Version 2.0, 14 August 2001)




---
This SF.NET email is sponsored by:
SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See!
http://www.vasoftware.com
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user



Re: [JBoss-user] JBossMQ, JMS MDB

2003-02-10 Thread David Ward
Yong,

I don't know the answer to your question, but I thought I'd share with 
you something we learned on a past project:

We also *thought* it would be a good idea to have an MDB receive 
messages for the sake of queing up email to send (the MDB used the 
JavaMail api inside it), thinking it would return application flow back 
to the user faster.  We learned it's not.

Using OptimizeIt!, we found the serialization of the objects sent to the 
MDB took longer than the actual time sending the email inside the 
onMessage method of the MDB.  The MDB container had to serialize the 
objects, even though it was in the same JVM, since it needed to 
guarantee durability.

Just something for you to consider before you go too far down this path. 
 The only thing you might be buying yourself is a slower, more 
complicated app - and maybe a little experience working with MDB's.

David

--

Kim, Yong escribió::
Hi,
I am really in a state of confusion with regards to JBossMQ, JMS  MDB.  I
am not sure if my configuration is screwed up or the fact that I have
believed as true has turned out to be false!  Please bear with me.

I have created a MDB called EmailManagerMDB.  Currently, it has nothing in
it.  It's basically a skeleton code.  Inside the onMessage method, it only
has System.out.println method.  I also created a stand-alone Java
application that sends a message to a queue called, queue/EmailQueue which
seems to be working fine.  I have checked that this is working from
jmx-console.  QueueDepth increases everytime I send a message.

Basically, the problem was that MDB wasn't being invoked when a message is
sent to the queue.  The client code was sending a message to a queue called
queue/EmailQueue and the EmailManagerMDB was configured to listen to
queue/EmailQueue in the jboss.xml file.  I have included both jboss.xml
and ejb-jar.xml files at the end of this email.  I also have includes both
MDB and the client code.

Here is the dillema.  The way I made the MDB gets invoked was that I changed
the client code to send the message to queue/EmailManagerMDB not
queue/EmailQueue.  Now, my state of confusion starts.  First, when I
deployed the MDB, I got some strange message from the console saying,
[JMSContainerInvoker] destination not found: queue/EmailManagerMDB reason:
javax.naming.NameNotFoundException: EmailManagerMDB not bound
 [JMSContainerInvoker] creating a new temporary destination:
queue/EmailManagerMDB  I don't understand why I get this message.  In the
jbossmq-destinations-service.xml, I have added following queue entry.

  mbean code=org.jboss.mq.server.jmx.Queue
	 name=jboss.mq.destination:service=Queue,name=EmailQueue
depends
optional-attribute-name=DestinationManagerjboss.mq:service=DestinationMan
ager/depends
  /mbean
.

Why does JMSContainerInvoker creates this temporary queue when it was
configured to listen to queue/EmailQueue.  I thought that MDB listens to a
queue and it's onMessage method gets called when a messages get inserted
into the queue!

Am I wrong?

Thanks in advance.


Below is the jboss.xml file.

?xml version=1.0 encoding=ISO-8859-1?
!DOCTYPE jboss PUBLIC -//JBoss//DTD JBOSS 3.0//EN
http://www.jboss.org/j2ee/dtd/jboss_3_0.dtd;

jboss

   enterprise-beans

  session
 ejb-namecom.kimion.ejb.ShoppingCartManagerBean/ejb-name
 jndi-namecom/kimion/ejb/ShoppingCartManager/jndi-name
 
local-jndi-namecom/kimion/ejb/ShoppingCartManagerLocal/local-jndi-name
  /session
  session
 ejb-namecom.kimion.ejb.ProductManagerBean/ejb-name
 jndi-namecom/kimion/ejb/ProductManager/jndi-name
 
local-jndi-namecom/kimion/ejb/ProductManagerLocal/local-jndi-name
  /session
  session
 ejb-namecom.kimion.ejb.MemberManagerBean/ejb-name
 jndi-namecom/kimion/ejb/MemberManager/jndi-name
 
local-jndi-namecom/kimion/ejb/MemberManagerLocal/local-jndi-name
  /session

  message-driven
 ejb-nameEmailManagerMDB/ejb-name
 destination-jndi-namequeue/EmailQueue/destination-jndi-name
  /message-driven

   /enterprise-beans

   resource-managers
   /resource-managers

/jboss

And here is the ejb-jar.xml file.

?xml version=1.0 encoding=ISO-8859-1?
!DOCTYPE ejb-jar PUBLIC -//Sun Microsystems, Inc.//DTD Enterprise
JavaBeans 2.0//EN http://java.sun.com/dtd/ejb-jar_2_0.dtd;

ejb-jar 

   description![CDATA[No Description.]]/description
   display-nameGenerated by XDoclet/display-name

   enterprise-beans

  !-- Session Beans --
  session 
 description![CDATA[Created Feb 25, 2002 2:07:04
PM]]/description
 display-nameShoppingCartBean/display-name

 ejb-namecom.kimion.ejb.ShoppingCartManagerBean/ejb-name

 homecom.kimion.ejb.ShoppingCartManagerHome/home
 remotecom.kimion.ejb.ShoppingCartManager/remote
 
local-homecom.kimion.ejb.ShoppingCartManagerLocalHome/local-home
 localcom.kimion.ejb.ShoppingCartManagerLocal/local
 

Re: [JBoss-user] help clearing a single user from authentication cache

2003-02-03 Thread David Ward
Thanks, Scott.  I noticed you assigned yourself to the RFE I submitted 
for this.

Just curious - by next release do you mean 3.0.7 or when 3.2 goes final?

Also, we tried implementing our own CachePolicy, but had trouble since 
it didn't seem like the CachePolicy interface had all the information it 
needed to know to make the decision to clear a particular user, and 
when.  Anyway, if there's going to be a jboss-3.0.7_tomcat-4.1.18 soon 
that includes the new JaasSecurityManager method, I'm happy enough to 
wait for that.

Thanks again,
David

--

Scott M Stark escribió::
I'll add this ability in the next release. To do it today implement your own CachePolicy.


Scott Stark
Chief Technology Officer
JBoss Group, LLC


- Original Message -
From: David Ward [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Wednesday, January 29, 2003 7:32 AM
Subject: Re: [JBoss-user] help clearing a single user from authentication cache


I just upgraded from jboss-3.0.4_tomcat-4.1.12 to
jboss-3.0.6_tomcat-4.1.18.  I noticed a LOT more methods in the
JaasSecurityManagerService.  The methods are now:

getPrincipal()
registerSecurityDomain()
isValid()
start()
create()
doesUserHaveRole()
getAuthenticationCachePrincipals()
stop()
getUserRoles()
flushAuthenticationCache()
destroy()

Oh, how I wish there was a removeAuthenticationCachePrincipal() that
took a String username or Principal!

Should I submit an RFE at sourceforge, or can I beg the powers-that-be
(Scott?) to add it to a 3.0.7?  Or maybe there's a way to accomplish
what I want in 3.0.6 that I don't know about?

Thanks,
David

--

Meyer-Willner, Bernhard escribió::


Very interesting! I would like to do the same. I'm already using the method
java.util.List getAuthenticationCachePrincipals() which I believe is
available only since 3.0.5 to get a List of the principals currently in the
authentication cache. I looked up the JaasSecurityManager directly from the
MBeanServer since also my lookup of java:/timedCacheFactory failed. I don't
see a method to evict a single user from the cache, just all by calling
flushAuthenticationCache. Is there a method like this? Besides...something
else...would it be possible to show the meanings of the parameters of MBean
operations in JMX Console. Sometimes it's kind of hard to guess what they
mean and it's kind of cumbersome to look it up in the Javadocs.

Thanks,
Bernhard


-Ursprüngliche Nachricht-
Von: David Ward [mailto:[EMAIL PROTECTED]]
Gesendet: Dienstag, 28. Januar 2003 21:12
An: [EMAIL PROTECTED]
Betreff: [JBoss-user] help clearing a single user from authentication
cache


Using JDK 1.4.1_01, jboss-3.0.4_tomca-tomcat-4.1.2 on Linux.

I'm trying to clear from the authentication cache JUST a single user.
Invoking flushAuthenticationCache(String) on the mbean works fine, but
it flushes *all* users' security infos.

I want to call the CachePolicy's remove(Principal) method, so I tried
looking up the CachePolicy in JNDI and calling it.  Though I found a
TimedCachePolicy in jndi under java:/timedCacheFactory/docs (docs is our
app's security name), and called the remove(Principal) method
successfully, it doesn't seem to do anything.

Then, I tried extending JaasSecurityManagerService, configuring the use
of my class in jboss-service.xml.  I see it in the JMX-Console, but for
some reason my added method isn't showing up there (under list mbean
operations), and I don't know how to register an MBean interface to
expose it.

Please help.  Again, my end goal is to flush the authentication cache
for just a single user.  Unfortunately, there's not a public, exposed
method in the JaasSecurityManagerService that does this.

Also, below is some output from the jmx console JNDIView.

- What's up with the Failed to lookup: timedCacheFactory?

- When I looked up the timedCacheFactory, it's actually a $Proxy class
(EJB?)

- java:jaas/docs says it's a SecurityDomainContext below, but when I
look it up in code, I get a ClassCastException saying it's *really* a
JaasSecurityManager!  Why the descrepency?  If it *was* actually a
SecurityDomainContext, I could call
sdc.getAuthenticationCache().remove(new SimplePrincipal(username))!

Thanks again,
David

java: Namespace

  +- DefaultDS (class:
org.jboss.resource.adapter.jdbc.local.LocalDataSource)
  +- XAConnectionFactory (class: org.jboss.mq.SpyXAConnectionFactory)
  +- SecurityProxyFactory (class:
org.jboss.security.SubjectSecurityProxyFactory)
  +- DefaultJMSProvider (class: org.jboss.jms.jndi.JBossMQProvider)
  +- CounterService (class: org.jboss.varia.counter.CounterService)
  +- comp (class: javax.naming.Context)
  +- JmsXA (class: org.jboss.resource.adapter.jms.JmsConnectionFactoryImpl)
  +- ConnectionFactory (class: org.jboss.mq.SpyConnectionFactory)
  +- jaas (class: javax.naming.Context)
  |   +- JmsXARealm (class:
org.jboss.security.plugins.SecurityDomainContext)
  |   +- jbossmq (class: org.jboss.security.plugins.SecurityDomainContext

Re: [JBoss-user] help clearing a single user from authentication cache

2003-01-30 Thread David Ward
I have added an RFE to SourceForge:
https://sourceforge.net/tracker/index.php?func=detailaid=677614group_id=22866atid=376688

On a side note, does anyone know if Scott Stark is on vacation?  I 
haven't noticed any emails from him on the list for a few days.

Thanks again,
David

--

Meyer-Willner, Bernhard escribió::
RFE in sourceforge sounds good to me. The methods you mention have been
there since 3.0.5.

-Ursprüngliche Nachricht-
Von: David Ward [mailto:[EMAIL PROTECTED]]
Gesendet: Mittwoch, 29. Januar 2003 16:33
An: [EMAIL PROTECTED]
Betreff: Re: [JBoss-user] help clearing a single user from
authentication cache


I just upgraded from jboss-3.0.4_tomcat-4.1.12 to 
jboss-3.0.6_tomcat-4.1.18.  I noticed a LOT more methods in the 
JaasSecurityManagerService.  The methods are now:

getPrincipal()
registerSecurityDomain()
isValid()
start()
create()
doesUserHaveRole()
getAuthenticationCachePrincipals()
stop()
getUserRoles()
flushAuthenticationCache()
destroy()

Oh, how I wish there was a removeAuthenticationCachePrincipal() that 
took a String username or Principal!

Should I submit an RFE at sourceforge, or can I beg the powers-that-be 
(Scott?) to add it to a 3.0.7?  Or maybe there's a way to accomplish 
what I want in 3.0.6 that I don't know about?

Thanks,
David

--

Meyer-Willner, Bernhard escribió::

Very interesting! I would like to do the same. I'm already using the


method


java.util.List getAuthenticationCachePrincipals() which I believe is
available only since 3.0.5 to get a List of the principals currently in


the


authentication cache. I looked up the JaasSecurityManager directly from


the


MBeanServer since also my lookup of java:/timedCacheFactory failed. I


don't


see a method to evict a single user from the cache, just all by calling
flushAuthenticationCache. Is there a method like this? Besides...something
else...would it be possible to show the meanings of the parameters of


MBean


operations in JMX Console. Sometimes it's kind of hard to guess what they
mean and it's kind of cumbersome to look it up in the Javadocs.

Thanks,
Bernhard


-Ursprüngliche Nachricht-
Von: David Ward [mailto:[EMAIL PROTECTED]]
Gesendet: Dienstag, 28. Januar 2003 21:12
An: [EMAIL PROTECTED]
Betreff: [JBoss-user] help clearing a single user from authentication
cache


Using JDK 1.4.1_01, jboss-3.0.4_tomca-tomcat-4.1.2 on Linux.

I'm trying to clear from the authentication cache JUST a single user. 
Invoking flushAuthenticationCache(String) on the mbean works fine, but 
it flushes *all* users' security infos.

I want to call the CachePolicy's remove(Principal) method, so I tried 
looking up the CachePolicy in JNDI and calling it.  Though I found a 
TimedCachePolicy in jndi under java:/timedCacheFactory/docs (docs is our 
app's security name), and called the remove(Principal) method 
successfully, it doesn't seem to do anything.

Then, I tried extending JaasSecurityManagerService, configuring the use 
of my class in jboss-service.xml.  I see it in the JMX-Console, but for 
some reason my added method isn't showing up there (under list mbean 
operations), and I don't know how to register an MBean interface to 
expose it.

Please help.  Again, my end goal is to flush the authentication cache 
for just a single user.  Unfortunately, there's not a public, exposed 
method in the JaasSecurityManagerService that does this.

Also, below is some output from the jmx console JNDIView.

- What's up with the Failed to lookup: timedCacheFactory?

- When I looked up the timedCacheFactory, it's actually a $Proxy class 
(EJB?)

- java:jaas/docs says it's a SecurityDomainContext below, but when I 
look it up in code, I get a ClassCastException saying it's *really* a 
JaasSecurityManager!  Why the descrepency?  If it *was* actually a 
SecurityDomainContext, I could call 
sdc.getAuthenticationCache().remove(new SimplePrincipal(username))!

Thanks again,
David

java: Namespace

  +- DefaultDS (class: 
org.jboss.resource.adapter.jdbc.local.LocalDataSource)
  +- XAConnectionFactory (class: org.jboss.mq.SpyXAConnectionFactory)
  +- SecurityProxyFactory (class: 
org.jboss.security.SubjectSecurityProxyFactory)
  +- DefaultJMSProvider (class: org.jboss.jms.jndi.JBossMQProvider)
  +- CounterService (class: org.jboss.varia.counter.CounterService)
  +- comp (class: javax.naming.Context)
  +- JmsXA (class:

org.jboss.resource.adapter.jms.JmsConnectionFactoryImpl)


  +- ConnectionFactory (class: org.jboss.mq.SpyConnectionFactory)
  +- jaas (class: javax.naming.Context)
  |   +- JmsXARealm (class: 
org.jboss.security.plugins.SecurityDomainContext)
  |   +- jbossmq (class:

org.jboss.security.plugins.SecurityDomainContext)


  |   +- docs (class: org.jboss.security.plugins.SecurityDomainContext)
  +- timedCacheFactory (class: javax.naming.Context)
Failed to lookup: timedCacheFactory, errmsg=null
  +- TransactionPropagationContextExporter (class: 
org.jboss.tm.TransactionPropagationContextFactory)
  +- Mail (class

Re: [JBoss-user] help clearing a single user from authentication cache

2003-01-29 Thread David Ward
I just upgraded from jboss-3.0.4_tomcat-4.1.12 to 
jboss-3.0.6_tomcat-4.1.18.  I noticed a LOT more methods in the 
JaasSecurityManagerService.  The methods are now:

getPrincipal()
registerSecurityDomain()
isValid()
start()
create()
doesUserHaveRole()
getAuthenticationCachePrincipals()
stop()
getUserRoles()
flushAuthenticationCache()
destroy()

Oh, how I wish there was a removeAuthenticationCachePrincipal() that 
took a String username or Principal!

Should I submit an RFE at sourceforge, or can I beg the powers-that-be 
(Scott?) to add it to a 3.0.7?  Or maybe there's a way to accomplish 
what I want in 3.0.6 that I don't know about?

Thanks,
David

--

Meyer-Willner, Bernhard escribió::
Very interesting! I would like to do the same. I'm already using the method
java.util.List getAuthenticationCachePrincipals() which I believe is
available only since 3.0.5 to get a List of the principals currently in the
authentication cache. I looked up the JaasSecurityManager directly from the
MBeanServer since also my lookup of java:/timedCacheFactory failed. I don't
see a method to evict a single user from the cache, just all by calling
flushAuthenticationCache. Is there a method like this? Besides...something
else...would it be possible to show the meanings of the parameters of MBean
operations in JMX Console. Sometimes it's kind of hard to guess what they
mean and it's kind of cumbersome to look it up in the Javadocs.

Thanks,
Bernhard


-Ursprüngliche Nachricht-
Von: David Ward [mailto:[EMAIL PROTECTED]]
Gesendet: Dienstag, 28. Januar 2003 21:12
An: [EMAIL PROTECTED]
Betreff: [JBoss-user] help clearing a single user from authentication
cache


Using JDK 1.4.1_01, jboss-3.0.4_tomca-tomcat-4.1.2 on Linux.

I'm trying to clear from the authentication cache JUST a single user. 
Invoking flushAuthenticationCache(String) on the mbean works fine, but 
it flushes *all* users' security infos.

I want to call the CachePolicy's remove(Principal) method, so I tried 
looking up the CachePolicy in JNDI and calling it.  Though I found a 
TimedCachePolicy in jndi under java:/timedCacheFactory/docs (docs is our 
app's security name), and called the remove(Principal) method 
successfully, it doesn't seem to do anything.

Then, I tried extending JaasSecurityManagerService, configuring the use 
of my class in jboss-service.xml.  I see it in the JMX-Console, but for 
some reason my added method isn't showing up there (under list mbean 
operations), and I don't know how to register an MBean interface to 
expose it.

Please help.  Again, my end goal is to flush the authentication cache 
for just a single user.  Unfortunately, there's not a public, exposed 
method in the JaasSecurityManagerService that does this.

Also, below is some output from the jmx console JNDIView.

- What's up with the Failed to lookup: timedCacheFactory?

- When I looked up the timedCacheFactory, it's actually a $Proxy class 
(EJB?)

- java:jaas/docs says it's a SecurityDomainContext below, but when I 
look it up in code, I get a ClassCastException saying it's *really* a 
JaasSecurityManager!  Why the descrepency?  If it *was* actually a 
SecurityDomainContext, I could call 
sdc.getAuthenticationCache().remove(new SimplePrincipal(username))!

Thanks again,
David

java: Namespace

   +- DefaultDS (class: 
org.jboss.resource.adapter.jdbc.local.LocalDataSource)
   +- XAConnectionFactory (class: org.jboss.mq.SpyXAConnectionFactory)
   +- SecurityProxyFactory (class: 
org.jboss.security.SubjectSecurityProxyFactory)
   +- DefaultJMSProvider (class: org.jboss.jms.jndi.JBossMQProvider)
   +- CounterService (class: org.jboss.varia.counter.CounterService)
   +- comp (class: javax.naming.Context)
   +- JmsXA (class: org.jboss.resource.adapter.jms.JmsConnectionFactoryImpl)
   +- ConnectionFactory (class: org.jboss.mq.SpyConnectionFactory)
   +- jaas (class: javax.naming.Context)
   |   +- JmsXARealm (class: 
org.jboss.security.plugins.SecurityDomainContext)
   |   +- jbossmq (class: org.jboss.security.plugins.SecurityDomainContext)
   |   +- docs (class: org.jboss.security.plugins.SecurityDomainContext)
   +- timedCacheFactory (class: javax.naming.Context)
Failed to lookup: timedCacheFactory, errmsg=null
   +- TransactionPropagationContextExporter (class: 
org.jboss.tm.TransactionPropagationContextFactory)
   +- Mail (class: javax.mail.Session)
   +- StdJMSPool (class: org.jboss.jms.asf.StdServerSessionPoolFactory)
   +- TransactionPropagationContextImporter (class: 
org.jboss.tm.TransactionPropagationContextImporter)
   +- DocsDS (class: org.jboss.resource.adapter.jdbc.local.LocalDataSource)
   +- TransactionManager (class: org.jboss.tm.TxManager)





---
This SF.NET email is sponsored by:
SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See!
http://www.vasoftware.com
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists

[JBoss-user] help clearing a single user from authentication cache

2003-01-28 Thread David Ward
Using JDK 1.4.1_01, jboss-3.0.4_tomca-tomcat-4.1.2 on Linux.

I'm trying to clear from the authentication cache JUST a single user. 
Invoking flushAuthenticationCache(String) on the mbean works fine, but 
it flushes *all* users' security infos.

I want to call the CachePolicy's remove(Principal) method, so I tried 
looking up the CachePolicy in JNDI and calling it.  Though I found a 
TimedCachePolicy in jndi under java:/timedCacheFactory/docs (docs is our 
app's security name), and called the remove(Principal) method 
successfully, it doesn't seem to do anything.

Then, I tried extending JaasSecurityManagerService, configuring the use 
of my class in jboss-service.xml.  I see it in the JMX-Console, but for 
some reason my added method isn't showing up there (under list mbean 
operations), and I don't know how to register an MBean interface to 
expose it.

Please help.  Again, my end goal is to flush the authentication cache 
for just a single user.  Unfortunately, there's not a public, exposed 
method in the JaasSecurityManagerService that does this.

Also, below is some output from the jmx console JNDIView.

- What's up with the Failed to lookup: timedCacheFactory?

- When I looked up the timedCacheFactory, it's actually a $Proxy class 
(EJB?)

- java:jaas/docs says it's a SecurityDomainContext below, but when I 
look it up in code, I get a ClassCastException saying it's *really* a 
JaasSecurityManager!  Why the descrepency?  If it *was* actually a 
SecurityDomainContext, I could call 
sdc.getAuthenticationCache().remove(new SimplePrincipal(username))!

Thanks again,
David

java: Namespace

  +- DefaultDS (class: 
org.jboss.resource.adapter.jdbc.local.LocalDataSource)
  +- XAConnectionFactory (class: org.jboss.mq.SpyXAConnectionFactory)
  +- SecurityProxyFactory (class: 
org.jboss.security.SubjectSecurityProxyFactory)
  +- DefaultJMSProvider (class: org.jboss.jms.jndi.JBossMQProvider)
  +- CounterService (class: org.jboss.varia.counter.CounterService)
  +- comp (class: javax.naming.Context)
  +- JmsXA (class: org.jboss.resource.adapter.jms.JmsConnectionFactoryImpl)
  +- ConnectionFactory (class: org.jboss.mq.SpyConnectionFactory)
  +- jaas (class: javax.naming.Context)
  |   +- JmsXARealm (class: 
org.jboss.security.plugins.SecurityDomainContext)
  |   +- jbossmq (class: org.jboss.security.plugins.SecurityDomainContext)
  |   +- docs (class: org.jboss.security.plugins.SecurityDomainContext)
  +- timedCacheFactory (class: javax.naming.Context)
Failed to lookup: timedCacheFactory, errmsg=null
  +- TransactionPropagationContextExporter (class: 
org.jboss.tm.TransactionPropagationContextFactory)
  +- Mail (class: javax.mail.Session)
  +- StdJMSPool (class: org.jboss.jms.asf.StdServerSessionPoolFactory)
  +- TransactionPropagationContextImporter (class: 
org.jboss.tm.TransactionPropagationContextImporter)
  +- DocsDS (class: org.jboss.resource.adapter.jdbc.local.LocalDataSource)
  +- TransactionManager (class: org.jboss.tm.TxManager)




---
This SF.NET email is sponsored by:
SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See!
http://www.vasoftware.com
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] Re: help clearing a single user from authentication cache

2003-01-28 Thread David Ward
Sorry for the version getting screwed up on the first line.  I'm using: 
jboss-3.0.4_tomcat-4.1.12.

David

--

David Ward escribió::
Using JDK 1.4.1_01, jboss-3.0.4_tomca-tomcat-4.1.2 on Linux.

I'm trying to clear from the authentication cache JUST a single user. 
Invoking flushAuthenticationCache(String) on the mbean works fine, but 
it flushes *all* users' security infos.

I want to call the CachePolicy's remove(Principal) method, so I tried 
looking up the CachePolicy in JNDI and calling it.  Though I found a 
TimedCachePolicy in jndi under java:/timedCacheFactory/docs (docs is our 
app's security name), and called the remove(Principal) method 
successfully, it doesn't seem to do anything.

Then, I tried extending JaasSecurityManagerService, configuring the use 
of my class in jboss-service.xml.  I see it in the JMX-Console, but for 
some reason my added method isn't showing up there (under list mbean 
operations), and I don't know how to register an MBean interface to 
expose it.

Please help.  Again, my end goal is to flush the authentication cache 
for just a single user.  Unfortunately, there's not a public, exposed 
method in the JaasSecurityManagerService that does this.

Also, below is some output from the jmx console JNDIView.

- What's up with the Failed to lookup: timedCacheFactory?

- When I looked up the timedCacheFactory, it's actually a $Proxy class 
(EJB?)

- java:jaas/docs says it's a SecurityDomainContext below, but when I 
look it up in code, I get a ClassCastException saying it's *really* a 
JaasSecurityManager!  Why the descrepency?  If it *was* actually a 
SecurityDomainContext, I could call 
sdc.getAuthenticationCache().remove(new SimplePrincipal(username))!

Thanks again,
David

java: Namespace

  +- DefaultDS (class: 
org.jboss.resource.adapter.jdbc.local.LocalDataSource)
  +- XAConnectionFactory (class: org.jboss.mq.SpyXAConnectionFactory)
  +- SecurityProxyFactory (class: 
org.jboss.security.SubjectSecurityProxyFactory)
  +- DefaultJMSProvider (class: org.jboss.jms.jndi.JBossMQProvider)
  +- CounterService (class: org.jboss.varia.counter.CounterService)
  +- comp (class: javax.naming.Context)
  +- JmsXA (class: org.jboss.resource.adapter.jms.JmsConnectionFactoryImpl)
  +- ConnectionFactory (class: org.jboss.mq.SpyConnectionFactory)
  +- jaas (class: javax.naming.Context)
  |   +- JmsXARealm (class: 
org.jboss.security.plugins.SecurityDomainContext)
  |   +- jbossmq (class: org.jboss.security.plugins.SecurityDomainContext)
  |   +- docs (class: org.jboss.security.plugins.SecurityDomainContext)
  +- timedCacheFactory (class: javax.naming.Context)
Failed to lookup: timedCacheFactory, errmsg=null
  +- TransactionPropagationContextExporter (class: 
org.jboss.tm.TransactionPropagationContextFactory)
  +- Mail (class: javax.mail.Session)
  +- StdJMSPool (class: org.jboss.jms.asf.StdServerSessionPoolFactory)
  +- TransactionPropagationContextImporter (class: 
org.jboss.tm.TransactionPropagationContextImporter)
  +- DocsDS (class: org.jboss.resource.adapter.jdbc.local.LocalDataSource)
  +- TransactionManager (class: org.jboss.tm.TxManager)






---
This SF.NET email is sponsored by:
SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See!
http://www.vasoftware.com
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user



Re: [JBoss-user] Can two separate client threads make simultaneouscalls?

2003-01-22 Thread David Ward
Are you hitting a Stateful Session Bean or a Stateless one?  According 
to the EBJ spec, it is illegal to hit a transactional Stateful one from 
two threads simultaneously that have the same bean handle.

David

--

Beau Cronin escribió::
I have a Swing app which is essentially single-threaded, accessing the 
server in the usual way through a session facade.  I'd like to do some 
background loading of certain data for performance reasons, but when I 
try to do this by using a separate thread (and separate session 
instance), I get various transaction collision problems if these two 
threads access the server at the same time.

I'm obviously missing something here--shouldn't different remote client 
threads from the same client be able to access JBoss simultaneously in 
the same way that entirely different clients can?  I.e., shouldn't they 
spawn separate transactions which are scheduled appropriately by JBoss?

Any clarification appreciated,

Beau Cronin





---
This SF.net email is sponsored by: Scholarships for Techies!
Can't afford IT training? All 2003 ictp students receive scholarships.
Get hands-on training in Microsoft, Cisco, Sun, Linux/UNIX, and more.
www.ictp.com/training/sourceforge.asp
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user



Re: [JBoss-user] Hi Remember me..!!?

2003-01-20 Thread David Ward
Will someone with the power PLEASE block this user / these messages?

Thanks,
David

--

Isabelle escribió::

http://www.myfreelivecam.com/isabelle http://www.liveisabelle.com 
--- This SF.NET 
email is sponsored by: FREE SSL Guide from Thawte are you planning your 
Web Server Security? Click here to get a FREE Thawte SSL guide and find 
the answers to all your SSL security issues. 
http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0026en 
___ JBoss-user mailing list 
[EMAIL PROTECTED] 
https://lists.sourceforge.net/lists/listinfo/jboss-user



---
This SF.NET email is sponsored by: FREE  SSL Guide from Thawte
are you planning your Web Server Security? Click here to get a FREE
Thawte SSL guide and find the answers to all your  SSL security issues.
http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0026en
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user



[JBoss-user] jbossmq-service deployment takes a LONG time in 3.2.0RC1

2003-01-16 Thread David Ward
I'm using jboss-3.2.0RC1_tomcat-4.1.18 with Sun JDK 1.4.1_01 on Mandrake 
9.0 Linux 2.4.19-16, with half a gig of RAM and an 800mghz i686 cpu.

I've noticed that on JBoss startup (using the default server), this line 
takes upwards of ** 15 seconds **:

10:13:24,288 INFO  [SARDeployer] looking for nested deployments in :
file:/home/david/data/packages/jboss/3.2.0RC1_tomcat-4.1.18/server/default/deploy/jbossmq-service.xml

Why so long?  On jboss-3.0.4_tomcat-4.1.12, it just flew by with 
everything else.

I use the jbossmq-service.xml file out-of-the-box.  I notice there are 
differences between the 3.0.4 and 3.2.0RC1 versions of this file, but 
that's how they came - I didn't touch them.

I do tweak the jbossmq-destintations-service.xml file, but diffing my 
3.0.4 and 3.2.0RC1 versions show only one difference: the date comment 
at the top of the file.

Any ideas?

Thanks,
David




---
This SF.NET email is sponsored by: Thawte.com
Understand how to protect your customers personal information by implementing
SSL on your Apache Web Server. Click here to get our FREE Thawte Apache 
Guide: http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0029en
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] Could not enlist in transaction on entering meta-aware object

2003-01-16 Thread David Ward
I am getting the following error using jboss-3.2.0RC1_tomcat-4.1.18, JDK 
1.4.1_01 hitting Oracle 9.2.0.1.0 (with initjvm), using the matching 
thin jdbc driver.  All requests go through a servlet that wraps 
everything in a JNDI-looked-up UserTransaction.

Could not enlist in transaction on entering meta-aware object

Here is my oracle-xa-ds.xml:

datasources
xa-datasource
jndi-nameMyDS/jndi-name
track-connection-by-txtrue/track-connection-by-tx
managedconnectionfactory-class
org.jboss.resource.adapter.jdbc.xa.oracle.XAOracleManagedConnectionFactory
/managedconnectionfactory-class
xa-datasource-property 
name=URLjdbc:oracle:thin:@foo:1521:bar/xa-datasource-property
xa-datasource-property name=Useruser/xa-datasource-property
xa-datasource-property name=Passwordpassword/xa-datasource-property
/xa-datasource
/datasources

I changed transaction-service.xml to pad=true:

mbean code=org.jboss.tm.XidFactory name=jboss:service=XidFactory
attribute name=Padtrue/attribute
/mbean

Any ideas?

Thanks,
David




---
This SF.NET email is sponsored by: Thawte.com
Understand how to protect your customers personal information by implementing
SSL on your Apache Web Server. Click here to get our FREE Thawte Apache 
Guide: http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0029en
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


Re: [JBoss-user] jbossmq-service deployment takes a LONG time in3.2.0RC1

2003-01-16 Thread David Ward
That was the fix.  You da' man; thanx.

David

--

Adrian Brock escribió::

Hi,

The problem is with the regular expression parsing
introduced so you can write ${system.property} in attributes.

attribute name=SqlProperties replace=false

will disable the check as a temporary fix.

Regards,
Adrian


From: David Ward [EMAIL PROTECTED]
Reply-To: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Subject: [JBoss-user] jbossmq-service deployment takes a LONG time in 
3.2.0RC1
Date: Thu, 16 Jan 2003 10:09:32 -0500

I'm using jboss-3.2.0RC1_tomcat-4.1.18 with Sun JDK 1.4.1_01 on 
Mandrake 9.0 Linux 2.4.19-16, with half a gig of RAM and an 800mghz 
i686 cpu.

I've noticed that on JBoss startup (using the default server), this 
line takes upwards of ** 15 seconds **:

10:13:24,288 INFO  [SARDeployer] looking for nested deployments in :
file:/home/david/data/packages/jboss/3.2.0RC1_tomcat-4.1.18/server/default/deploy/jbossmq-service.xml 


Why so long?  On jboss-3.0.4_tomcat-4.1.12, it just flew by with 
everything else.

I use the jbossmq-service.xml file out-of-the-box.  I notice there are 
differences between the 3.0.4 and 3.2.0RC1 versions of this file, but 
that's how they came - I didn't touch them.

I do tweak the jbossmq-destintations-service.xml file, but diffing my 
3.0.4 and 3.2.0RC1 versions show only one difference: the date comment 
at the top of the file.

Any ideas?

Thanks,
David





---
This SF.NET email is sponsored by: Thawte.com
Understand how to protect your customers personal information by implementing
SSL on your Apache Web Server. Click here to get our FREE Thawte Apache
Guide: http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0029en
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user



Re: [JBoss-user] Could not enlist in transaction on entering meta-aware object

2003-01-16 Thread David Ward
Thanks for the response, Manoj.  I have answered your questions below:

Sasidharan, Manoj escribió::

Here are my few cents:

1. Try re-starting JBoss and see if it helps


Tried.  Doesn't help.


2. Have you run the Oracle JVM initialisation SQLs on the database.. This is
required for using XA with Oracle. There is a script/sql to verify whether
this is installed fine.


I have run initjvm.sql and initxa.sql.  Anything else I need to run? 
Which script is the verifier you've mentioned?

3. Oracle provides separate JDBC drivers for use with JDK 1.4, can you try
using this too.


I am using the latest ojdbc14.jar.

Thanks again,
David

--



HTH
regards
MS

-Original Message-
From: Igor Fedorenko [mailto:[EMAIL PROTECTED]]
Sent: Thursday, January 16, 2003 9:37 AM
To: [EMAIL PROTECTED]
Subject: RE: [JBoss-user] Could not enlist in transaction on entering
meta-aware object


I've never tried it with UserTransaction. Could you check that basic
container managed transaction works? (simple SSB that inserts one row into a
db). If CMT works I'll look into UserTransaction issues.

-Original Message-
From: David Ward [mailto:[EMAIL PROTECTED]]
Sent: Thursday, January 16, 2003 12:11 PM
To: [EMAIL PROTECTED]
Subject: [JBoss-user] Could not enlist in transaction on entering
meta-aware object


I am getting the following error using jboss-3.2.0RC1_tomcat-4.1.18, JDK 
1.4.1_01 hitting Oracle 9.2.0.1.0 (with initjvm), using the matching 
thin jdbc driver.  All requests go through a servlet that wraps 
everything in a JNDI-looked-up UserTransaction.

Could not enlist in transaction on entering meta-aware object

Here is my oracle-xa-ds.xml:

datasources
xa-datasource
jndi-nameMyDS/jndi-name
track-connection-by-txtrue/track-connection-by-tx
managedconnectionfactory-class
org.jboss.resource.adapter.jdbc.xa.oracle.XAOracleManagedConnectionFactory
/managedconnectionfactory-class
xa-datasource-property 
name=URLjdbc:oracle:thin:@foo:1521:bar/xa-datasource-property
xa-datasource-property name=Useruser/xa-datasource-property
xa-datasource-property name=Passwordpassword/xa-datasource-property
/xa-datasource
/datasources

I changed transaction-service.xml to pad=true:

mbean code=org.jboss.tm.XidFactory name=jboss:service=XidFactory
attribute name=Padtrue/attribute
/mbean

Any ideas?

Thanks,
David




---
This SF.NET email is sponsored by: Thawte.com
Understand how to protect your customers personal information by implementing
SSL on your Apache Web Server. Click here to get our FREE Thawte Apache
Guide: http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0029en
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user



Re: [JBoss-user] Could not enlist in transaction on entering meta-awareobject

2003-01-16 Thread David Ward
Igor, thanks for your help.  My code has many places where a SLSB puts 
data into a DB, all with Transaction set as Required.

My app is basically like this (sorry for the ASCII art):

  HttpServletRequest
 |
 V
HttpServlet
- Look up and start UserTransaction
- Translate and hand-off call to SLSB
 |
 V
Stateless SessionBean (TX=Required)
- Delegates work to Application processors
 |
 V
Application processors
- Some might do JDBC via DataSource; - Some might use CMP
|  |
|  |
V  V
Custom JDBC  CMP EntityBeans (TX=Required)

 V
HttpServlet (Flow returns)
- If no errors, commit UserTransaction
- If errors, rollback UserTransaction


The JDBC work delegated to the application processors uses the same 
JNDI-looked-up DataSource as the CMP Entity Beans are configured to use. 
 We also have a custom login module that uses the same JNDI looked up 
DataSource.

I will create a small test case as you mentioned.  I just thought that 
describing how my app is set up might spark some thoughts from you or 
others though while I'm doing that.

I've used earlier version of JBoss (2.4.x) that do all of the above 
fine.  Of course, that was with Oracle 8i + classes12.zip instead of 9i 
+ ojdbc14.jar, and using jdk 1.3.1 instead of jdk 1.4.1.

Thanks again,
David

--

Igor Fedorenko escribió::
I've never tried it with UserTransaction. Could you check that basic container managed transaction works? (simple SSB that inserts one row into a db). If CMT works I'll look into UserTransaction issues.

-Original Message-
From: David Ward [mailto:[EMAIL PROTECTED]]
Sent: Thursday, January 16, 2003 12:11 PM
To: [EMAIL PROTECTED]
Subject: [JBoss-user] Could not enlist in transaction on entering
meta-aware object


I am getting the following error using jboss-3.2.0RC1_tomcat-4.1.18, JDK 
1.4.1_01 hitting Oracle 9.2.0.1.0 (with initjvm), using the matching 
thin jdbc driver.  All requests go through a servlet that wraps 
everything in a JNDI-looked-up UserTransaction.

Could not enlist in transaction on entering meta-aware object

Here is my oracle-xa-ds.xml:

datasources
xa-datasource
jndi-nameMyDS/jndi-name
track-connection-by-txtrue/track-connection-by-tx
managedconnectionfactory-class
org.jboss.resource.adapter.jdbc.xa.oracle.XAOracleManagedConnectionFactory
/managedconnectionfactory-class
xa-datasource-property 
name=URLjdbc:oracle:thin:@foo:1521:bar/xa-datasource-property
xa-datasource-property name=Useruser/xa-datasource-property
xa-datasource-property name=Passwordpassword/xa-datasource-property
/xa-datasource
/datasources

I changed transaction-service.xml to pad=true:

mbean code=org.jboss.tm.XidFactory name=jboss:service=XidFactory
attribute name=Padtrue/attribute
/mbean

Any ideas?

Thanks,
David




---
This SF.NET email is sponsored by: Thawte.com
Understand how to protect your customers personal information by implementing
SSL on your Apache Web Server. Click here to get our FREE Thawte Apache
Guide: http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0029en
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user



Re: [JBoss-user] Troubles with JBoss MBean

2003-01-15 Thread David Ward
Edgar Silva escribió::

Hi Folks...
I am just using http://localhost:8082 to see my services,
And doesn't works, I am using JBoss 3.0.4 with Jetty,
Have a special configuration to this works fine?
thanks
Edgar



http://localhost:8080/jmx-console/

(replace 8080 to where your web container / web server is listening)

I think this was from 3.0.1 on up.

David



---
This SF.NET email is sponsored by: Take your first step towards giving
your online business a competitive advantage. Test-drive a Thawte SSL
certificate - our easy online guide will show you how. Click here to get
started: http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0027en
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user



Re: [JBoss-user] Store large pdfs with JBoss

2003-01-13 Thread David Ward
Search the jboss-user list from late last week.  There was just a 
discussion about this.

--

Luttrell, Peter escribió::
I'm using CMP entity beans. Particularly to achieve database transparency
and to avoid writting all of the db access code.

Do you know how to do it with CMP?

-Original Message-
From: David Ward [mailto:[EMAIL PROTECTED]]
Sent: Friday, January 03, 2003 2:58 PM
To: [EMAIL PROTECTED]
Subject: Re: [JBoss-user] Store large pdfs with JBoss


I have been able to put CLOBs and BLOBs into Oracle 9i using JBoss 
3.0.4, though admittedly after jumping through several hoops.

...



---
This SF.NET email is sponsored by: FREE  SSL Guide from Thawte
are you planning your Web Server Security? Click here to get a FREE
Thawte SSL guide and find the answers to all your  SSL security issues.
http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0026en
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user



[JBoss-user] oracle-xa-ds.xml vs. oracle-xa-service.xml

2003-01-09 Thread David Ward
The oracle-xa-service.xml file seems like the old 3.0 style...

1) Do we need it?  Can we just use oracle-xa-ds.xml?

2) If I just use oracle-xa-ds.xml, do I still need to use the Pad true 
for the XidFactory in transaction-service.xml?

3) Is there any other file I have to touch?

(JBoss 3.2b2+, JDK 1.4.1_01)

Thanx,
David



---
This SF.NET email is sponsored by:
SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See!
http://www.vasoftware.com
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


Re: [JBoss-user] oracle-xa-ds.xml vs. oracle-xa-service.xml

2003-01-09 Thread David Ward
Thank you for your help, Igor.  However, I get the following error in my 
server.log file (see attached), and my DocsDS never makes it into 
JNDI.  In the jmx-console I do see DocsDS, but not under JNDIView (where 
my app needs it).

jboss.jca

* service=CachedConnectionManager
* service=LocalTxPool,name=DefaultDS
* service=XATxCM,name=DocsDS
* service=XATxDS,name=DocsDS
* service=LocalTxPool,name=DocsDS
* service=RARDeployment,name=JMS Adapter
* service=DataSourceDeployer
* service=LocalTxDS,name=DefaultDS
* service=XaTxPool,name=jmsra
* service=XaTxCM,name=jmsra
* service=RARDeployer
* service=LocalTxCM,name=DefaultDS
* service=RARDeployment,name=JBoss LocalTransaction JDBC Wrapper
* service=RARDeployment,name=JBoss JDBC XATransaction ResourceAdapter
* service=XaTxDS,name=jmsra

Thanks again for your help,
David

PS: This is jboss-3.2.0beta2_tomcat-4.1.12.  I can't use beta3 yet since 
there is not tomcat bundle for it on SourceForge.

--

Igor Fedorenko escribió::

David Ward wrote:


The oracle-xa-service.xml file seems like the old 3.0 style...

1) Do we need it?  Can we just use oracle-xa-ds.xml?


You can use oracle-xa-ds.xml.



2) If I just use oracle-xa-ds.xml, do I still need to use the Pad 
true for the XidFactory in transaction-service.xml?

Yes, you need to set Pad=true.



3) Is there any other file I have to touch?


No.



(JBoss 3.2b2+, JDK 1.4.1_01)

Thanx,
David


2003-01-09 10:54:28,320 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.jca:service=XATxCM,name=DocsDS
 state: CONFIGURED
 I Depend On:   jboss.jca:service=XATxDS,name=DocsDS
  jboss.jca:service=LocalTxPool,name=DocsDS
  jboss.jca:service=CachedConnectionManager
  jboss.security:service=JaasSecurityManager
  jboss.jca:service=RARDeployer

 Depends On Me: , ObjectName: jboss.jca:service=XATxDS,name=DocsDS
 state: CONFIGURED
 I Depend On:   jboss.jca:service=RARDeployment,name=Minerva JDBC XATransaction 
ResourceAdapter

 Depends On Me:   jboss.jca:service=XATxCM,name=DocsDS
]

?xml version=1.0 encoding=UTF-8?

!-- = --
!--   --
!--  JBoss Server Configuration   --
!--   --
!-- = --

!-- $Id: oracle-xa-ds.xml,v 1.1.2.1 2002/10/29 21:24:14 starksm Exp $ --
  !--  --
  !-- ConnectionManager setup for xa oracle dbs--
  !-- Thanks to igor fedorenko [EMAIL PROTECTED]  --
  !-- Build jmx-api (build/build.sh all) and view for config documentation --
  !--  YOU MUST CHANGE THE XidFactoryMBean config to this: --

  !--
  Note: I set Pad=true in transaction-service.xml
  mbean code=org.jboss.tm.XidFactory 
	 name=jboss:service=XidFactory
attribute name=Padtrue/attribute
  /mbean
  --

  !--  --


datasources

  xa-datasource
jndi-nameDocsDS/jndi-name
!-- The following optionally turns on the TrackConnectionByTx property
of XATxConnectionManager. This property creates a 1 to 1 mapping of
JDBC connections to transactions and prevents a connection from
participating in more than one transaction at the same time.  Setting this
to true seems to fix quite a few Oracle XA bugs. --
track-connection-by-txtrue/track-connection-by-tx
	managedconnectionfactory-classorg.jboss.resource.adapter.jdbc.xa.oracle.XAOracleManagedConnectionFactory/managedconnectionfactory-class
xa-datasource-property name=URLjdbc:oracle:thin:@foo:1521:bar/xa-datasource-property
	xa-datasource-property name=Userscott/xa-datasource-property
xa-datasource-property name=Passwordtiger/xa-datasource-property
  /xa-datasource

/datasources



Re: [JBoss-user] oracle-xa-ds.xml vs. oracle-xa-service.xml

2003-01-09 Thread David Ward
Igor,

Than I shall anxiously await the jboss-3.2.0RC1_tomcat-4.1.18 that Scott 
mentioned should be available sometime this weekend.

Thanks very much for your help,
David

--

Igor Fedorenko escribió::
You need at least beta3 to use oracle-xa-ds.xml. Sorry, I did not mention this in my previous email.





---
This SF.NET email is sponsored by:
SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See!
http://www.vasoftware.com
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user



Re: [JBoss-user] Cmp vs hibernate

2003-01-08 Thread David Ward
In addtion, I would like to see CMP and Hibernate compared with Apache 
OJB: http://jakarta.apache.org/ojb/

Thanks,
David

--

LaBanca, Rick escribió::
A bit off topic, but I need to ask those who have explored...

Has anyone here used hibernate in preference to cmp? If so how has it worked
out for you in jboss? We are considering it or cmp. Hibernate certainly
seems more flexible, but I was thinking it doesn't abstract the app from the
data as much as cmp forces you to.

Our application has fairly straightforward tables and relations, typical
ecommerce type data, no big transaction concerns. I guess my main question
is this, is hibernate better, or does it come down to just a different
method than cmp (ie a strong argument for using a standard api vs
hibernate).

Rick




---
This SF.NET email is sponsored by:
SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See!
http://www.vasoftware.com
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user



[JBoss-user] jboss-3.2.0beta3_tomcat-4.1.18?

2003-01-07 Thread David Ward
May the JBoss team please publish a jboss-3.2.0beta3_tomcat-4.1.18 
package to SourceForge?  (The latest tomcat bundle I see there is 
jboss-3.2.0beta2_tomcat-4.1.12.)

Thank you muchly,
David



---
This SF.NET email is sponsored by:
SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See!
http://www.vasoftware.com
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] DataSource or XADataSource: autocommit problem

2003-01-06 Thread David Ward
Using jboss-3.0.4_tomcat-4.1.12, JDK 1.4.1_01 on W2K, Linux, Solaris 9, 
hitting Oracle 9.2.0.1.0...

We have an app where all traffic goes through a single Servlet that 
wraps all application calls in a UserTransaction gotten from JNDI.  All 
database work gets done through a single DataSource mapped in JNDI, but 
unforunately some of that jdbc work is done in CMP's, some in SLSB, and 
some (gasp) in JSP's.  There is only one app server hitting one 
database, and we are using the latest ojdbc.jar (using thin) from Oracle.

My first question is, given the above scenario, do I have to use an 
XADataSource or is DataSource sufficient?  We have upgraded our 
architecture from JBoss 2.4.7 to 3.0.4, and in 2.4.7 we used 
XADataSource, though granted with the (I think Minerva?) wrapper.  We 
also had to configure to use Oracle's Xid class, not sure if that's 
necessary now or not.

My second question is, if we need to use an XADataSource, does 
oracle-xa-service.xml work in JBoss 3.0.4?  I think I remember seeing 
some questionable threads on this list about it.

The problem we're seeing now is that even though we're using a single 
UserTransaction around everything, it doesn't matter since Connections 
are being retured from the DataSource with autocommit ON, and stuff is 
being committed in the database before the UserTransaction commits it. 
I'm assuming this is because we're not using an XADataSource, but could 
I get by with a regular DataSource, but configure the oracle-service.xml 
somehow to hand out Connections with autocommit off?  Trying to turn 
autocommit off programatically throws an Exception since the server 
realizes we're using a UserTransaction.

Thanks for all your help,
David



---
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] Store large pdfs with JBoss

2003-01-03 Thread David Ward
I have been able to put CLOBs and BLOBs into Oracle 9i using JBoss 
3.0.4, though admittedly after jumping through several hoops.

1) yes, ejb's aren't supposed to do i/o - I do my work delegated from 
the servlet level.

2) You have to have autocommit off.  For some reason autocommit is on by 
default in JBoss 3 (wasn't in 2.4) from Connections from DataSources. 
Please someone tell me how to turn this off in a global config somewhere!

3) You have to first insert a row using an empty lob.  For example,
insert into my_table (key, data) values ('1', empty_blob())
.  You could have used empty_clob() if you were using CLOBS instead of 
BLOBS.

4) You can then update the BLOB, hower you have to re-select *** using 
select for update ***.  If you don't use select for update, ** it won't 
work **.  For example,
select data from my_table where key = '1' for update

5) You then can update the BLOB from the ResultSet.  Notice I said 
oracle.sql.BLOB not java.sql.Blob. I had to use an Oracle-specific type 
here.  I couldn't get it to work any other way, and I spent hours (no, 
setBinaryStream does not work)...  For example,
BLOB blob = (BLOB)rs.getBlob(1);
BufferedOutputStream bos =
new BufferedOutputStream( blob.getBinaryOutputStream() );
// write to the output stream
// safely close everything up

6) Don't forget to commit the work you did.  This will commit the insert 
and the data your wrote to your BLOB.

7) I set the autocommit on the Connection back to what it was when I 
first got it from the DataSource, before I close it (the Connection, 
which returns it to the pool).  Again, I'd like to see autocommit off 
since I wrap everything in a UserTransaction and it should be committed 
there instead...

Hope this will save you some of the painful time I had to go through if 
you decide to go this route.

David

--


Luttrell, Peter escribió::
Has anyone had experience storing large pdfs with jboss, say ~5mbs each?
 
I would like to do it with Oracle and BLOBs, but i've read that there's 
problems with the drivers and jboss and it doesn't look like it will be 
possible.
 
Has anyone done with with any other database?
 
Does anyone have ideas on how else to store these files, maybe without a 
database? I've always thought the filesystem was pretty much off limits 
from the appserver.
 
thanks.
.peter
 



This transmission contains information solely for intended recipient and 
may be privileged, confidential and/or otherwise protect from 
disclosure. If you are not the intended recipient, please contact the 
sender and delete all copies of this transmission. This message and/or 
the materials contained herein are not an offer to sell, or a 
solicitation of an offer to buy, any securities or other instruments. 
The information has been obtained or derived from sources believed by us 
to be reliable, but we do not represent that it is accurate or complete. 
Any opinions or estimates contained in this information constitute our 
judgment as of this date and are subject to change without notice. Any 
information you share with us will be used in the operation of our 
business, and we do not request and do not want any material, nonpublic 
information. Absent an express prior written agreement, we are not 
agreeing to treat any information confidentially and will use any and 
all information and reserve the right to publish or disclose any 
information you share with us.



--

-
David Ward
[EMAIL PROTECTED]
http://www.dotech.com



---
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] Store large pdfs with JBoss

2003-01-03 Thread David Ward
Scott M Stark escribió::
 Write a JCA adaptor for a file based persistent store.

--

You say that like it's so easy Scott...  ;)  Seriously, what is Oracle 
underneath all the cool stuff but a file based persistent store.

Anyway, if you are going to indeed write your own jca adapter, instead 
of starting from scratch here is a possible place to start.  Granted, 
there is nothing in the code that has anything to do with the JCA spec, 
but it points out some stuff you will need to keep in mind when you 
implement one:

http://www.onjava.com/pub/a/onjava/2001/11/07/atomic.html
http://www.onjava.com/onjava/2001/11/07/examples/atomic.zip

David



---
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] LoginModule methods not always being called on login

2002-12-24 Thread David Ward
Hello, all - we've got an issue where interface methods of our custom 
login module are not being called after a first successful login.  Our 
guess is somewhere in the security info caching.  We see it in both 
JBoss-2.4.7_Tomcat-3.2.3 and jboss-3.0.3_tomcat-4.1.12 on W2K, Linux, 
Solaris, using JDK 1.3.1 and JDK 1.4.1.  We are using form-based 
authentication, per J2EE spec.

When a user is authenticated the first time (successfully), the login() 
and commit() methods of our custom LoginModule are called and all is 
well.  The second time the user logs in (successfully), he is 
automatically logged in, however, login() and commit() are not being called.

We have custom code in login() and commit() that always need to called 
during a login.  If we clear the jboss security authentication cache 
between logins, the methods get called again, however this solution is 
undesireable since it clears all the roles for other users also and 
causes us to have to query the database for the roles again.

Here are the 3.0 config files associated with the login module:

jboss-web.xml:
  jboss-web
security-domainjava:/jaas/docs/security-domain
...
  /jboss-web

web.xml:
  login-config
auth-methodFORM/auth-method
realm-nameWebDOCS/realm-name
form-login-config
  form-login-page/login.jsp/form-login-page
  form-error-page/authenticationError.jsp/form-error-page
/form-login-config
  /login-config

login-config.xml:
  application-policy name = docs
authentication
  login-module code = corp.docs.security.DOCSLoginModule
flag = required
module-option name = dsJndiNamejava:/DocsDS/module-option
  /login-module
/authentication
  /application-policy

Here are the 2.4 config files:

auth.conf:
  // The docs login module
  docs {
org.jboss.security.auth.spi.ProxyLoginModule required
moduleName=corp.docs.security.DOCSLoginModule
dsJndiName=java:/DocsDS;
  };

jboss.jcml:
  !-- JAAS security manager and realm mapping --
  mbean code=org.jboss.security.plugins.JaasSecurityManagerService 
name=Security:name=JaasSecurityManager
attribute name
=SecurityManagerClassNameorg.jboss.security.plugins.JaasSecurityManager/attribute
attribute name
=LoginConfigSecurity:name=DefaultLoginConfig/attribute
  /mbean
  mbean code=org.jboss.security.plugins.DefaultLoginConfig name
=Security:name=DefaultLoginConfig
attribute name=AuthConfigauth.conf/attribute
  /mbean

web.xml:
  login-config
auth-methodFORM/auth-method
form-login-config
  form-login-page/login.jsp/form-login-page
  form-error-page/authenticationError.jsp/form-error-page
/form-login-config
  /login-config

jboss-xml:
  jboss-web
security-domainjava:/jaas/docs/security-domain
...
  /jboss-web

Has anyone else seen this?  Is there a way to configure jboss to always 
call all methods on the custom LoginModule during a login, but cache 
authentication/roles during other use of the system?

Thanks,
David




---
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] LoginModule methods not always being called on login

2002-12-24 Thread David Ward
Scott,

Thank you for your prompt reply.  Can you point me to some docs/examples 
of how to configure security caching and implementing my own security 
cache policy for 3.0 (and maybe also 2.4)?  I looked through 
JBossBook_304.pdf and nothing jumped out at me.

Thanks again,
David

--

Scott M Stark escribió::
This is the expected behavior due to caching. If caching is enabled then
a given login module stack is not executed unless the cache credentials are
missing or expired. You need to implement your own cache policy that
returns no value when accessed in the context of the web app and returned
the authentication cache info outside of this context.


Scott Stark
Chief Technology Officer
JBoss Group, LLC


- Original Message - 
From: David Ward [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Tuesday, December 24, 2002 9:06 AM
Subject: [JBoss-user] LoginModule methods not always being called on login



Hello, all - we've got an issue where interface methods of our custom 
login module are not being called after a first successful login.  Our 
guess is somewhere in the security info caching.  We see it in both 
JBoss-2.4.7_Tomcat-3.2.3 and jboss-3.0.3_tomcat-4.1.12 on W2K, Linux, 
Solaris, using JDK 1.3.1 and JDK 1.4.1.  We are using form-based 
authentication, per J2EE spec.

...


Has anyone else seen this?  Is there a way to configure jboss to always 
call all methods on the custom LoginModule during a login, but cache 
authentication/roles during other use of the system?

Thanks,
David






---
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] Accessing EJB remotely

2002-12-19 Thread David Ward
Weber,

You need to use the GLOBAL jndi name for your bean from remote clients. 
 JBoss has yet to support remote clients using the env/ejb context.
Change your xdoclet ejb.bean tag to have both jndi-name and 
local-jndi-name attributes (and view-type=both).  Use the 
local-jndi-name when code runs in the same vm as jboss and use the local 
interface, with NO PortableRemoteObject.  For remote clients, use the 
jndi-name WITH PortableRemoteObject and the remote interface.

Hope this helps,
David

--

Weber Simoes Oliveira wrote:
Hi folks,

as you will notice, i'm a newbie to JBoss. My doubt is about how to
access an EJB remotely.

The first thing i did was trying to access the EJB from a local client
application. So far, so good. The client ran smoothly and i thought that
was pretty much all there was to it. Nevertheless, every time i try to
run the same client application remotely, it crashes because the lookup
call on the InitialContext instance always returns null.

As far as i can see, its a problem on the absolute path of the context
i'm passing to the lookup method. The EJB is being deployed correctly
and the client application finds and connects to the server, as shown in
the following tcpdump output:

// ** tcpdump output *
[weber@gauss deploy]$ sudo /usr/sbin/tcpdump port 1099
tcpdump: listening on eth0
15:47:24.116519 socrates.34548  gauss.1099: S 323478976:323478976(0)
win 5840 mss 1460,sackOK,timestamp 49002257 0,nop,wscale 0 (DF)
15:47:24.116623 gauss.1099  socrates.34548: S 941156804:941156804(0)
ack 323478977 win 5792 mss 1460,sackOK,timestamp 11251787
49002257,nop,wscale 0 (DF)
15:47:24.116967 socrates.34548  gauss.1099: . ack 1 win 5840
nop,nop,timestamp 49002257 11251787 (DF)
15:47:24.132574 gauss.1099  socrates.34548: P 1:5(4) ack 1 win 5792
nop,nop,timestamp 11251795 49002257 (DF)
15:47:24.132941 socrates.34548  gauss.1099: . ack 5 win 5840
nop,nop,timestamp 49002266 11251795 (DF)
15:47:24.135833 gauss.1099  socrates.34548: P 5:84(79) ack 1 win 5792
nop,nop,timestamp 11251796 49002266 (DF)
15:47:24.136257 socrates.34548  gauss.1099: . ack 84 win 5840
nop,nop,timestamp 49002267 11251796 (DF)
15:47:24.136296 gauss.1099  socrates.34548: P 84:90(6) ack 1 win 5792
nop,nop,timestamp 11251797 49002267 (DF)
15:47:24.136580 socrates.34548  gauss.1099: . ack 90 win 5840
nop,nop,timestamp 49002268 11251797 (DF)
15:47:24.138991 gauss.1099  socrates.34548: P 90:107(17) ack 1 win 5792
nop,nop,timestamp 11251798 49002268 (DF)
15:47:24.139106 gauss.1099  socrates.34548: FP 107:350(243) ack 1 win
5792 nop,nop,timestamp 11251798 49002268 (DF)
15:47:24.139495 socrates.34548  gauss.1099: . ack 107 win 5840
nop,nop,timestamp 49002269 11251798 (DF)
15:47:24.177555 socrates.34548  gauss.1099: . ack 351 win 6432
nop,nop,timestamp 49002289 11251798 (DF)
15:47:24.511130 socrates.34548  gauss.1099: F 1:1(0) ack 351 win 6432
nop,nop,timestamp 49002459 11251798 (DF)
15:47:24.511198 gauss.1099  socrates.34548: . ack 2 win 5792
nop,nop,timestamp 11251989 49002459 (DF)


15 packets received by filter
0 packets dropped by kernel
// ** end of output **

As i'm trying to use the JBoss naming service from a remote machine i
also included in my classpath the client jar packs which come along
with the JBoss package and the path to the following jndi.properties
file:

// * jndi.properties *
java.naming.factory.initial=org.jnp.interfaces.NamingContextFactory
java.naming.factory.url.pkgs=org.jboss.naming:org.jnp.interfaces
java.naming.provider.url=gauss
// * end of jndi.properties *

where gauss is where the JBoss server is located.

The following is the code i'm trying get to work:

// ** The Client Application **
package test.client;

import test.interfaces.Calculator;
import test.interfaces.CalculatorHome;

import javax.naming.InitialContext;
import javax.rmi.PortableRemoteObject;

public class TestClient {
   public static void main(String[] args){
  try {
 CalculatorHome calcHome = lookupCalculatorHome();
 Calculator calculator = calcHome.create();
 System.out.println(3 + 4 =  + calculator.add(3,4));
 System.out.println(2 - 8 =  + calculator.subtract(2,8));
 calculator.remove();
  } catch( Exception e ) {
 e.printStackTrace(System.err);
  }
   }

   public static CalculatorHome lookupCalculatorHome() throws Exception{
  InitialContext ic = new InitialContext();
  Object calculatorReference = ic.lookup(ejb/test/Calculator);
  return((CalculatorHome)PortableRemoteObject.narrow(
	calculatorReference,CalculatorHome.class
	)
  );
   }
}

// * The Stateless Session Bean **
package test.session;

import javax.ejb.SessionBean;
import javax.ejb.SessionContext;

/**
 * Encapsulates the retrival of DB data
 *
 * @author Weber
 * @version $Revision: 0.1 $
 *
 * @ejb:bean name=test/Calculator
 *   display-name=Calculadora sofisticada
 *   

Re: [JBoss-user] Fastest (and stable) way to turn existing EJBs into Web Services?

2002-12-18 Thread David Ward
If you make sure your value objects adhere to the javabean spec, you can 
use Axis' custom BeanSerializer and BeanDeserializer to automatically 
encode/decode them for you.  I do this and it works fine.  Initially the 
cvs version of xdoclet (1.2) was not making true javabeans for the 
value objects, but I submitted a patch that has long since been applied 
that fixes that.  As for the WSDL, adding ?WSDL to your service URL 
creates it for you dynamically with JBoss.net/Axis.  Granted, I haven't 
tested this with a .net client yet...

David

--

Joe Hung wrote:
Thanks Dr. Jung. It's good to hear that we should have JBoss.net ready in
JBoss 3.2 by the end of...2002? ;)

I don't really need fancy registry, and basic authentication is good enough
for me. The thing I'm most concerned is, we have around 30 SLSBs but all of
them use value object pattern that means the parameters in the SLSBs are
not basic data types. Also the client is a .net client and not a plain
Java client. 

I've been looking for a product that can do the above 2 things, ie (1)
custom object serialization (and WSDL of course) and (2) .net client
interoperability and I cannot seem to find any! Even on commercial product.
Maybe I didn't look hard enough. I really would like your input on the
status of the industry and gives me some suggestions. I'm staying on the
JBoss side so far and I really hope JBoss.net can give me all these without
some major surgery on our code (we use ejbdoclet too).

I haven't checked out Altoweb. Do they have an example to show the above 2
requirements?

cheers,

-joe

-Original Message-
From: Jung , Dr. Christoph [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, December 17, 2002 11:37 PM
To: '[EMAIL PROTECTED]'
Subject: AW: [JBoss-user] Fastest (and stable) way to turn existing EJBs
i nto Web Services?


-Ursprüngliche Nachricht-

Von: Joe Hung [mailto:[EMAIL PROTECTED]] 
Gesendet: Mittwoch, 18. Dezember 2002 02:30
An: [EMAIL PROTECTED]
Betreff: [JBoss-user] Fastest (and stable) way to turn existing EJBs into

Web Services?




if I want to achieve it within the next 2 months? 


Depends on which JBoss version you want to use and which Web Service
requirements you have.



1) Use JBoss with Axis (what version?)
2) Use JBoss.net (what version?)



JBoss.net really is Axis with a bit of comfortability around. I will have
backported the JBoss4(head)+Axis1(release) combo into
JBoss3.2(beta)+Axis1(release) by the end of this year. If 

- that stability is what you are content with and 
- you stick pretty much with the SLSB as Web Service, JavaBean as
XML-Structures approach and
- you are satisfied with http-auth security and
- you do not want sophisticated XML-registry support

I guess that jboss.net could be your choice, especially since the xdoclet
task makes it very easy to build. We will also care about smoothly migrating
to the J2EE1.4 spec from the web service archive design.


3) Use 3rd party tools like GLUE.



I have no experience with it. But they make a good and advanced impression
(which they should for the money ;-), nevertheless seems to be somewhat
proprietary.

What about Altoweb?

CGJ





---
This SF.NET email is sponsored by: Order your Holiday Geek Presents Now!
Green Lasers, Hip Geek T-Shirts, Remote Control Tanks, Caffeinated Soap,
MP3 Players,  XBox Games,  Flying Saucers,  WebCams,  Smart Putty.
T H I N K G E E K . C O M   http://www.thinkgeek.com/sf/
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user



Re: [JBoss-user] Using Apache web server - yes or no?

2002-12-10 Thread David Ward
Joao Pedro Clemente wrote:

Hello!
   I am using JBoss  with bundled Tomcat.  The server which I
am running applications will only have dynamic applications (servlets or
servlets + EJBs).
   On this case should I use the apache web server, or can I
use Tomcat to answer to HTTP requests directly?
   I would appreciate to know opinions/experiences on this
topic.



No experience (havent tested it) but Apache will only slow you down as you
have one extra layer to go through, that does not add any value to your
app (does not perform any work)
just my opinion. Lets the big boys advice also.

Joao Clemente



--

Be careful of one-size-fits all suggestions.  I do have experience, and 
whether it helps or hurts depends on your situation.

Even if all your pages are dynamic, if you have a bunch of static images 
it often helps to have Apache serve them up.  Also for security reasons, 
many people put Apache in the DMZ, and have JBoss/Tomcat on a server 
behind the firewall next to their database box.  The only allowed port 
through the firewall is for the mod_jk communication, and allowed only 
from one (or a specific list if you've got more than one Apache box) IP 
address.  Lastly, I do usually maintain that the web container (Tomcat) 
co-exist in the same JVM process as the EJB container (JBoss) so you can 
avoid serialization and use local interfaces (allowing pass-by-reference).

In the end, you should do your own performance testing, and weigh it 
against your security needs, your configuration tolerance, and last but 
not least, your budget.

David



---
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] FYI: The Register - Article mentioning JBoss, JCPand Sun

2002-12-09 Thread David Ward
I don't get this excerpt:

JBoss will not be a complete implementation of J2EE 1.4, though. Fleury 
said APIs for XML-based Web services were excluded because of a lack of 
demand. The APIs will be included should that change, he said.

JBoss 3.0.x+ includes Apache AXIS integration... isn't that most of the 
way there (to web services)?  Correct me if I'm wrong, but since it 
appears that JAXM based Message Driven Beans isn't going to make it in 
EJB 2.1, the only thing left is JAXR endpoint interfaces to SLSB's (and 
resource factories to external web services).  If JBoss re-aligns the 
.wsr archive stuff to accomodate SLSB endpoints, why exclude it?

BTW, I'm assuming J2EE 1.4 support is what JBoss 4 stuff is targeted 
for, right?

David

--

Jung , Dr. Christoph wrote:
guess you already know this, but just in case ...
 
http://www.theregister.co.uk/content/53/28472.html
 
CGJ



---
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] FYI: The Register - Article mentioning JBoss, JCPand Sun

2002-12-09 Thread David Ward
David Jencks wrote:


JBoss 3.0.x+ includes Apache AXIS integration... isn't that most of the 
way there (to web services)?  Correct me if I'm wrong, but since it 
appears that JAXM based Message Driven Beans isn't going to make it in 
EJB 2.1,


Do you happen to know why not?  It looked trivial to implement, given a
jaxm implementation and the rest of the jca 1.5  stuff.

thanks
david jencks


David,

Read this:
http://www2.theserverside.com/resources/articles/MonsonHaefel-Column3/article.html
(this is the 2nd article - the first one talks about endpoint interfaces).

In the 2nd article, take a look at the Introduction and the JAXM 
sections for one person's possible explanation.

Now, here's the weird part: If you look at ejb-2_1-prd-spec.pdf (from 
Sun), they still have a couple places in the spec where they do mention 
JAXM message-driven beans.  For example, like this:

The message-driven bean class's implementation of the 
javax.xml.messaging.OnewayListener or 
javax.xml.messaging.ReqRespListener interface distinguishes the 
message-driven bean as a JAXM message-driven bean.

Do a search in the spec for JAXM and you'll see them.  *However*, it 
seems like these were just places that Sun forgot to remove the text, 
because they *were* going to support them?  However, nowhere in the spec 
do I see any examples of using JAXM message-driven beans, only JMS.  No 
figures, no XML examples, no code, no nothing!

Maybe I'm just missing something here.  Either they did a poor job 
cleaning out the document when they decided not to support it, or they 
are supporting it but were lazy filling out the spec with figures, 
examples and code...

Can anyone else clear this up?

Thanks,
David



---
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] J2ee spec thoughts

2002-12-09 Thread David Ward
Bill Burke wrote:

Answer?

Because there is no way to propagate transaction and security contexts to
the spawned threads unless J2EE provided a thread creation API.

Bill



I was under the impression that transaction and security context 
propagation was done using java.lang.ThreadLocal - a nice way to have a 
variable available to all work done in a server request thread (without 
having to pass the same params to everyone), as long as the class 
holding the (ThreadLocal) variable lives in a common ClassLoader.

Now, to address accessing it via spawned threads, wouldn't 
java.lang.InhertiableThreadLocal work for tx and sx propagation?  Take a 
look at the class description in javadoc.

The real problem I see is orchestrating a single, safe commit...  when?

David




---
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] J2ee spec thoughts

2002-12-09 Thread David Ward
Dain Sundstrom wrote:


On Monday, December 9, 2002, at 10:51 AM, David Ward wrote:


Bill Burke wrote:


Answer?
Because there is no way to propagate transaction and security 
contexts to
the spawned threads unless J2EE provided a thread creation API.
Bill



I was under the impression that transaction and security context 
propagation was done using java.lang.ThreadLocal - a nice way to have 
a variable available to all work done in a server request thread 
(without having to pass the same params to everyone), as long as the 
class holding the (ThreadLocal) variable lives in a common  ClassLoader.

Now, to address accessing it via spawned threads, wouldn't 
java.lang.InhertiableThreadLocal work for tx and sx propagation?  Take 
a look at the class description in javadoc.

The real problem I see is orchestrating a single, safe commit...  when?


Only one thread is allowed to be associated with a transaction at a time 
(it's in one of the specs), so which spawned thread gets the tx?

-dain


--

I understand that the spec says only one thread is allowed to be 
associated with a tx at a time, but I thought the discussion was 
centered around limitations of the spec, and what might want to be 
changed about it (and then, of course, how it could be done - we're 
programmers after all).  ;)

I guess my fundamental question is, is it a transaction that has a 
reference to a thread (which seems pretty limited - probably for good 
reasons initially), or is it the thead that carries the reference to the 
transaction (context)?  If it's the later, that's when I suggested that 
InheritableThreadLocal could come into service.  Each spawned thread 
could still access the tx from the InheritableThreadLocal.  If it's the 
prior, then I'll have learned something and retract with my tail between 
my legs - no problem.

David Jenks said, The inheritablethreadlocal doesn't seem to fit with 
thread pooling all that well.
I would disagree with this since thread local variables could be reset 
before the thread is handed out to someone else.

But then he said (and I agree), To me the question is how to provide 
some protection against threads interfering with each other, such as two 
threads accessing the same database.  The jca 1.5 spec has thread 
pooling and transaction import features, but it prohibits 2 threads 
working in the same tx at the same time, presumably due to the 
difficulties of ensuring consistent or deterministic results should this 
be allowed.
 - That's probably the clincher, and not an easy one to resolve.

David




---
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] J2ee spec thoughts

2002-12-09 Thread David Ward
David Ward wrote:

David Jenks said, The inheritablethreadlocal doesn't seem to fit with 
thread pooling all that well.
I would disagree with this since thread local variables could be reset 
before the thread is handed out to someone else.

Duh.  Ok - I was being stupid.  Of course it doesn't work out well here 
since the threads weren't created by the thread with the tx.  What was I 
on...  Sorry, David.


But then he said (and I agree), To me the question is how to provide 
some protection against threads interfering with each other, such as two 
threads accessing the same database.  The jca 1.5 spec has thread 
pooling and transaction import features, but it prohibits 2 threads 
working in the same tx at the same time, presumably due to the 
difficulties of ensuring consistent or deterministic results should this 
be allowed.
 - That's probably the clincher, and not an easy one to resolve.

David






---
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] J2ee spec thoughts

2002-12-09 Thread David Ward
Dain Sundstrom wrote:

On Monday, December 9, 2002, at 12:34 PM, David Ward wrote:


I guess my fundamental question is, is it a transaction that has a 
reference to a thread (which seems pretty limited - probably for good 
reasons initially), or is it the thead that carries the reference to 
the transaction (context)?  If it's the later, that's when I suggested 
that InheritableThreadLocal could come into service.  Each spawned 
thread could still access the tx from the InheritableThreadLocal.  If 
it's the prior, then I'll have learned something and retract with my 
tail between my legs - no problem.


I think you would have a very difficult time building a transaction 
manager that could allow multiple threads in a single transaction.  Just 
to start with, you would have a huge problem with serialized isolation.  
Then you would have a big problem with connectors as everyone assumes 
you only have one thread in a tx at a time (this is a huge step forward 
from the days when you could only have a single thread per tx and it 
always had to be the same one... old junk).

Anything is possible, but is it worth it, when you can get 95% of the 
need from a JMS queue and new transactions?

-dain


--

I aggree; I was just brainstorming after Rick L.'s original email.  Can 
someone please still answer my fundamental question above?  I would 
just like to know...

Thanks,
David




---
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] HELP!? Works in JBoss-3.0.4 with JBossWeb (Jetty),and Tomcat 4.1.12 Standalone - not in JBoss-3.0.4+Tomcat-4.1.12-LE-jdk14

2002-12-06 Thread David Ward

8. Good job and well done! (Cry if it's JBoss + Tomcat)

example\build.xml
---snip
project name=Example Application default=all basedir=.
	target name=init
		property name=dirs.base value=${basedir}/
		property name=classdir value=${dirs.base}/build/src/
		property name=src value=${dirs.base}/src/
		property name=web value=${dirs.base}/web/
		property name=deploy value=${dirs.base}/build/deploy/
		property name=deploymentdescription value=${dirs.base}/build/descriptors/

		property name=warFile value=example.war/
		property name=earFile value=example.ear/

		property name=earDir value=${dirs.base}/build/ear/
		property name=warDir value=${dirs.base}/build/war/
		property name=srcDir value=${dirs.base}/build/src/
		property name=srcDeploymentdescription value=${dirs.base}/descriptors/

!-- Create build/src directory to hold the output classes--
		mkdir dir=${srcDir}/

!-- Create build/src directory to hold the output classes--
		mkdir dir=${deploymentdescription}/

!-- Create build/deploy directory to hold the output war and ear files--
		mkdir dir=${deploy}/

!-- Create Web-inf and classes directories --
		mkdir dir=${warDir}/WEB-INF/
		mkdir dir=${warDir}/WEB-INF/classes/

!-- Create Meta-inf and classes directories --
		mkdir dir=${earDir}/META-INF/
		
			!-- Copy the application.xml and web.xml files from descriptors
			to build/descriptors --
	copy todir=${deploymentdescription}
		  fileset dir=${srcDeploymentdescription} includes=**/*.xml / 
	/copy
	/target

	!-- Main target  --
	target name=all depends=init,build,buildWar,buildEar/

	!-- Compile Java Files and store in /build/src directory  --
	target name=build 
  	  javac srcdir=${src} destdir=${classdir} debug=true includes=**/*.java /
  /target

	!-- Create the War File --
	target name=buildWar depends=init
	copy todir=${warDir}/WEB-INF/classes
		  fileset dir=${classdir} includes=**/*.class / 
	/copy
	copy todir=${warDir}/WEB-INF
		  fileset dir=${deploymentdescription} includes=web.xml / 
	/copy
	copy todir=${warDir}
		  fileset dir=${web} includes=**/*.* / 
	/copy

!-- Create war file and place in ear directory --
		jar jarfile=${earDir}/${warFile} basedir=${warDir} /

			!-- Copy the war file to the deploy directory --
	copy todir=${deploy}
		  fileset dir=${earDir} includes=**/*.war / 
	/copy
	/target

	!-- Create the War File --
	target name=buildEar depends=init
	copy todir=${earDir}/META-INF
		  fileset dir=${deploymentdescription} includes=application.xml / 
	/copy

!-- Create ear file and place in ear directory --
		jar jarfile=${deploy}/${earFile} basedir=${earDir} /
	/target
/project
---snip


example\descriptors\application.xml
---snip
?xml version=1.0 encoding=ISO-8859-1?

application
	display-nameExample Application/display-name
	module
	web
		web-uriexample.war/web-uri
		context-root/example/context-root
	/web
	/module
/application
---snip


example\descriptors\web.xml
---snip
?xml version=1.0 encoding=ISO-8859-1?

!DOCTYPE web-app
PUBLIC -//Sun Microsystems, Inc.//DTD Web Application 2.2//EN
http://java.sun.com/j2ee/dtds/web-app_2_2.dtd;

web-app
/web-app
---snip


example\src\HelloWorld.java
---snip
import java.io.*;
import java.text.*;
import java.util.*;
import javax.servlet.*;
import javax.servlet.http.*;

public class HelloWorld extends HttpServlet {


public void service(HttpServletRequest request,
  HttpServletResponse response)
throws IOException, ServletException
{
response.setContentType(text/html);
PrintWriter out = response.getWriter();

		out.println(html);
		out.println(head);
		out.println(titleDeployment Example Servlet!/title);
		out.println(/head);
		out.println(body);
		out.println(H1Hello World!/H1br);
		out.println(a href=\javascript:history.back()\Click here to return to the JSP/a);
		out.println(/body);
		out.println(/html);
		
}
}
---snip


example\web\index.jsp
---snip
%@page language=java %
html

head
titleDeployment Example/title
/head

body
H1Deployment Example/H1
The deployment of the JSP worked!brbr
a href=servlet/HelloWorldClick here to execute the Servlet/a
/body

/html ---snip


--

-
David Ward
[EMAIL PROTECTED]
http://www.dotech.com



---
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] how to not blow away work dir on undeploy?

2002-12-05 Thread David Ward
Hello, all.

My env:
jboss-3.0.3_tomcat-4.1.12
Sun JDK 1.4.1_01
Linux 2.4.19-16mdk, Mandrake 9.0, i686
Apache 2.0.43 w/JK2.0.2-Coyote

When I was using jboss-3.0.3_tomcat-4.1.12, undeployment of my app 
caused a stack trace in the jboss server console.  That seems to be 
fixed in jboss-3.0.4_tomcat-4.1.12, BUT Ive got a new problem: The 
undeploy blows away my tomcat work directory!

To be more specific, actions of redeploy/undeploy/shutdown all make this 
directory:
/opt/jboss/tomcat-4.1.x/work/MainEngine/localhost/MyAppDir
get blown away.

The side effect of this means that whenever I re(hot)deploy my app, all 
my JSPs have to recompile all over again, even if they haven't changed. 
 This absolutely kills iterative development by increasing 
redeployment/retest time drastically.

Is there someway I can disable this behavior?  I've used JBoss for a 
LONG time (many versions of it), and this is the first version I've seen 
that blows away the web container's already-compiled JSPs.  I'm just 
fine with this happening on a production server - but not when I'm 
trying to develop.

I haven't seen if this happens with the latest Jetty bundle, but I'm 
guessing it does... See the very recent email on this list by Todd Benge 
Change Jetty Deployment Dir - he says ...and also instruct Jetty not 
to clean the directory on undeployment?

Thanks for any and all help,
David

-
David Ward
[EMAIL PROTECTED]
http://www.dotech.com



---
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] Same deployment unit?

2002-11-26 Thread David Ward
Serlvet goes in war, EJB in jar.  Servlet can use local interface to ejb 
since war and jar both in an ear (the same deployment unit).

A Servlet can *not* use a local interface of an ejb that's on a 
different app server.  That would, by definition, imply remote.

You can find out the nitty-gritty details by reading the J2EE, EJB, and 
Servlet specs.

Hope this helps,
David

--

SainTiss wrote:
Hi,

I've read that a servlet for example could have access to an EJB's local
interface, if the servlet is in the same deployment unit as the EJB...

Does this mean it has to be on the same application server? Or does this
mean it's got to be in the same jar? 

In the second case there seems to be a problem, since servlets seem to
go in war files and EJB's in jar files...

Thanks

Hans





---
This SF.net email is sponsored by: Get the new Palm Tungsten T 
handheld. Power  Color in a compact size! 
http://ads.sourceforge.net/cgi-bin/redirect.pl?palm0002en
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] valueUnbound not being called

2002-11-22 Thread David Ward
Does anybody know why public void valueUnbound(HttpSessionBindingEvent) 
isn't being called on objects stored in an HttpSession with a hot 
redeploy or shutdown/startup of jboss with jboss-3.0.3_tomcat-4.1.12?

It's causing us major problems as we need that hook.  I'm guessing it's 
related to this:
http://www.mail-archive.com/jboss-user@lists.sourceforge.net/msg5.html

Does anyone think this is related to the stack trace on web app undeploy 
that was broken in 3.0.3 but supposedly fixed in jboss-3.0.4-tomcat_4.1.2?
http://sourceforge.net/project/shownotes.php?release_id=120145
See see the Jett/Tomcat comment:
# comments: Obtain the working dir from the context before removing the 
context to
  NPEs during the destroy of the context. Fixes bug # 620440.

Thanks all,
David

-
David Ward
[EMAIL PROTECTED]
http://www.dotech.com



---
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] configuring security if web and ejbs on differentmachines

2002-11-21 Thread David Ward
Maybe I'm coming in late on this thread...

What *I* don't understand is why you think having your web container on 
one machine and your ejb's on another would perform better.  Having your 
servlets run in the same JVM as your ejb's allows your servlets to 
access them with local interfaces, and you can pass your objects by 
reference instead of by value (read: serialization unecessary).  You 
will get much better performance if everything is in the same JVM.  Just 
beef up your box instead of spending $$$ on two.

Now, if you want to have Apache serve up some static content and front 
your app, that's fine (especially if for security reasons you want your 
app server behind a firewall and your web server in the dmz).  However, 
it will forward dynamic requests to your app server - where your web 
container and ejb tier coexist in the same process.

David

--

Pavel Kolesnikov wrote:
On Wed, 20 Nov 2002, Dain wrote:



There is no reason you have to separate the web container from the EJB 
container.


I don't understand this - what if I want to run my application
on two machines because of performance reasons? What should
I do instead of putting my webapp on one machine and my EJBs
on the second one?

Pavel






---
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] configuring security if web and ejbs on differentmachines

2002-11-21 Thread David Ward
Pavel,

Feel free to run your own performance tests (always run your own tests 
since applications and configurations differ), however leverage the 
cummulative wisdom and experience that exists on this list (it's very 
significant here) as a good starting point.

Generaly speaking, the advice I gave you (supported by others' comments) 
holds true in most circumstances.  If you've got an extra box laying 
around, then cannibalize the CPU and RAM out of it and stick it into 
your main box.

Also know that serialization is not the only issue.  If you split the 
boxes up, you've *also* introduced network latency between the two, 
other RPC/RMI issues, and quite possibly more container 
interceptors/invokers that need to get involved (not positive about this 
one, others on this list could verify).

Whether or not (or how) you explain it to your customer(s) is up to you. 
 Mostly what we suggested has become the domain of common knowledge, 
but if you need to back it with hard numbers either do some searching 
online, ask people on this list if they've run some tests that they 
could share with you, or - last but not least - run the tests yourself.

Have fun,
David

--

Pavel Kolesnikov wrote:
OK, thanks for you response, I understand your point.

But what should I do, if there's a need for better perfomance
and customer says well, I could buy another CPU or more RAM, but
I have also an extra unused machine here - couldn't we use it
instead of buying new CPU or RAM? Should I try to explaint him
it's not a good idea?

I thought splitting my app between two machines should also give
me a significant performance even though the serialization overhead, 
shouldn't it?

Pavel

On Thu, 21 Nov 2002, David Ward wrote:


Maybe I'm coming in late on this thread...

What *I* don't understand is why you think having your web container on 
one machine and your ejb's on another would perform better.  Having your 
servlets run in the same JVM as your ejb's allows your servlets to 
access them with local interfaces, and you can pass your objects by 
reference instead of by value (read: serialization unecessary).  You 
will get much better performance if everything is in the same JVM.  Just 
beef up your box instead of spending $$$ on two.

Now, if you want to have Apache serve up some static content and front 
your app, that's fine (especially if for security reasons you want your 
app server behind a firewall and your web server in the dmz).  However, 
it will forward dynamic requests to your app server - where your web 
container and ejb tier coexist in the same process.

David

--

Pavel Kolesnikov wrote:

On Wed, 20 Nov 2002, Dain wrote:




There is no reason you have to separate the web container from the EJB 
container.


I don't understand this - what if I want to run my application
on two machines because of performance reasons? What should
I do instead of putting my webapp on one machine and my EJBs
on the second one?

Pavel






---
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



--

-
David Ward
[EMAIL PROTECTED]
http://www.dotech.com



---
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] configuring security if web and ejbs on differentmachines

2002-11-21 Thread David Ward
Good point.  Now you're introducing a more clustered approach.  It 
really depends on what his needs are - and from the sounds of it the 
performance requirements don't seem very well known.  I didn't know if 
he wanted to go that far.

When it comes to applications, I usually warn people not to invent a 
perceived performance problem.  Often times people go overboard and 
their design suffers from something that might be when there is no 
data to support it.  I say, design for best design, but test early and 
often so if you do need to modify the design for performance reasons 
you're not too far down a certain path.

David

--

Emerson Cargnin - SICREDI Serviços wrote:
i think a better distribution would be not between layers, but having 
both layers in both machines, so that it scales nice and mantain 
web-ejb comunication inside the same vm. Beyond that , there won't be a 
single point of failure. You would use a cisco (hardware) or mod_jk 
(software) to do the load balancing.

David Ward wrote:

Pavel,

Feel free to run your own performance tests (always run your own tests 
since applications and configurations differ), however leverage the 
cummulative wisdom and experience that exists on this list (it's very 
significant here) as a good starting point.

Generaly speaking, the advice I gave you (supported by others' 
comments) holds true in most circumstances.  If you've got an extra 
box laying around, then cannibalize the CPU and RAM out of it and 
stick it into your main box.

Also know that serialization is not the only issue.  If you split the 
boxes up, you've *also* introduced network latency between the two, 
other RPC/RMI issues, and quite possibly more container 
interceptors/invokers that need to get involved (not positive about 
this one, others on this list could verify).

Whether or not (or how) you explain it to your customer(s) is up to 
you.  Mostly what we suggested has become the domain of common 
knowledge, but if you need to back it with hard numbers either do some 
searching online, ask people on this list if they've run some tests 
that they could share with you, or - last but not least - run the 
tests yourself.

Have fun,
David

--

Pavel Kolesnikov wrote:

OK, thanks for you response, I understand your point.

But what should I do, if there's a need for better perfomance
and customer says well, I could buy another CPU or more RAM, but
I have also an extra unused machine here - couldn't we use it
instead of buying new CPU or RAM? Should I try to explaint him
it's not a good idea?

I thought splitting my app between two machines should also give
me a significant performance even though the serialization overhead, 
shouldn't it?

Pavel

On Thu, 21 Nov 2002, David Ward wrote:


Maybe I'm coming in late on this thread...

What *I* don't understand is why you think having your web container 
on one machine and your ejb's on another would perform better.  
Having your servlets run in the same JVM as your ejb's allows your 
servlets to access them with local interfaces, and you can pass your 
objects by reference instead of by value (read: serialization 
unecessary).  You will get much better performance if everything is 
in the same JVM.  Just beef up your box instead of spending $$$ on two.

Now, if you want to have Apache serve up some static content and 
front your app, that's fine (especially if for security reasons you 
want your app server behind a firewall and your web server in the 
dmz).  However, it will forward dynamic requests to your app server 
- where your web container and ejb tier coexist in the same process.

David

--

Pavel Kolesnikov wrote:

On Wed, 20 Nov 2002, Dain wrote:




There is no reason you have to separate the web container from the 
EJB container.




I don't understand this - what if I want to run my application
on two machines because of performance reasons? What should
I do instead of putting my webapp on one machine and my EJBs
on the second one?

Pavel





---
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] JBoss-3.2.0beta2 released

2002-11-20 Thread David Ward
You can start by clicking on the second link below (from Scott's 
original email).  After reading that page, click on the tracker link at 
sourceforge, where you can choose bugs (or other stuff).  On the bugs 
page, you can sort by 3.2 and closed...

David

--

Herve Tchepannou wrote:
Is there any place where I can get the feature/bug fixes list of the 
last release?
thanx


-Original Message-
From: Scott M Stark [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, November 20, 2002 3:11 AM
To: [EMAIL PROTECTED];
[EMAIL PROTECTED]
Subject: [JBoss-user] JBoss-3.2.0beta2 released


The JBoss-3.0.2beta2 release has been made available at sourceforge. The
binaries and source may be obtained from here:
http://sourceforge.net/project/showfiles.php?group_id=22866

The release notes are available here:
http://sourceforge.net/project/shownotes.php?release_id=13




---
This sf.net email is sponsored by: To learn the basics of securing 
your web site with SSL, click here to get a FREE TRIAL of a Thawte 
Server Certificate: http://www.gothawte.com/rd524.html
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] connections autocomitting?

2002-11-06 Thread David Ward
Hello, all - seeing some weird behavior since we upgraded from JBoss 
2.4.7 to 3.0.3.  I have attached our old jboss.jcml and our new 
oracle-servic.xml to this email, and have included full environment 
listings at the bottom of this email.

Our application has a servlet in the web tier that calls a SLSB that 
delegates to a chain of other processor classes that do database work 
using a Connection gotten from a DataSource.  Each processor in the 
chain shares the same Connection as it gets passed from processor to 
processor.  The servlet is the one that wraps all work in a 
UserTransaction gotten from JNDI.  The SLSB is marked as tx Required. 
If any of the processors throw any kind of Throwable, it bubbles back up 
to the servlet who makes sure the UserTransaction gets rolled back, 
otherwise it (the servlet) commits it.

Now, in our old environment, if processor A (in the chain) put data in 
the database, but the next processor B throws an exception, everthing 
(including that data put in by A) got rolled back.  However, in our new 
environment, it looks like the data put in by processor A is getting 
committed, even if B throws an Exception and the Servlet rolls back the 
UserTransaction.  The only way I can see this happening is if the 
Connection is auto-committing...

Does anyone think this is a change of defaults Oracle made between their 
old and new JDBC drivers?  How can I configure oracle-service.xml such 
that Connections are handed out from the DataSource as auto-commit false 
(I'd rather not do it programatically)?  Is there any other reason this 
could be happening?

One last thought I had is that in our old config, we specified the class 
as an XADataSource, but in the new version, just DataSource (we did not 
use the example oracle-xa-service.xml example).  I did this because I 
thought the XADataSources were only necessary when a transaction needs 
to span multiple JVMs or systems.  Is this not true?

Thanks muchly for all your help/input,
David

Old Environment:

JBoss-2.4.3(or 2.4.7)_Tomcat-3.2.3
Sun JDK 1.3.1_02
Solaris 7 or Windows 2000 or Red Hat 7.1
Oracle 8i Release 8.1.5.0.0
Oracle JDBC Driver 8.1.7.1.0 (classes12.zip)

New Environment:

jboss-3.0.3_tomcat-4.1.12
Sun JDK 1.4.1_01
Solaris 9 or Windows 2000 or Red Hat 7.1
Oracle 9i Release 9.2.0.1.0
Oracle JDBC Driver 9.2.0.1.0 (ojdbc14.jar)
?xml version=1.0 encoding=UTF-8?
!-- This is where you can add and configure your MBeans
  ATTENTION: The order of the listing here is the same order as
the MBeans are loaded. Therefore if a MBean depends on another
MBean to be loaded and started it has to be listed after all
the MBeans it depends on.
--

server
  !--  --
  !-- Classloading --
  !--  --
  mbean code=org.jboss.web.WebService name=DefaultDomain:service=Webserver
attribute name=Port8083/attribute
!-- Should resources and non-EJB classes be downloadable --
attribute name=DownloadServerClassestrue/attribute
  /mbean

  !--  --
  !-- JNDI --
  !--  --
  mbean code=org.jboss.naming.NamingService name=DefaultDomain:service=Naming
!--
attribute name=Port1099/attribute
--
attribute name=Port1098/attribute
  /mbean
  mbean code=org.jboss.naming.JNDIView name=DefaultDomain:service=JNDIView /


  !--  --
  !-- Transactions --
  !--  --
  mbean code=org.jboss.tm.TransactionManagerService 
name=DefaultDomain:service=TransactionManager
attribute name=TransactionTimeout300/attribute

!-- Use this attribute if you need to use a specific Xid
 implementation
--
attribute name=XidClassNameoracle.jdbc.xa.OracleXid/attribute
  /mbean

  !-- Uncomment to use Tyrex (tyrex.exolab.org) transaction manager plugin
   instead of the org.jboss.tm.TransactionManagerService and comment out
   the TransactionManagerService above  
  mbean code=org.jboss.tm.plugins.tyrex.TransactionManagerService 
name=DefaultDomain:service=TransactionManager
attribute name=ConfigFileName../conf/default/domain.xml/attribute
  /mbean
  --

  mbean code=org.jboss.tm.usertx.server.ClientUserTransactionService 
name=DefaultDomain:service=ClientUserTransaction
  /mbean


  !--  --
  !-- Security --
  !-- 

Re: [JBoss-user] Haydi Oyunu Kullan !

2002-10-31 Thread David Ward
Okay, there's been 2 of these now.  There's bound to be more.  Can we 
block this guy from jboss-user?

Thanks,
David

--

www.basbakan.org wrote:


* HAYDÝ OYUNU KULLAN ! http://www.basbakan.org*

 

www.basbakan.org http://www.basbakan.org

 

remove : [EMAIL PROTECTED] mailto:remove;kaynak.net

 

--- This sf.net 
email is sponsored by: Influence the future of Java(TM) technology. Join 
the Java Community Process(SM) (JCP(SM)) program now. 
http://ads.sourceforge.net/cgi-bin/redirect.pl?sunm0004en 
___ JBoss-user mailing list 
[EMAIL PROTECTED] 
https://lists.sourceforge.net/lists/listinfo/jboss-user





---
This sf.net email is sponsored by: Influence the future
of Java(TM) technology. Join the Java Community
Process(SM) (JCP(SM)) program now.
http://ads.sourceforge.net/cgi-bin/redirect.pl?sunm0004en
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user



Re: [JBoss-user] does jboss come with an email server?

2002-10-30 Thread David Ward
Derek Lin wrote:

does jboss come with an email server?  My guess is not, but would like 
to see if anyone can confirm.

Thanks,

Derek


Derek,

JBoss 2.4 and 3.0 come with easy ways to connect with a mail server:

2.4: $JBOSS_HOME/conf/default/mail.properties
3.0: $JBOSS_HOME/server/default/deploy/mail-service.xml

You can then look up in JNDI (java:Mail, for example) and use the 
JavaMail API.

As far as bundling an actual java mail server, I'm not sure - but I tend 
to doubt it.  It probably wouldn't be too hard to write an MBean (if one 
doesn't already exist) around James - http://jakarta.apache.org/james/ - 
 and hot-deploy it in JBoss, but I've never used it so I don't know.

If you are deploying your app at at even a small-sized company, they 
probably already have a mail server running you can connect to...

Hope this helps,
David



---
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] JBoss on Solaris?

2002-10-26 Thread David Ward
This could be it, or it could be that there is a process already bound
to the port, thus the conflict.  You could use netstat or something
similar to figure this out.

As an aside, I would suggest that you don't run JBoss as root.  Instead,
have a start-up script (that would work in /etc/init.d) that runs as
root but su -c 's to a jboss (or whoever) user.  That way, the process
can bind to lower ports, but the process (java/jboss) runs as the other
user.  Also, your jboss user should have minimal rights on the system
in case 1) someone compromises the system or 2) rogue code accidently
tries to delete directories (ie: system files) it shouldn't.

And oh yeah - make sure you nohup the su -c 'd process also.  That way
disconnecting your terminal won't signal your process to shut down.

Just my 2 (or maybe 3) cents -
David

--

 JD Brennan wrote:
 
 It's probably trying to listen on a low numbered port.  I think
 all ports below 1024 require root priv on Unix systems.  Try
 running it as root.
 
 JD
 
 -Original Message-
 From: Luttrell, Peter [mailto:PLuttrell;starkinvestments.com]
 Sent: Friday, October 25, 2002 2:42 PM
 To: '[EMAIL PROTECTED]'
 Subject: [JBoss-user] JBoss on Solaris?
 
 Has anyone had success running JBoss on Solaris?
 
 I just installed jboss3.0.3 and jdk1.4.1_01 on Solaris. Before
 changing anything but the JAVA_HOME i started and stopped JBoss.
 
 When it stops i get a Cannot Connection Socket Exception from the
 Hypersonic service. This happens repeatedly.
 
 Does anyone know why? And better yet how to fix it?
 
 thanks.
 .peter
 
 please ignore the silly banner below my company puts on all outgoing
 emails
 
 This transmission contains information solely for intended recipient
 and may be privileged, confidential and/or otherwise protect from
 disclosure. If you are not the intended recipient, please contact the
 sender and delete all copies of this transmission. This message and/or
 the materials contained herein are not an offer to sell, or a
 solicitation of an offer to buy, any securities or other instruments.
 The information has been obtained or derived from sources believed by
 us to be reliable, but we do not represent that it is accurate or
 complete. Any opinions or estimates contained in this information
 constitute our judgment as of this date and are subject to change
 without notice. Any information you share with us will be used in the
 operation of our business, and we do not request and do not want any
 material, nonpublic information. Absent an express prior written
 agreement, we are not agreeing to treat any information confidentially
 and will use any and all information and reserve the right to publish
 or disclose any information you share with us.


---
This SF.net email is sponsored by: ApacheCon, November 18-21 in
Las Vegas (supported by COMDEX), the only Apache event to be
fully supported by the ASF. http://www.apachecon.com
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user



[JBoss-user] jsp-javac logging in jboss-3.0.3_tomcat-4.1.12

2002-10-15 Thread David Ward

Can anyone help me change my logging settings so I don't get this jsp 
compilation logging in my jboss server.log?

2002-10-15 12:06:59,512 INFO  [STDOUT]
2002-10-15 12:06:59,516 INFO  [STDOUT]
2002-10-15 12:06:59,521 INFO  [STDOUT]
2002-10-15 12:06:59,525 INFO  [STDOUT]
2002-10-15 12:06:59,529 INFO  [STDOUT] [javac]
2002-10-15 12:06:59,533 INFO  [STDOUT] Compiling 1 source file

I am using:
Red Hat Linux 7.1.
Sun JDK 1.4.1
jboss-3.0.3_tomcat-4.1.12

I have attached my log4j.xml and tomcat41-service.xml files.

Obviously, I could change my ConsoleAppender's Threshold to ERROR (from 
INFO), but then it cuts out a lot of logging that I want (app's 
deploying, services starting, etc.).

Limiting the org.apache.jk category to ERROR helped me get rid of all 
the coyote/jk2/ajp13 chunk data, so I tried limiting the 
org.apache.jasper category too, but to no avail.  Maybe something in 
org.jboss.web.catalina?  But what?

Thanks for any and all help!

Sincerly,
David


?xml version=1.0 encoding=UTF-8?
!DOCTYPE log4j:configuration SYSTEM log4j.dtd

!-- = --
!--   --
!--  Log4j Configuration  --
!--   --
!-- = --

!-- $Id: log4j.xml,v 1.5.2.6 2002/09/27 22:29:24 patriot1burke Exp $ --

!--
   | For more configuration infromation and examples see the Jakarta Log4j
   | owebsite: http://jakarta.apache.org/log4j
 --

log4j:configuration xmlns:log4j=http://jakarta.apache.org/log4j/; debug=false

  !-- = --
  !-- Preserve messages in a local file --
  !-- = --

  !-- A time/date based rolling appender --
  appender name=FILE class=org.jboss.logging.appender.DailyRollingFileAppender
  	!--
param name=File value=${jboss.server.home.dir}/log/jboss-server.log/
param name=File value=/opt/webdocs/logs/jboss-server.log/
	--
param name=File value=${jboss.server.home.dir}/log/jboss-server.log/
param name=Append value=false/
param name=Threshold value=INFO/

!-- Rollover at midnight each day --
param name=DatePattern value='.'-MM-dd/

!-- Rollover at the top of each hour
param name=DatePattern value='.'-MM-dd-HH/
--

layout class=org.apache.log4j.PatternLayout
  !-- The default pattern: Date Priority [Category] Message\n --
  param name=ConversionPattern value=%d %-5p [%c] %m%n/

  !-- The full pattern: Date MS Priority [Category] (Thread:NDC) Message\n
  param name=ConversionPattern value=%d %-5r %-5p [%c] (%t:%x) %m%n/
   --
/layout	
  /appender

  !-- A size based file rolling appender
  appender name=FILE class=org.jboss.logging.appender.RollingFileAppender
param name=File value=${jboss.server.home.dir}/log/server.log/
param name=Append value=false/
param name=MaxFileSize value=500KB/
param name=MaxBackupIndex value=1/

layout class=org.apache.log4j.PatternLayout
  param name=ConversionPattern value=%d %-5p [%c] %m%n/
/layout	
  /appender
  --

  !-- == --
  !-- Append messages to the console --
  !-- == --

  appender name=CONSOLE class=org.apache.log4j.ConsoleAppender
param name=Threshold value=INFO/
param name=Target value=System.out/

layout class=org.apache.log4j.PatternLayout
  !-- The default pattern: Date Priority [Category] Message\n --
  param name=ConversionPattern value=%d{ABSOLUTE} %-5p [%c{1}] %m%n/
/layout
  /appender


  !-- == --
  !-- More Appender examples --
  !-- == --

  !-- Buffer events and log them asynchronously
  appender name=ASYNC class=org.apache.log4j.AsyncAppender
appender-ref ref=FILE/
appender-ref ref=CONSOLE/
appender-ref ref=SMTP/
  /appender
  --

  !-- EMail events to an administrator
  appender name=SMTP class=org.apache.log4j.net.SMTPAppender
param name=Threshold value=ERROR/
param name=To value=[EMAIL PROTECTED]/
param name=From value=[EMAIL PROTECTED]/
param name=Subject value=JBoss Sever Errors/
param name=SMTPHost value=localhost/
param name=BufferSize value=10/
layout class=org.apache.log4j.PatternLayout
  param name=ConversionPattern value=[%d{ABSOLUTE},%c{1}] %m%n/
/layout
  /appender
  --

  !-- Syslog events
  appender name=SYSLOG class=org.apache.log4j.net.SyslogAppender
param name=Facility value=LOCAL7/
param name=FacilityPrinting value=true/
param name=SyslogHost value=localhost/
  /appender
  --

  !-- Log events to JMS (requires a topic to be created)
  appender name=JMS class=org.apache.log4j.net.JMSAppender
param name=Threshold value=ERROR/
param name=TopicConnectionFactoryBindingName 

[JBoss-user] servletContext.getRealPath(String) always null w/JBoss3 + Tomcat4.1

2002-10-14 Thread David Ward

I am porting a JBoss 2.4.x + bundled Tomcat 3.2.3 / JDK 1.3.0_02 .ear 
app to JBoss 3.0.3 + bundled Tomcat 4.1.12 / JDK 1.4.1.

In the past, I had no problem calling servletContext.getRealPath(String) 
and it returning something as my previous bundle always unpacked the 
.war file that was in the .ear file.  However, with this newest bundle, 
getRealPath(String) *always* returns null.  I tried changing 
tomcat41-service.xml's Host element to contain an unpackWARs=true 
attribute, but that didn't help.  JBoss 3.0.3 + bundled Jetty doesn't 
seem to have this problem.

Can anyone help me figure out how to force tomcat to unpack the war that 
was in my ear?

Thanks,
David

-
David Ward
[EMAIL PROTECTED]
http://www.dotech.com



---
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] JBoss/Jetty: Realm Not Configured

2002-10-10 Thread David Ward

Scott,

This was it.  Once again, you've saved the day.

Much thanks,
David

--

Scott M Stark wrote:
 This looks to be a bug in Jetty and FORM based logins. It requires a
 realm-name element in the web.xml descriptor even though this is not
 a required element in the login-config, and is only meaningful for BASIC
 auth.
 
 
 Scott Stark
 Chief Technology Officer
 JBoss Group, LLC
 
 
 - Original Message - 
 From: David Ward [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Sent: Monday, October 07, 2002 6:01 AM
 Subject: Re: [JBoss-user] JBoss/Jetty: Realm Not Configured
 
 
 
Scott,

Thanks for your reply.  Actually, there are no spaces in the real file. 
  I think my email client decided to add them in from my copy/paste 
(tried to format it).  I know that sounds weird, but I've seen it happen 
before.

Any other ideas?

Thanks again,
David
 



---
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] CMR Problem: Chicken and Egg

2002-10-09 Thread David Ward

Currently in JBoss, you have to have your cmr foreign keys nullable 
since they can only be set in ejbPostCreate().  From what I understand, 
Dain Sundstrom (the JBossCMP guy) is very aware of this and is looking 
at supporting setting cmrs in ejbCreate() (so you can have NOT NULL 
foreign keys) in a not-to-distant future version.  Dain, please correct 
me if I'm wrong.

David

--

Peter Shillan wrote:
 Hi Folks,
 
 I've recently been implementing Brett McLaughlin's Building Java
 Enterprise Architecture examples on JBoss 3.0.3 and I'm having great
 (if frustrating!) fun doing it :-D. I have a problem regarding CMR
 fields though ...
 
 - CMR fields must be assigned in ejbPostCreate()
 - It makes sense to have a table's foreign key NOT NULL
 
 But is this possible? I mean, JBoss wants to run a SQL INSERT after
 ejbCreate() but it can't because of the foreign key constraints. I can
 take the NOT NULL off, but this doesn't seem like a satisfactory
 solution.
 
 Is there a way of doing this?
 
 Many thanks
 
 --peter



---
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] JBoss/Jetty: Realm Not Configured

2002-10-07 Thread David Ward

Scott,

Thanks for your reply.  Actually, there are no spaces in the real file. 
  I think my email client decided to add them in from my copy/paste 
(tried to format it).  I know that sounds weird, but I've seen it happen 
before.

Any other ideas?

Thanks again,
David

--

Scott M Stark wrote:
application-policy name = docs
 
 
 This has a space between the leading quote mark and docs, as do
 several other attributes in this config. Check this config against to
 see that is not causing the problem.
 
 
 
 Scott Stark
 Chief Technology Officer
 JBoss Group, LLC
 
 
 - Original Message - 
 From: David Ward [EMAIL PROTECTED]
 To: JBoss-user [EMAIL PROTECTED]
 Sent: Friday, October 04, 2002 1:08 PM
 Subject: [JBoss-user] JBoss/Jetty: Realm Not Configured
 
 
 
I have an app that works great with jboss-2.4.3_tomcat-3.2.3, but I 
can't get it to work with jboss-3.0.3 (w/ integrated Jetty).  It has a 
secure area that when I access it via a web browser, I get:

HTTP ERROR: 500 Realm Not Configured
RequestURI=/docs/sweb/david_cust/david_site/PrintItSimple

Again, this worked in jboss-2.4.3_tomcat-3.2.3, though of course the 
config files are slightly different now.

login-config.xml:

application-policy name = docs
   authentication
 login-module code = org.jboss.security.auth.spi.ProxyLoginModule 
flag = required /
 module-option 
name=moduleNamecorp.docs.security.DOCSLoginModule/module-option
 module-option name = dsJndiNamejava:/DocsDS/module-option
   /authentication
/application-policy

DOCSLoginModule.class is in a jar file in server/default/lib/.

jboss-web.xml:

security-domainjava:/jaas/docs/security-domain

web.xml:

security-constraint
   web-resource-collection
 web-resource-nameSecure WebDOCS/web-resource-name
 url-pattern/sweb/*/url-pattern
   /web-resource-collection
   auth-constraint
 role-nameDEFAULT/role-name
   /auth-constraint
/security-constraint

Non secure areas of the app work fine.

Thanks for the help,
David
 
 



---
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] [Fwd: Announcing Axis 1.0!]

2002-10-07 Thread David Ward

FYI for Dr. Jung and others interested in JBoss.net stuff...

---BeginMessage---

I'm pleased to announce the Apache SOAP engine known as Axis just had 
it's first release.  Performance, interoperability, and JAX RPC 
compliance have been significant focuses of this effort.  You can 
download it at http://xml.apache.org/axis/dist/1_0/.

- Sam Ruby


---End Message---


[JBoss-user] JBoss/Jetty: Realm Not Configured

2002-10-04 Thread David Ward

I have an app that works great with jboss-2.4.3_tomcat-3.2.3, but I 
can't get it to work with jboss-3.0.3 (w/ integrated Jetty).  It has a 
secure area that when I access it via a web browser, I get:

HTTP ERROR: 500 Realm Not Configured
RequestURI=/docs/sweb/david_cust/david_site/PrintItSimple

Again, this worked in jboss-2.4.3_tomcat-3.2.3, though of course the 
config files are slightly different now.

login-config.xml:

application-policy name = docs
   authentication
 login-module code = org.jboss.security.auth.spi.ProxyLoginModule 
flag = required /
 module-option 
name=moduleNamecorp.docs.security.DOCSLoginModule/module-option
 module-option name = dsJndiNamejava:/DocsDS/module-option
   /authentication
/application-policy

DOCSLoginModule.class is in a jar file in server/default/lib/.

jboss-web.xml:

security-domainjava:/jaas/docs/security-domain

web.xml:

security-constraint
   web-resource-collection
 web-resource-nameSecure WebDOCS/web-resource-name
 url-pattern/sweb/*/url-pattern
   /web-resource-collection
   auth-constraint
 role-nameDEFAULT/role-name
   /auth-constraint
/security-constraint

Non secure areas of the app work fine.

Thanks for the help,
David




---
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] JBOSS on solaris

2002-10-02 Thread David Ward

None to worry about.  I do notice that large .*ar extraction takes a bit 
longer when deploying than it does on, say, a Linux box - or even on a 
non-fragmented Windoze box.

David

--

Anthony Geoghegan wrote:
 Any known issues executing JBOSS on a Solaris box?
 Best Regards,
 Anthony Geoghegan.
 J2EE Developer
 CPS Ireland Ltd.



---
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] Realm Not Configured

2002-10-01 Thread David Ward

I have an app that works fine in jboss-2.4.7_tomcat-3.2.3, and am trying 
  to use it in jboss 3.0.3 (w/integrated jetty).  I can surf the app 
until I try to reach a protected area (config'd in web.xml), at which 
point I get this error in my browser (instead of the intended login.jsp 
page):

HTTP ERROR: 500 Realm Not Configured
RequestURI=/docs/sweb/david_cust/david_site/PrintItLogin

Any pointers?  I'm guessing it's a configuration problem...

Thanks,
David



---
This sf.net email is sponsored by: DEDICATED SERVERS only $89!
Linux or FreeBSD, FREE setup, FAST network. Get your own server 
today at http://www.ServePath.com/indexfm.htm
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user



[JBoss-user] jboss + tomcat 4.1.12

2002-09-30 Thread David Ward

Just wondering why each new release of JBoss gets bundled with old 
branches of Tomcat (or Catalina).  For instance, tomcat 3.2.x and 
catalina 4.0.x, instead of 3.3.x and 4.1.x.  Classloading issues?  My 
guess is just strapped for time to regression test the bundles 
(understandable).  I'm sure JBoss 3.2 (and maybe even 4) is more at the 
forefront of developers' minds.

However, I'm kind of stuck in that I want to drop mod_jk (unacceptable 
performance) for the Coyote connector, but that doesn't come included 
until Catalina 4.1.  I could get it into 3.3 or 4.0, but I'd have to 
mess around with the packaging and configs.  Is there any way someone 
can release a JBoss-2.4.9_Tomcat-4.1.12.zip?  (I can't use JBoss 3.x yet 
- long story.)

Whoever can help me (Scott?), I would greatly appreciate it.  Thank you 
for your time and effort,
David



---
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] jboss reference in latest javasoft highlight

2002-09-27 Thread David Ward

Not sure if others saw this or are interested in it...

Open Source Advocate Danese Cooper on Open Source
http://java.sun.com/features/2002/09/opn_src_cooper.html

snip
JBoss Compatibility

Q: In a recent survey, a lot of developers want to know when Sun will 
allow JBoss to be branded as compatible with Java technology.

A: Yeah, that's a really tough situation. JBoss is an open source 
project that wants to say they are compatible with J2EE, but they are 
also a for-profit project, so they can't apply for zero-cost access to 
the TCKs under the new rules. Recently JBoss launched its own 
certification program, which is interesting. Open source wisdom says 
that it's really hard to maintain a fork. It will be interesting to see 
how they do. I'd really like to see Sun and JBoss work together to find 
a solution to the problem. They got great coverage at the 2002 JavaOneSM 
conference -- several awards. It's a very popular effort.
/snip



---
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] mod_jk error

2002-09-26 Thread David Ward

I know this is more of a tomcat/mod_jk problem than jboss', but thought 
I'd give it a shot in this list, as I haven't gotten a response from the 
Tomcat forum at JGuru:

In running an automated load test against our app, we get the following 
errors in or jk.log file:

[jk_connect.c (143)]: jk_open_socket, connect() failed errno = 146
[jk_ajp12_worker.c (152)]: In jk_endpoint_t::service, Error sd = -1
[jk_connect.c (143)]: jk_open_socket, connect() failed errno = 146
[jk_ajp12_worker.c (152)]: In jk_endpoint_t::service, Error sd = -1
[jk_connect.c (143)]: jk_open_socket, connect() failed errno = 146
[jk_ajp12_worker.c (152)]: In jk_endpoint_t::service, Error sd = -1
[jk_connect.c (143)]: jk_open_socket, connect() failed errno = 146
[jk_ajp12_worker.c (152)]: In jk_endpoint_t::service, Error sd = -1
[jk_connect.c (143)]: jk_open_socket, connect() failed errno = 146
[jk_ajp12_worker.c (152)]: In jk_endpoint_t::service, Error sd = -1
[jk_connect.c (143)]: jk_open_socket, connect() failed errno = 146

Anyone know what these errors are? I can't find anything conclusive 
about them searching various lists/forums.

We are running Apache 1.3.12 on a Solaris 7 Ultra 10 using mod_jk/ajp12 
to talk to JBoss-2.4.7_Tomcat-3.2.3 on a Solaris 7 E250, JDK 1.3.1_02.

The symptoms we see are that the number of httpd processes maxes out on 
the web server box, though the CPU is almost completely idle. The weird 
thing is that the app server is mostly idle too, and doing a thread dump 
on the java (jboss+tomcat in same vm) process shows that there are lots 
of threads waiting for work to do. Once we stop the load test, things 
are still messed up until I restart apache, then we can access the app 
again. Note that I didn't have to touch the app server at all. Accessing 
URLs that aren't configured to go through mod_jk have no problem, until 
the max http children process gets reached, of course...

Thanks all,
David



---
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: AW: [JBoss-user] jboss.net changes and xdoclet

2002-09-25 Thread David Ward

Have you shared this with the xdoclet guys?  The xdoclet-user list has 
had quite a few messages (don't remember if you were in on them) about 
wanting to support this is the upcoming xdoclet 1.2.

David

--

Jason Essington wrote:
 The changes I made are to the jboss version of xdoclet (actually to the 
 stuff in the xdoclet.modules.jboss.ws package only) as what is 
 distributed with jboss doesn't currently work with the head version of 
 xdoclet.
 
 the changes I have made are mostly to the template, but here is a list 
 of what I have done:
 I moved the resources directory into the ws directory
 I edited JBossNetSubTask.java so it wouldn't fail to compile
 
 Then I made quite a number of changes to the template
 
 I have removed the ejb-ref tags
 
 @jboss-net.web-service:
 added the scope attribute
 
 I have also added to the template the ability to include the 
 JBossAuthenticationHandler and/or JBossAuthorizationHandler in the 
 requestFlow
 
  @jboss-net.authentication
   domain=myDomain
 
  @jboss-net.authorization
   domain=myDomain
   allowed-roles=foo,bar,baz - optional defaults to * in the 
 JBossAuthorizationHandler
   denied-roles=admin  - optional
 
 Since I sometimes want to pass entity bean data back to the client from 
 a session bean, and I prefer to use dataobjects I added to the 
 xml-schema tag a data-object attribute that causes the dataobject to be 
 used for the typeMapping rather than the ejb.
 
  @jboss-net.xml-schema
   urn=ReportList
   data-object=true
 
 
 There are probably better ways to implement the changes I made in the 
 template, but I am no xdoclet guru so I stuck with what I was first able 
 to get working.
 
 Also I haven't added any of the tag changes to the xml documentation 
 (mostly because I am not sure I understand how that works, and haven't 
 taken the time to figure it out yet)
 
 Jason Essington
 Green River Computing Services
 307-367-2276
 [EMAIL PROTECTED]
 
 
 
 On Wednesday, September 25, 2002, at 01:38  AM, Jung , Dr. Christoph wrote:
 
 Jason,

 We decided to get rid of the redundante ejb-ref/ tags inside the
 web-service.xml - I am not sure
 whether this is already reflected in the xdoclet template, that is why I
 marked this feature as deprecated.

 It has nothing to do with the authentication and authorization handlers
 which allow you to
 authenticate (sic!) and authorize (sicut!) an incoming web service 
 call per
 web-service transport
 chain (and not globally through the servlet configuration) against the
 specified security domain.

 I would be very interested in your adaptions, BTW. Is this against the
 jboss-version of xdoclet?

 CGJ

 -Ursprüngliche Nachricht-
 Von: Jason Essington [mailto:[EMAIL PROTECTED]]
 Gesendet: Dienstag, 24. September 2002 21:42
 An: [EMAIL PROTECTED]
 Betreff: [JBoss-user] jboss.net changes and xdoclet


 I have hacked the jboss.net module (supplied in the cvs version of
 jboss) to work with the latest version of xdoclet.

 It has been working fine, but since the recent changes to jboss.net I
 am getting this warning upon deployment:

 13:28:31,238 WARN  [AxisService] Web Service Deployment
 org.jboss.deployment.DeploymentInfo@90610f9c {
 url=file:/Users/jason/jboss-3.2.0beta/server/default/tmp/deploy/server/
 default/deploy/hedgehog-app.ear/72.hedgehog-app.ear-contents/hedgehog-
 soap.wsr }
deployer: org.jboss.net.axis.server.AxisService@1001ca
status: Starting
state: START_DEPLOYER
watch:
 jar:file:/Users/jason/jboss-3.2.0beta/server/default/tmp/deploy/server/
 default/deploy/hedgehog-app.ear/72.hedgehog-app.ear-contents/hedgehog-
 soap.wsr!/META-INF/web-service.xml
lastDeployed: 1032895699652
lastModified: 1032895699000
mbeans:
   makes use of the deprecated ejb-ref feature. Please adjust any
 ejb-providing service tag inside your web-service.xml pointing to
 ejb/Login to use the absolute Login instead.

 It doesn't seem to effect how jboss.net works, but I would like to
 adjust the xdoclet module's xdt file to work properly without raising
 this warning.

 What is this warning trying to tell me (I'm kinda dense sometimes)? 
 Should I
 remove the ejb-ref tags and just use the ejb/[beanName] jndi
 name?

 does anyone have a sample web-service.xml file that conforms to the
 newer requirements?

 also I have not quite nailed down when, why and how to use
 JBossAuthenticationHandler and JBossAuthorizationHandler.

 is it as simple as adding:
handler type=java:org.jboss.net.axis.server.
 JBossAuthenticationHandler/
 and / or
handler type=java:org.jboss.net.axis.server.
 JBossAuthorizationHandler/
 in your requestFlow? or is there more to it than that?

 Under what circumstances would I want to use these handlers?

 Thanks

 -jason




---
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
___

Re: [JBoss-user] primary key features in Branch_3_2

2002-09-24 Thread David Ward

And what about Hypersonic (for testing)?

--

Emerson Cargnin - SICREDI Serviços wrote:
 those features are just for mysql?? may I use Oracle instead?
 
 Alex Loubyansky wrote:
 
 Support for unknown primary keys, custom entity create commands and
 auto-increment are ported from HEAD to Branch_3_2.

 For more details on how to use it refer to
 http://www.jboss.org/forums/thread.jsp?forum=46thread=21623

 One remark: MySQLCreateEntityCommand is renamed to
 JDBCMySQLCreateCommand.

 alex





---
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] Jboss3.0 on Linux

2002-09-19 Thread David Ward

Arijit Ghosh wrote:
 Hi,
 
 I am trying to install jboss3.0 tomcat4.0.3 on Linux. I have installed
 JDK1.3 and have java_home/bin folder in my path.
 
 I have also set JBOSS_HOME as required.
 
 Then from JBOSS_HOME/bin, I try to execute java -jar run.jar
 
 Server starts loading various services.
 It prints --
 
 ..
 [NamingService]Starting
 [NamingService]Starting jnp server
 
 And then it hangs. There is no activity and I have to restart my machine
 everytime.
 
 Can anyone help ?
 
 Regards,
   Arijit
 

--

Don't use the java command.  Use the run.sh script that's in the bin 
directory, and it will make sure your environment is correct before *it* 
kicks off java.

David




---
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] How to run servlet?

2002-09-19 Thread David Ward

Madhu wrote:
 Thanks for u r response
 every thing what u told is absoluetly correct, but some times we have to 
 assume certain things..i am creating .war directory means i have certain 
 level of knowledege in JBOSS.
 I am using jboss3.0 with tomact, and i am deploying the war directory in 
 the deploy directory only and class files are in WEB-INF.it's absoluetly 
 same what u told.
 other than this i have to do anything for this?
 i think i am missing something,if any one have idea pl share with us.
 thanks ..
 
 ThanksRegards
 ~
 A.Madhu Sudhan 

--

Classes go in WEB-INF/classes , not WEB-INF/.

Let me reiterate, we cannot help you unless you give us the information 
we need to help you:

- os/jdk/jboss/tomcat versions
- war contents listing
- web.xml servlet and servlet-mapping snippets
- url you are trying to hit

If you don't give us this stuff we cannot help you.  It also doesn't 
matter how much you think you know about JBoss.  Hey, stupid mistakes 
happen all the time, even by the greatest developers.  Give us the stuff 
I listed and you will get some more eyes on it.

That's all I can say -
David



---
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] jboss 3.2.0 beta

2002-09-17 Thread David Ward

Dain Sundstrom wrote:
 [EMAIL PROTECTED] wrote:
   On Tue, Sep 17, 2002 at 04:35:17PM +0200, Karri Niemelä wrote:
  
   To me its bit unclear, so what are the new features added to that
   release?
  
   Without any information of what new features/bugs fixed in this
   release (against 3.0.2), I don't think many will try this.
 
 Trust me, you will be surprised at how many will try it.
 
 -dain
 
 

I downloaded it as soon as I saw it on SourceForge.  And I liiike 
it.

;)
David



---
This SF.NET email is sponsored by: AMD - Your access to the experts
on Hammer Technology! Open Source  Linux Developers, register now
for the AMD Developer Symposium. Code: EX8664
http://www.developwithamd.com/developerlab
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user



  1   2   3   >