[Design of Messaging on JBoss (Messaging/JBoss)] - how to prevent sending message to a queue ??
by subrata_jboss
i have a queue named /queue/MessageQueue
i created one role as admin with read/write/create
now i want other than admin no body can send a message to this queue.
while using createConnection("user","password") , it is working as it is userid and password for admin.
But my createConnection() is also able to send the message to the queue !
i am using jboss messaging 1.4.2
In destinations-service.xml i added
<mbean code="org.jboss.jms.server.destination.QueueService"
name="jboss.messaging.destination:service=Queue,name=SubrataTest"
xmbean-dd="xmdesc/Queue-xmbean.xml">
<depends optional-attribute-name="ServerPeer">jboss.messaging:service=ServerPeer
jboss.messaging:service=PostOffice
in login-config.xml i added
<application-policy name = "messaging">
<login-module code = "org.jboss.security.auth.spi.UsersRolesLoginModule"
flag = "required" >
<module-option name = "unauthenticatedIdentity">Subrata</module-option>
<module-option name = "usersProperties">props/messaging-users.properties</module-option>
<module-option name = "rolesProperties">props/messaging-roles.properties</module-option>
</login-module>
</application-policy>
In messaging-roles.properties,messaging-users.properties i added password , role.
Any help??
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4136247#4136247
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4136247
18 years
[Design the new POJO MicroContainer] - Re: JBDEPLOY-3 issues
by alesj
"scott.stark(a)jboss.org" wrote : Implementations of org.jboss.profileservice.spi.DeploymentRepository.getDeploymentNamesForType are looking to the VFSDeployment.getType, not Deployer.getType.
|
Sure, but that's exactly what was asked to be removed.
The Deployment(Unit|Context) shouldn't have the types.
"scott.stark(a)jboss.org" wrote : There are some deployer beans.xml that are setting the type property, so they would need to be updated to remove Deployer.getType.
|
So, you're saying you wont be needing Deployer::getType?
"scott.stark(a)jboss.org" wrote :
| The org.jboss.managed.api.ManagedDeployment has a types notion, so support will have to be based on that.
|
Yup, but I thought this would use Deployer::getType to build the ManagedDeployment with the right types.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4136234#4136234
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4136234
18 years
[Design of POJO Server] - Re: Generalizing dependency injection
by wolfc
I think we need to separate injection and component construction (/destruction).
It seems we're forgetting again that a component class = 1 bean class + interceptor classes. So interceptor lifecycle is tied to the bean. While injection follows the same rules.
At the end of the day I want to have something like:
package org.jboss.ejb3.pool;
|
| /**
| * Creates and destroys stateless objects.
| *
| * The object returned by create has dependencies injected. The PostConstruct
| * callback, if defined, has been called.
| *
| * @author <a href="mailto:carlo.dewolf@jboss.com">Carlo de Wolf</a>
| * @version $Revision: $
| */
| public interface StatelessObjectFactory<T>
| {
| /**
| * Creates a new stateless object by calling it's empty constructor,
| * do injection and calling post-construct.
| *
| * @return
| */
| T create();
|
| /**
| * Perform any cleanup actions on the object, such as
| * calling the pre-destroy callback.
| *
| * @param obj the object
| */
| void destroy(T obj);
| }
http://viewvc.jboss.org/cgi-bin/viewvc.cgi/jbossas/projects/ejb3/trunk/po...
Behind the scenes it delegates to 'bean factory' for construction which delegates to injection for each object which is part of the component.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4136213#4136213
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4136213
18 years