[JBoss-user] [JBossWS] - Re: message style web service using jbossws on jboss 4

2005-06-07 Thread p_nevilleuk
Hi,
Just to let you know that I gave up trying to get this to work as I had to 
change app server to websphere.

What I do on websphere is simply use the SAAJ API, which suits me for 
SOAP/ebXML.  It's a shame thought that J2EE doesn't support JAXM.


I would be interested in your jboss solution though for future reference if 
youget time.

Thanks


View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3880570#3880570

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3880570


---
This SF.Net email is sponsored by: NEC IT Guy Games.  How far can you shotput
a projector? How fast can you ride your desk chair down the office luge track?
If you want to score the big prize, get to know the little guy.  
Play to win an NEC 61" plasma display: http://www.necitguy.com/?r=20
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Advanced Documentation] - Re: Flaws in XMBean example

2004-12-10 Thread p_nevilleuk
I have been trying to provide a default value for an XMBean (using the xml 
config files) if a persisted value is not available, but cannot achieve this.  
If I set the attribute in jboss-service.xml, it overwrites the persisted value 
on startup.  The default value in xmbean.xml is not suitable as it is only for 
attibutes with no accessor.

This topic seems related, but can you confirm that this is the case please and 
if so, what do you mean by 'the next edition'?

I am using jboss 4.0.0.



View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3858162#3858162

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3858162


---
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now. 
http://productguide.itmanagersjournal.com/
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Management, JMX/JBoss] - Re: XMBean will not make attributes persistent

2004-12-10 Thread p_nevilleuk
I see that you are using @jboss.xmbean in your code.  I cannot find this in 
jboss ide 1.4 or in the XDoclet documentation.  Can you confirm whether it 
works and if so, what you are using to process it?

Thanks,
Peter
 

View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3858168#3858168

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3858168


---
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now. 
http://productguide.itmanagersjournal.com/
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [EJB/JBoss] - Re: uuid generation

2004-12-09 Thread p_nevilleuk
My question is what ways can the MBean that I have created be accessed (both 
remotely and locally).  I understand I can acess it using:
RMIAdaptor/MBeanServerInvocationHandler, 
MBeanServer/MBeanServerInvocationHandler but am concerened that if I start 
embedding this type of call in my EJB then I will have non-portable code(?) or 
at least code that is not commonly used (ie most EJB developers I know aren't 
familiar with it).

Therefore I started to think about adding some of the objects wrapped by the 
MBean to the JNDI tree (like the supplied uuid-generator), but came across the 
problem that they are not serializable (and I wouldprefer not to chnage the 
doomdark code).   When investigating the possiblity of using the 
NonSerializableFactory I read the warning that this will not be accessible 
remotely.

Also, I have looked at the code for the supplied uuid-generator and unless I am 
mistaken, the factory is not behaving like a factory (apart from returning an 
instance with different parameter, but not a different type). For example, if 
you use the HiLoKeyGeneratorFactory it always gives you back a 
HiLoKeyGenerator. I was expecting one factory that gave back the required type 
of KeyGenerator.


I would like to integrate the doomdark uuid generator, but wish to do so in the 
best possible way.

Many thanks for you comments so far.

View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3858006#3858006

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3858006


---
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now. 
http://productguide.itmanagersjournal.com/
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Management, JMX/JBoss] - startup classes / MBean cache implementation

2004-12-08 Thread p_nevilleuk
Hi,
I thought that JBoss had a similar facility to that offered by Sun for 
automatic startup of classes. For example Sun app server can use a Lifecycle 
module.

Is the best way in JBoss to use MBean?

Are there any other ways (apart from web.xml - servlet/load-on-startup)

I would like to automatically startup a class that holds a cache of data that 
changes infrequently.  I would like the ability to refresh this cache (perhaps 
from jmx) and lock access to the cache during update.  
Can MBeans provide locking or would I simply check a state variable that forces 
a wait whilst refresh takes place?


Thanks,
Peter

View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3857864#3857864

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3857864


---
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now. 
http://productguide.itmanagersjournal.com/
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [EJB/JBoss] - Re: uuid generation

2004-12-08 Thread p_nevilleuk
Can you exaplain then the following paragraph taken from the wiki anonymous 
wrote : NonSerializableFactory
  | 
  | NO!!! 
  | 
  | This seems to be a common misunderstanding. The NonSerializableFactory 
takes objects that are not java.io.Serializable (and hence can't be bound into 
jndi by spec) and creates an indirection such that they can be bound. The 
object is still not serializable and in no way will it be available on a remote 
machine. The indirected object can be accessed inside the same JVM as where it 
is bound. 
  | 
  | Even if it was Serializable you would get a copy of the object not remote 
access, see above. 
  | 
  | Question: Why do people
  | 

Is this information incorrect or does it relate to a different issue?



View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3857836#3857836

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3857836


---
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now. 
http://productguide.itmanagersjournal.com/
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [EJB/JBoss] - Re: uuid generation

2004-12-07 Thread p_nevilleuk
Appreciate answers to the following if possible:

What about if a POJO used JNI and the EJB called this - is this acceptable?

How is the MBean accessed? Do you normally store in on JNDI or access it using 
RMIAdaptor?

I notice that the jboss admin guide uses a NonSerializableFactory to bind it.  
I thought this was not acceptable 
(http://www.jboss.org/wiki/Wiki.jsp?page=HowDoIGetRemoteAccessToMyMBean)

I initially need local access, but remote access may be required later.

Which type is most suitable?

Thanks


View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3857684#3857684

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3857684


---
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now. 
http://productguide.itmanagersjournal.com/
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [EJB/JBoss] - Re: uuid generation

2004-12-07 Thread p_nevilleuk
Juha,
Regarding wrapping it as an MBean.  I am interested in this approach, but I am 
not entirely sure what the reason for doing so is.
I can see that the MBean would provide a service to all apps running on the 
server, but this could be achieved by adding it to the ear.  Also, the doomdark 
api does not require any persistence so does this make it less MBean 
appropriate?
Are there any other benefits of a UUID MBean? 

Thanks,
Peter

View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3857676#3857676

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3857676


---
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now. 
http://productguide.itmanagersjournal.com/
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [EJB/JBoss] - Re: uuid generation

2004-12-06 Thread p_nevilleuk
Thanks for your response Juha. I understand about the native code issue, but my 
greatest grievance is with the generator in jboss and j2se 1.5 not conforming 
to standards (or at least the DCE 1.1 RPC standard).

I could always pass the MAC address to a suitable API (obtained manually, 
natively or via executing ipconfig etc at Runtime).

Like you say, I can always replace with my own but again I would prefer jboss 
to use a standard generator.

Thanks,
Peter

View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3857516#3857516

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3857516


---
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now. 
http://productguide.itmanagersjournal.com/
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [EJB/JBoss] - uuid generation

2004-12-03 Thread p_nevilleuk
Hi,
I've been looking into the uuid-key-generator.sar as I need to create a uuid.  
Unfortunately, it does not seem to implement the standard as described in DCE 
1.1 RPC (and draft-leach-uuids-guids-01.txt).

I see that j2se 1.5 now has java.util.UUID and this seems close to the spec, 
but does not have a way of creating a UUID based on the MAC address.

I have found one that seems to be okay 
(http://www.doomdark.org/doomdark/proj/jug/index.html), but would prefer to use 
one that is part of JBOSS or j2se.

Are there any plans to update it? 

Thanks in advance,
Peter


View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3857338#3857338

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3857338


---
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now. 
http://productguide.itmanagersjournal.com/
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [EJB/JBoss] - Re: timer cancel - log

2004-12-03 Thread p_nevilleuk
Anyone using timers care to check this for me?  If not, I'll raise a bug.


Thanks.

View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3857306#3857306

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3857306


---
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now. 
http://productguide.itmanagersjournal.com/
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [EJB/JBoss] - Re: timer cancel - log

2004-11-29 Thread p_nevilleuk
Further to this, shouldn't the timer be removed from persistent store when it 
has been cancelled?



View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3856705#3856705

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3856705


---
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now. 
http://productguide.itmanagersjournal.com/
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [EJB/JBoss] - timer cancel - log

2004-11-29 Thread p_nevilleuk
I've implemented the TimedObject interface on an EntityBean and the code 
functions as expected (ie timer event every 5 seconds until 5 events have 
occurred).

However when I examine the server.log, I have the following message repeated 
forever on each of the timed objects:

2004-11-29 11:05:26,955 DEBUG [org.jboss.ejb.txtimer.TimerImpl] run: 
[id=1target=[target=jboss.j2ee:jndiName=MessageBeanLocal,service=EJB,pk=ID:3-11017237981821],remaining=-2493432,periode=5000,canceled]

Is this expected? How can I stop it?

Thanks for any help.

View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3856668#3856668

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3856668


---
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now. 
http://productguide.itmanagersjournal.com/
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Installation & Configuration] - Re: need log4j category to work in my webapp

2004-11-04 Thread p_nevilleuk
Totally agree with you on documenting this one.  Would love to see it in the Wiki.
Thanks - you saved me some time here!

View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3853875#3853875

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3853875


---
This SF.Net email is sponsored by:
Sybase ASE Linux Express Edition - download now for FREE
LinuxWorld Reader's Choice Award Winner for best database on Linux.
http://ads.osdn.com/?ad_id=5588&alloc_id=12065&op=click
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Security & JAAS/JBoss] - Security of CORBA client accessing EJB

2004-11-03 Thread p_nevilleuk
Hi,
Does anyone have any experience of creating a non-java client that accesses an EJB? 
Specifically, I am interested in how to make this secure.  For example, can it be 
encrypted using SSL and can the non-java client be authenticated and the principle 
obtained?

Any pointers to further information would be gratefully appreciated.

Thanks,
Peter

View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3853711#3853711

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3853711


---
This SF.Net email is sponsored by:
Sybase ASE Linux Express Edition - download now for FREE
LinuxWorld Reader's Choice Award Winner for best database on Linux.
http://ads.osdn.com/?ad_id=5588&alloc_id=12065&op=click
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Security & JAAS/JBoss] - Re: Security does work on jboss 4.

2004-11-02 Thread p_nevilleuk
"[EMAIL PROTECTED]" wrote : Create a bug report on sourceforge with the testcase your 
talking about. Authorization is distinct from authentication so a secured mdb needs to 
be run under an unauthenticatedIdentity since there is no standard way for the jms 
invocation to establish the security context of the mdb onMessage.
  | 
  | http://sourceforge.net/tracker/?group_id=22866&atid=376685
  | 

I assembled an ear to submit this as a bug, but on doing so, created a small demo that 
actually proves it does work.  The problem I was finding was that the MDB went onto 
use other EJB's and without it having a role or unauthenticatedIdentity it was not the 
creation of the MDB that failed, but the creation of EJB's that the MDB was trying to 
create.  These EJB's did have security permissions set.

I guess what makes things a little confusing is the length of the stack trace and the 
sometimes misleading error message on roles etc.



View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3853617#3853617

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3853617


---
This SF.Net email is sponsored by:
Sybase ASE Linux Express Edition - download now for FREE
LinuxWorld Reader's Choice Award Winner for best database on Linux.
http://ads.osdn.com/?ad_id=5588&alloc_id=12065&op=click
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Security & JAAS/JBoss] - Re: Does security work on jboss 4?

2004-10-29 Thread p_nevilleuk
EJB 2.1 spec:

anonymous wrote : The Application Assembler can indicate that some methods should not 
be checked for authorization
  | prior to invocation by the container. The Application Assembler uses the unchecked 
element instead
  | of a role name in the method-permission element to indicate that a method should 
not be checked
  | for authorization.
  | 

Does this indicate that there is a bug for security on MDB's?

View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3853267#3853267

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3853267


---
This Newsletter Sponsored by: Macrovision 
For reliable Linux application installations, use the industry's leading
setup authoring tool, InstallShield X. Learn more and evaluate 
today. http://clk.atdmt.com/MSI/go/ins003001msi/direct/01/
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Security & JAAS/JBoss] - Re: Does security work on jboss 4?

2004-10-29 Thread p_nevilleuk
This morning I have created a very simple test ear and it works without the 
unauthenticatedIdentity.  

I have re-examined my actual code and I now can only get it to fail when I try to 
create a MDB without specifying a role to run under or by not adding the 
unauthenticatedIdentity. 
I was expecting to not have to specify a role in securty-identity for this bean as I 
had method-permission set to uncehcked.

Can anyone confirm whether this is the expected behaviour for MDB's please?



View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3853260#3853260

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3853260


---
This Newsletter Sponsored by: Macrovision 
For reliable Linux application installations, use the industry's leading
setup authoring tool, InstallShield X. Learn more and evaluate 
today. http://clk.atdmt.com/MSI/go/ins003001msi/direct/01/
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Security & JAAS/JBoss] - Re: JAAS-based Single Sign-On for JBoss 3.2.6

2004-10-28 Thread p_nevilleuk
Does it use SAML assertions , if so this could be very useful?



View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3853107#3853107

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3853107


---
This SF.Net email is sponsored by:
Sybase ASE Linux Express Edition - download now for FREE
LinuxWorld Reader's Choice Award Winner for best database on Linux.
http://ads.osdn.com/?ad_id=5588&alloc_id=12065&op=click
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Security & JAAS/JBoss] - Re: Does security work on jboss 4?

2004-10-28 Thread p_nevilleuk
"p_nevilleuk" wrote : BTW: The same project works in 3.2.5, so I would love to hear 
from anyone with similar experience.

This is not quite true.  It only works in both 4.0.0 and 3.2.5 if 
unauthenticatedIdentity is set.  

View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3853106#3853106

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3853106


---
This SF.Net email is sponsored by:
Sybase ASE Linux Express Edition - download now for FREE
LinuxWorld Reader's Choice Award Winner for best database on Linux.
http://ads.osdn.com/?ad_id=5588&alloc_id=12065&op=click
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Security & JAAS/JBoss] - Re: Does security work on jboss 4?

2004-10-28 Thread p_nevilleuk
Making a little more progress...

If I add :
nobody 
then it works.  I can now update permissions in the ejb-jar.xml and access is 
allowed/denied accordingly.  
However, I don't know why it works as in this case all permissions (ejb-jar.xml) 
require a specific role and therefore nobody should not be relevant.
 
I've had enough talking to myself for today, anyone else got any views on this!!!?

View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3853099#3853099

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3853099


---
This SF.Net email is sponsored by:
Sybase ASE Linux Express Edition - download now for FREE
LinuxWorld Reader's Choice Award Winner for best database on Linux.
http://ads.osdn.com/?ad_id=5588&alloc_id=12065&op=click
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Security & JAAS/JBoss] - Re: Does security work on jboss 4?

2004-10-28 Thread p_nevilleuk
Is this related to 
http://sourceforge.net/tracker/index.php?func=detail&aid=1040200&group_id=22866&atid=376685
  and will I therefroe have to wait until 4.0.1 is release?

View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3853083#3853083

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3853083


---
This SF.Net email is sponsored by:
Sybase ASE Linux Express Edition - download now for FREE
LinuxWorld Reader's Choice Award Winner for best database on Linux.
http://ads.osdn.com/?ad_id=5588&alloc_id=12065&op=click
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Security & JAAS/JBoss] - Re: Does security work on jboss 4?

2004-10-27 Thread p_nevilleuk
BTW: The same project works in 3.2.5, so I would love to hear from anyone with similar 
experience.

View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3852951#3852951

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3852951


---
This SF.Net email is sponsored by:
Sybase ASE Linux Express Edition - download now for FREE
LinuxWorld Reader's Choice Award Winner for best database on Linux.
http://ads.osdn.com/?ad_id=5588&alloc_id=12065&op=click
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Security & JAAS/JBoss] - Does security work on jboss 4?

2004-10-27 Thread p_nevilleuk
Hi,
Thought I would as this as I have spent a day trying various configurations with 
little joy.
I am simply trying to use basic authentication (configured in web.xml) and then use a 
policy for UsersRolesLoginModule.  I have set up some secutiry on the EJB that the 
servlet is calling and get mixed results:

The authentication is working from the servlet (i.e. login takes place and EJB is 
aware of the role and principal (sometimes).

If I add permission to call the EJB's create method alone then I get the exception = 
Insufficient method permissions, principal=externaluser, method=processMsg, 
interface=LOCAL, requiredRoles=[], principalRoles=[external]
So if required roles is empty, what is the problem?

If I add permission to both the create and busness method (processMsg) for the same 
role I get:
CreateException, causedBy:
java.lang.SecurityException: Insufficient method permissions, principal=null, me
thod=create, interface=LOCALHOME, requiredRoles=[], principalRoles=[external]
Strange as previously create was happy.

If I add permission to the create and business method under different roles (but not 
giving the user this new role) I get:
Insufficient method permissions, principal=externaluser, method=processMsg, 
interface=LOCAL, requiredRoles=[external1], principalRoles=[external]
This sounds promising as it looks like I just need to add this role to the user.

If I add the role 'external1' to the user I get:
Insufficient method permissions, principal=null, me
thod=create, interface=LOCALHOME, requiredRoles=[], principalRoles=[external]
Again strange as previosuly create was working!

Help much appreciated...


View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3852938#3852938

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3852938


---
This SF.Net email is sponsored by:
Sybase ASE Linux Express Edition - download now for FREE
LinuxWorld Reader's Choice Award Winner for best database on Linux.
http://ads.osdn.com/?ad_id=5588&alloc_id=12065&op=click
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Messaging, JMS & JBossMQ] - Re: jboss 4 file-pm-service

2004-10-15 Thread p_nevilleuk
Thanks for your reply.  I guess there is no need for the file-pm-service when 
hypersonic does this anyway.  



View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3851515#3851515

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3851515


---
This SF.net email is sponsored by: IT Product Guide on ITManagersJournal
Use IT products in your business? Tell us what you think of them. Give us
Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more
http://productguide.itmanagersjournal.com/guidepromo.tmpl
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Messaging, JMS & JBossMQ] - jboss 4 file-pm-service

2004-10-14 Thread p_nevilleuk
Hi,
I see that the class org.jboss.mq.pm.file.PersistenceManager is missing from jboss 4. 
Is this no longer supported?

Is there another way that I can test my messaging woithout having to go to the trouble 
of setting up a database connection?

Thanks,
Peter


View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3851446#3851446

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3851446


---
This SF.net email is sponsored by: IT Product Guide on ITManagersJournal
Use IT products in your business? Tell us what you think of them. Give us
Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more
http://productguide.itmanagersjournal.com/guidepromo.tmpl
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Beginners Corner] - Re: Calling remote session bean from servlet on another serv

2004-10-05 Thread p_nevilleuk
Finally got it working!

I now use :
Object objref = ic.lookup("MyRemoteEJBTest");

instead of:

Object objref = ic.lookup("java:comp/env/ejb/remoteTest");

Anyone know why this works? I can see one is in the Global jndi namespace whilst the 
other in java:comp namespace, but not sure why this matters.

View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3850407#3850407

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3850407


---
This SF.net email is sponsored by: IT Product Guide on ITManagersJournal
Use IT products in your business? Tell us what you think of them. Give us
Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more
http://productguide.itmanagersjournal.com/guidepromo.tmpl
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Beginners Corner] - Calling remote session bean from servlet on another server o

2004-10-05 Thread p_nevilleuk
Hi,
I am trying to call a remote stateless session bean from another server within a 
servlet.

In the servlet I have:

Hashtable env = new Hashtable();
env.put(Context.INITIAL_CONTEXT_FACTORY,  "org.jboss.naming.HttpNamingContextFactory" 
);
env.put(Context.PROVIDER_URL, "http://borg:8080/invoker/JNDIFactory";);
env.put(Context.URL_PKG_PREFIXES, "org.jboss.naming:org.jnp.interfaces");
  
InitialContext ic = new InitialContext(env);
Object objref = ic.lookup("java:comp/env/ejb/remoteTest");
Object obj = PortableRemoteObject.narrow(objref, RemoteEJBTestHome.class);
RemoteEJBTestHome testHome = (RemoteEJBTestHome)obj;
testHome.create();


I have deployed the ear to both servers and when I call the servlet on one, the jndi 
lookup is successful.
However, the bean executes in the ejb container of the local server rather than the 
remote one.  This can be verified by the number of instances in the JMX console.

How can I get the bean to execute on the remote server instead?

Thanks.
Peter


  

View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3850393#3850393

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3850393


---
This SF.net email is sponsored by: IT Product Guide on ITManagersJournal
Use IT products in your business? Tell us what you think of them. Give us
Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more
http://productguide.itmanagersjournal.com/guidepromo.tmpl
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user