Re: [JBoss-user] principal=null problem

2001-05-01 Thread Jeffrey Wescott

Are you speaking of EmbeddedTomcat?  If so, in the contrib/tomcat 
module, there is a RequestInterceptor called 
org.jboss.tomcat.security.JbossRealm that will alleviate this problem.

It's difficult to explain in words, but if you study the use-case 
diagrams on the JBoss website, it's easier to understand.  The basic 
idea (I think) is that JAAS expects it's client to be in a separate 
VM.  The code in the server login modules in JBoss that are responsible 
for setting the principal that normally gets called during a login 
never gets called when the client is in the same VM.  Study the diagrams 
-- I found them infinitely understandable.

++jeff

Khaled Aboudan wrote:

 Hello,
 
  
 
 I wrote LoginModules for JAAS Authentication. Calling secured EJBs 
 from a local client works fine. However, calling the same EJBs from a 
 Tomcat causes a security exception stating that the principal is null.
 
  
 
 I have seen this discussed in many different threads. But I still have 
 not seen any final verdict about the subject. Some people suggested to 
 use 'Tomcat Style login Interceptor' ...is this the way to go? Could 
 someone explain why this happens?
 
  
 
 Thanks in advance for your help.
 
  
 
 Regards,
 
 Khaled
 



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



Re: [JBoss-user] Are readonly beans/transactions possible?

2001-04-26 Thread Jeffrey Wescott

We noticed similar things and decided to change the transaction setting 
our read-only EJB methods from Requires to Supports.  It eliminated 
a lot of the contention.  I hope this helps.

++Jeff

P.S. -- this is done in the deployment descriptor for your bean(s) 
(ejb-jar.xml in JBoss).

Sven Van Caekenberghe wrote:

 Hi all you jboss/ejb gurus,
 
 While stress-testing an application using jboss we encountered some 
 problems. We're not sure whether we did something wrong in the ejb 
 development or in the deployment or what. We think we need at least 
 some help in how to do 'readonly beans/transactions'.
 
 Problem description:
 
 System: jboss 2.2.x, interbase 6.x, jdk 1.3, linux mandrake 7.2
 Server code: session bean facades working with multiple entity beans 
 (some with subobjects)
 Deployment: container managed persistence and transactions, requied 
 transactions, default commit option A
 Client code: swing gui clients, junit tests clients
 
 Problem: Running more than one client we get locking-waiting, lock 
 contention, but sometimes also failed transactions. The thing is that 
 you would expect these problems when trying to modify the same object, 
 but it also seems to happen when reading data from the same object 
 (which of course happens a lot). It seems that even a call like 
 PersonData[] getAllPersons() on a session bean (returning serializable 
 copies of entity beans) needs full exclusive read/write locks on all 
 objects involved in the transaction, even if we are just reading data. 
 As we see it, such behavior will never scale.
 
 Question: How do you do readonly beans or access beans in readonly 
 transactions, either in ejb or in jboss? This must be a common 
 situation. I hope the answer is not to avoid using entity beans for 
 readonly data access and to access the database/datasource directly 
 (we like cmp too much to let it go).
 
 All help is greatly appreciated!
 
 Sven
 
 ---
 Sven Van Caekenberghe - mailto:[EMAIL PROTECTED]
 Beta Nine - software engineering - http://www.beta9.be
 
 ___
 JBoss-user mailing list
 [EMAIL PROTECTED]
 http://lists.sourceforge.net/lists/listinfo/jboss-user
 
 
 



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



Re: [JBoss-user] Does JProbe work with JBoss?

2001-04-18 Thread Jeffrey Wescott

Saw this same problem on Linux w/ Blackdown 1.3.  Something about a 
"profile" field needs to be added.  :-(

Bill Burke wrote:

 Has anybody ever gotten JProbe to work with JBoss?  Optimizeit seems 
 to work, but I really hate the UI.  JBoss has problems loading CMP 
 JAWS entity beans with JProbe.  BTW, I'm on Win2K with jdk1.3
 
  
 
 Thanks in advance,
 
  
 
 Bill
 



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



Re: [JBoss-user] What version works with both PetStore and JBuilder?

2001-04-17 Thread Jeffrey Wescott

There is a tag in CVS that you can use to pull out the source code that 
matches the binary distributions on the site: JBoss_2_2_0_Final.

I hope this helps.

++Jeff


John Menke wrote:

 I am using JBoss2.3 beta (the current CVS snapshot).  I have built embedded
 tomcat and everything appears to work fine as I have installed the
 Enterprise Javabeans Examples and they work.
 
 My problems are
 
 1.  Trying to debug my code in JBuilder4
 2.  Trying to run the sample application
 
 
 I have followed the Howto's for both JBuilder4 and PetStore, but JBuilder
 gives me errors when I try to run a project
 
 JBuilder Errors are Error at org.jboss.util.ClassPathExtension.postRegister
 (NullPointerException).  I have followed the instructions in the Howto... is
 this something to do with running the 2.3 beta.
 
 Petshop Errors are not being able to build the petshop.ear file.
 
 
 Should I be using an earlier version of JBoss?  If so, where can I get it?
 The only source distributions you can get are the CVS snapshots and they are
 the current versions...
 
 
 
 
 
 ___
 JBoss-user mailing list
 [EMAIL PROTECTED]
 http://lists.sourceforge.net/lists/listinfo/jboss-user
 
 
 



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