[jboss-user] [JBoss Messaging] - Security issue while connecting MDB to remote Topic

2008-04-17 Thread sappenin
I have two JBoss Instances/servers -- ServerA [10.1.1.101] ServerB [10.1.1.102]. I have a Topic deployed on ServerA, and an EJB3 MDB on ServerB that is attempting to connect to the remote Topic on ServerA. I have followed all of the directions in the messaging wiki to connect an EJB3 MDB

[jboss-user] [EJB 3.0] - Non-Hibernte EntityManager?

2008-03-31 Thread sappenin
Is it possible to use the JBoss implementation of EJB3, except with a non-Hibernate persistence provider? In other words, can I replace the underlying Peristence provider with a library of my own? I'm experimenting with a library that has an implementation of

[jboss-user] [EJB 3.0] - How to do a Table lock with EJB3

2008-02-11 Thread sappenin
In an EJB3 SLSB, how do I lock a database table so I can do a read, then a write in the same unit of work without having another calling thread do work in between? Please note that EntityManager.lock(...) will not work here because I need to lock the table BEFORE I create an entity. Here's

[jboss-user] [EJB 3.0] - Re: Clustered Service MBean with @Clustered, @Service(..)

2008-02-04 Thread sappenin
Has the status of this changed? Does the @Stateless annotation now work with the @Clustered annotation, or should we still be doing it the way it's described in the above post? Thanks! David View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4126358#4126358

[jboss-user] [JBoss Messaging] - What does JMSUserManager do?

2008-02-01 Thread sappenin
I'm using jboss-messaging, and am wondering what the difference between the JMSUserManager and the 'messaging' application-policy defined in login-conf.xml is. Which one determines my users/roles??? I'm using Mysql for persistent messaging, and in the file called

[jboss-user] [EJB 3.0] - Re: @Service + @Managment + @SecurityDomain throws Authoriza

2008-01-16 Thread sappenin
Thanks for your suggestion. I should have added this into the initial thread. I'm getting an Authorization exception because the prinicipal and role are null, but only if I specify a @SecurityDomain. Here's the stack trace: | | 2:48:11,650 ERROR [RoleBasedAuthorizationInterceptor]

[jboss-user] [EJB 3.0] - @Service + @Managment + @SecurityDomain throws Authorization

2008-01-11 Thread sappenin
I have a secured EJB3 @Service bean as follows: | @Service | @Management(MyClassInterfaceManagement.class) | @Local(MyClassInterface.class) | @SecurityDomain(myrealm) | @RolesAllowed( { | admin, system | }) | @RunAs(system) | public class MyClass implements

[jboss-user] [Security JAAS/JBoss] - Re: Bug in SecurityAssociation(?) - EJB3 MDB Calls a SLSB wh

2006-12-14 Thread sappenin
Does anybody have any thoughts/opinion about the questions in my second post (above)? View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3994073#3994073 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3994073

[jboss-user] [EJB 3.0] - Re: Deploying an EJB3 MDB as stopped?

2006-12-09 Thread sappenin
Would you mind posting your code? I could use what you wrote. Thanks! David View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3992489#3992489 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3992489

[jboss-user] [JBossWS] - Re: implementing wsse:UserNameToken

2006-11-03 Thread sappenin
I can't confirm your problem using a JBoss/Java client. I'm using an Adobe Flex2 client, and can hit my JBoss webservice using the WSSE Username Profile. The only problem is that I have to send my password in the clear (See up above where [EMAIL PROTECTED] addresses this point). However,

[jboss-user] [JBossWS] - Re: implementing wsse:UserNameToken

2006-11-02 Thread sappenin
anonymous wrote : 7. how should I capture or examine the SOAP header in order to | look for wsse usernametoken element? Is there any log file or option to | log the SOAP header? In your log4j.xml file (JBOSS_HOME/server/[servername]/conf/log4j.xml), set the CONSOLE appender threshold to

[jboss-user] [EJB 3.0] - Bug in SecurityAssociation(?) - EJB3 MDB Calls a SLSB which

2006-10-11 Thread sappenin
I'm having trouble calling a secured SLSB (Stateless Session Bean) from an MDB (Message Driven Bean), and am wondering if I have discovered a bug, or if what I am encountering is the intended usage by design. I posted something over on the JAAS forum, and am cross-posting to the EJB3 forum

[jboss-user] [Security JAAS/JBoss] - Bug in SecurityAssociation(?) - EJB3 MDB Calls a SLSB which

2006-10-10 Thread sappenin
I am running JBAS 4.0.4GA_Patch1. I have an annotated EJB3 MDB, with the following annotations: @SecurityDomain(myRealm) | @RunAs(system) | @RolesAllowed( { | admin, system | }) | Inside of my MDB, I am calling a function on a SLSB (called UserBean). Inside of my SLSB

[jboss-user] [Messaging, JMS JBossMQ] - Re: Principals from and Message Bean

2006-10-10 Thread sappenin
Is this still true in the context of EJB3 and the RunAs annotation? anonymous wrote : Scott Stark: No, an mdb can never call getCallerPrincipal. Doing a jaas login is equivalent to a dynamic run-as assignment. Thanks! David View the original post :

[jboss-user] [JBossWS] - Re: How do I logout on a JSR 181 endpoint?

2006-10-04 Thread sappenin
Ok, so I recognize that while using BASIC auth, the browser controls the login session, and nothing on the server side can logout a BASIC authenticated client. Just FYI, I'm calling a JBoss webservice from an Adobe FLEX Flash application running in the browser. So, I turned BASIC auth OFF on

[jboss-user] [JBossWS] - Re: How do I logout on a JSR 181 endpoint?

2006-10-04 Thread sappenin
Ok, I solved my problem. As it turns out, I had a bug in my code on the Flex side that was adding a WSSE header every time I logged out/logged in (but never removing the headers, and re-using the WebService object used to make calls to the JBossWS). So, while I did have the new credentials

[jboss-user] [JBossWS] - Re: implementing wsse:UserNameToken

2006-10-02 Thread sappenin
Any update on this? Has a JIRA todo been created? I'm running into the same problem. I'd like to base64(SHA1(nonce + createdTimeStamp + password)) and send that value in the SOAP Header as part of the WSSE UsernameToken. However, JBoss appears to not be doing anything with this when the

[jboss-user] [JBossWS] - How do I logout on a JSR 181 endpoint?

2006-09-30 Thread sappenin
I have a JSR 181 EJB/Web Service endpoint that is secured using the BASIC auth method. Everything works fine, and when I try to access the wsdl in a browser (for example), I get a login popup, and I can authenticate just fine. However, I want to be able to logout and access the web-service as

[jboss-user] [Management, JMX/JBoss] - Possible to make an ear deployment dependent on an mBean?

2006-08-25 Thread sappenin
Is it possible to make an ear depend on a given service Mbean to be deployed before the ear is loaded? I've seen examples where a given mbean is made to wait (i.e. depend) on a given ear loading first...but I'm trying to do the opposite. Essentially, I have a MessageDriven EJB that calls an

[jboss-user] [JBossWS] - Re: high vol WS calls

2006-08-09 Thread sappenin
Not sure if this is the reccomended strategy, but in your EJB impl class, simply forward all WS message objects to a queue. Then, define an MDB that listens to that queue, and that handles each WS object in the onMessage() function. That way, your WS messages will be delivered immediatly,

[jboss-user] [JBossWS] - Re: JSR181 Web Service Client

2006-08-08 Thread sappenin
In your client, when you call the endpoint, can you confirm that the System.getProperty(user.name) call is returning a non-null value? | String ret = port.getHello(System.getProperty(user.name)); | My guess is that System.getProperty(user.name) might be returning null on you. Try the

[jboss-user] [JBossWS] - Re: Upgrading from JBoss 4.0.0 to 4.0.4, jax-rpc problems

2006-08-08 Thread sappenin
There's not a really simple upgrade path (in terms of it happening automatically). I suggest reading the JBossWS User guide, and go through some examples. There will probably be a small learning curve, but it's worth it. I'm using JSR181 endpoints, so everything can be set using

[jboss-user] [JBossWS] - Re: passing arrays to ejb3 WS

2006-08-08 Thread sappenin
Not sure if this will solve your problem, but you might try the IBM link below to see the different schema formats that the various web-service document types will produce. Either you're using the wrong WSDL-type, in which case you could use a different type, or, you're using the correct wsdl

[jboss-user] [JBossWS] - Re: JSR181 Web Service Client

2006-08-08 Thread sappenin
I haven't used wsimport. I would suggest creating your client with wstools that comes with JBoss 4.0.4GA. You'll want to download JBossWS 1.0.2 (or later), and also make sure you have the most recent download of EJB3. I'm not 100% on this, but I don't think that JBossWS (which is what JBoss

[jboss-user] [JBossWS] - Re: JSR181 Web Service Client

2006-08-08 Thread sappenin
Ok, so maybe I'm wrong on the JWSDP thing This person seems to have been able to use the Sun JWSDP on Jboss 4.0.3. http://www.jboss.org/index.html?module=bbop=viewtopict=85703 View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3963917#3963917 Reply to the post

[jboss-user] [JBossWS] - Possible to use a JSR 109 Client with a custom soap address

2006-08-04 Thread sappenin
Is it possible to use a JSR 109 client with a locally packaged wsdl file (i.e., META-INF/Service.wsdl), yet override the soap:address that the ServiceFactory uses? I basically want to call a web-service at a URL that I specify at runtime. In the JbossWS user guide, it appears that I can do

[jboss-user] [JBossWS] - JSR 181 EJB + WS Endpoint Authentication Problem

2006-08-01 Thread sappenin
I'm encountering a strange authentication/authorization issue. I'm running JBAS 4.0.4GA_Patch1 and JBossWS1.0.2GA. I have a JSR181 EJB endpoint exposed as a web-service. My Port annotation looks thus: @PortComponent( transportGuarantee=NONE, contextRoot = /sample,

[jboss-user] [EJB 3.0] - EJB 3.0 RC8 Preview - FD Missing Client Files

2006-07-19 Thread sappenin
Can someone at JBoss please address this thread: http://www.jboss.com/index.html?module=bbop=viewtopict=84310postdays=0postorder=ascstart=10 The EJB3 RC8 download is missing all of the client zip files (and perhaps more), and nothing has been done in over a month (not even a comment)! Is RC9