[JBoss-user] Ability to use request.getUserPrincipal() after login with JAAS

2001-10-15 Thread Kar YEOW
I have a JSP which basically login using JAAS (the simple login module). After login I can obtain the "Subject" by calling loginContext.getSubject() but I could not get the "Subject" from the request.getUserPrincipal(). How do I do it in such a way that I can programmatically log someone in

[JBoss-user] Memory leak with EBHome.create?

2001-10-15 Thread Jose Ramon Diaz
Hi all, I have a memory problem when I try to access my EJB (stateless) in JBoss. I try to access from a servlet so I get the EJBHome and I cache it. Every time the servlet is accessed I do the .create() method to access the EJB in the EJBHome interface. When this servlet (executing in

Re: [JBoss-user] asynchronous invocation of bean with securitycontext

2001-10-15 Thread Dmitri Colebatch
Looking further at this it seems that the way to do this would be to have the Principal and credentials stored in the MBean and then have the MBean set them on the SecurityAssociation on the thread that is going to call the ejb. Am I right in thinking that this now has nothing todo with using

[JBoss-user] jboss-user@lists.sourceforge.net

2001-10-15 Thread HNguyen
___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user

Re: [JBoss-user] asynchronous invocation of bean with security context

2001-10-15 Thread Scott M Stark
The problem with this approach is the the SecurityAssociation is not a supported access point for public consumption. The supported mechanism for establishing user identity is a JAAS login. For the case of an mbean this needs to invoke the ClientLoginModule. You can achieve the unsetting of the

[JBoss-user] JBoss hangs up in line [DefaultDS] XA Connection pool DefaultDS bound to java:/DefaultDS

2001-10-15 Thread storck
Hi, could someone tell me what could be the problem that JBoss hangs up in line [DefaultDS] XA Connection pool DefaultDS bound to java:/DefaultDS? I run JBoss in Visual Age 3.5. It all have worked REALY fine and I dont know that I have changed anything within VA. DefaultDS uses MySql. PLEASE

[JBoss-user] Access from JDK 1.2.2 to Jboss in JDK 1.3.0

2001-10-15 Thread Jose Ramon Diaz
Hi all, Can I access to an EJB running on Jboss with JDK1.3 from a client which I need to be executing over JDK 1.2.2? Now, I get the following message: javax.naming.CommunicationException [Root exception is java.io.StreamCorruptedException: Type code out of range, is 125]

Re: [JBoss-user] newbie session bean question

2001-10-15 Thread Hermann RANGAMANA
What you're talking about is singleton pattern ... i've read in a discussion at theserverside.com that it's impossible to achieve singleton pattern with ejb, and didn't do further on my research --Hermann - Original Message - From: Frank Morton [EMAIL PROTECTED] To: [EMAIL

Re: [JBoss-user] asynchronous invocation of bean with securitycontext

2001-10-15 Thread Dmitri Colebatch
On Mon, 15 Oct 2001, Scott M Stark wrote: The problem with this approach is the the SecurityAssociation is not a supported access point for public consumption. The supported mechanism for establishing user identity is a JAAS login. For the case of an mbean this needs to invoke the

[JBoss-user] Is closing of JDBC connection after the JTS transaction has been committed valid?

2001-10-15 Thread Jiri Luzny
Hi, we use JBoss 2.4.1 and Toplink O/R tool as our persistence engine. With version 3.5.3 of Toplink it works quite well. Now we are trying to upgrade to the latest version of Toplink (v3.6) and we experience problem with JTS integration. During TxCapsule.doAfterCompletion() we get

[JBoss-user] JBOSS Future, productive sites

2001-10-15 Thread Mariano Kamp
Hi there, we are currently evaluating the options for building a multi-chanel product (mobile, web, etc.). During the process we found JBOSS and toyed around with it a bit. The key people in our company are used to WebSphere/DB2/Oracle, but we are quiet impressed by what we've seen so far from

Re: [JBoss-user] newbie session bean question

2001-10-15 Thread Frank Morton
Hermann RANGAMANA wrote: What you're talking about is singleton pattern ... i've read in a discussion at theserverside.com that it's impossible to achieve singleton pattern with ejb, and didn't do further on my research What I'm trying to accomplish is a way to assign a unique

Re: [JBoss-user] newbie session bean question

2001-10-15 Thread danch
Generally to solve this problem, I've used either a stateless session bean that gets the integer value from the database (using either Oracle/PostgreSQL sequence objects, or a table), or a CMP entity bean, where there's one instance per logical key. Note that if you have only one logical key, the

Re: [JBoss-user] JBOSS Future, productive sites

2001-10-15 Thread Dmitri Colebatch
On Mon, 15 Oct 2001, Mariano Kamp wrote: Last no least. Are there any special things to note about tools? Integration with JBOSS etc.? In terms of tools for developing with JBoss? XDoclet (http://sourceforge.net/projects/xdoclet) provides excellent support for JBoss - it generates

Re: [JBoss-user] JBOSS Future, productive sites

2001-10-15 Thread Peter Fagerlund
In terms of tools for developing with JBoss? XDoclet (http://sourceforge.net/projects/xdoclet) provides excellent support for JBoss - it generates interfaces and deployment descriptors based on comments in your code. also check out the Together Deployer

[JBoss-user] cmp primary key

2001-10-15 Thread Frank Morton
I'm a newbie for sure, but I've been surfing around for a solution to assigning unique primary key values with CMPs. I have seen lots of vague descriptions of how to do it and some specific ones that are all followed by other comments from people why that solution doesn't work. Does anyone have

[JBoss-user] JBoss-2.4.3 and NameAlreadyBoundException problem

2001-10-15 Thread Keith Kee
Hi: I am trying to deploy 2 simple EJBs with these xmls, and I am get javax.naming.NameAlreadyBoundException exception on JBoss 2.4.1 and JBoss 2.4.3. I looked at the Changelog, and one of the changes was that subcontexts in the jndi tree will not be deleted and recreated. What do I have to

RE: [JBoss-user] cmp primary key

2001-10-15 Thread Herve Tchepannou
Title: RE: [JBoss-user] cmp primary key In CMP, in the ejbCreate(), you must generate the key and assign it to the primary key field of your bean. The strategy of generating the PK depends on your context. 1. If the PK is a string You can use a UUID generator to generate a key of 32

Re: [JBoss-user] JBoss-2.4.3 and NameAlreadyBoundException problem

2001-10-15 Thread Scott M Stark
There should be no changes required and I am not able to reproduce this exception. Post a bug report with the server.log output(not the console output) of the exception and the ear that causes this problem on sourceforge. - Original Message - From: Keith Kee [EMAIL PROTECTED] To: [EMAIL

[JBoss-user] Example jsp and servlet not working JBoss-2.4.3_Tomcat-4.0 (win 2000)

2001-10-15 Thread Patrick Munis
Title: Example jsp and servlet not working JBoss-2.4.3_Tomcat-4.0 (win 2000) Just installed JBoss-2.4.3_Tomcat-4.0 and cannot get example jsp or servlets to work on win2000 prof. I was able to get jsp and servlet to work with Jboss-2.4.1-Tomcat3.2. I have set my system classpath to point to

[JBoss-user] any SNMP integration plan in JBoss 3.0?

2001-10-15 Thread Sheng Zou
Title: Example jsp and servlet not working JBoss-2.4.3_Tomcat-4.0 (win 2000) Does anyone have information regarding any SNMP integration plan for the Rabbit Hole project? thanks, Sheng

Re: [JBoss-user] Example jsp and servlet not working JBoss-2.4.3_Tomcat-4.0 (win 2000)

2001-10-15 Thread Kar YEOW
Title: Example jsp and servlet not working JBoss-2.4.3_Tomcat-4.0 (win 2000) You have to deploy the examples.war file tothe jboss/deploy directory. Kar - Original Message - From: Patrick Munis To: [EMAIL PROTECTED] Sent: Tuesday, October 16, 2001 4:49 AM

[JBoss-user] help on subscription

2001-10-15 Thread ibo
hi guys.. how do i unsubscribe here? cant find info on how to. unsubscribe me!! thx :) __ Do You Yahoo!? Make a great connection at Yahoo! Personals. http://personals.yahoo.com ___ JBoss-user mailing

Re: [JBoss-user] cmp primary key

2001-10-15 Thread Nguyen Thanh Phong
You should have a look at EJBUtils: http://sourceforge.net/projects/ejbutils/ Nguyen Thanh Phong Tel: 84-8-837 25 06/837 25 07 Saigon Software Development Company (SDC)Fax: 84-8-837 25 11 10 Co Giang Street, Dist I, HCMC Email: [EMAIL PROTECTED] Vietnam

[JBoss-user] Select COUNT????? in Entity

2001-10-15 Thread John LYC
Hi all, I'm using Bean-managed Entity Beans.. and i wanna do a sql select count.. the thing is the finder methods in entity can only return the beans remote type or a collection of it. meaning i cannot select count . How do i do a sql count? one way to do work around i guess is to do a sql

Re: [JBoss-user] asynchronous invocation of bean with security context

2001-10-15 Thread Scott M Stark
All a client can do is establish an authenticated identity. The server assigns the security context based on the client identity. Perhaps this will change in the future as I look more at the EJB 2.0 security interoperability support. The asynchronous service must behave as any other EJB client

Re: [JBoss-user] asynchronous invocation of bean with securitycontext

2001-10-15 Thread Dmitri Colebatch
Ok, I think I'm with you, and that its ok. So if the asynchronous service only retains the client identity, and then lets the server assign the context for the call based on that identity that would be acceptable you think? That certainly satisfies my requirements. thanks again, dim On Mon,