[JBoss-user] [Security & JAAS/JBoss] - Re: get attributes of application-policy

2006-01-09 Thread schachi
| MBeanServer server = MBeanServerLocator.locateJBoss(); | java.net.URL url = (java.net.URL)server.getAttribute(new ObjectName("jboss.security:service=XMLLoginConfig"), "ConfigURL"); | SAXBuilder builder = new SAXBuil

[JBoss-user] [Beginners Corner] - Re: Schedulable MBeans

2006-01-09 Thread schachi
im not sure if is a way to synchronize the deployment. i solved this problem straight forward: - mbean-configuration: StartAtStartup: false - then i wrote a mbean which adds a notificationlistener / the handlenotification-method of this mbean will be called, when the server is started (JBoss

[JBoss-user] [Messaging, JMS & JBossMQ] - Re: timeout when invoking stopDelivery

2005-11-23 Thread schachi
thank you for the hint (the solution with the thread works for me) View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3908737#3908737 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3908737 --

[JBoss-user] [Messaging, JMS & JBossMQ] - Re: timeout when invoking stopDelivery

2005-11-18 Thread schachi
section: jboss.j2ee, search for the receiving mdb btw: don't hijack my topic ;) View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3907804#3907804 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3907804

[JBoss-user] [Messaging, JMS & JBossMQ] - timeout when invoking stopDelivery

2005-11-17 Thread schachi
hi folks, i try to stop message-delivery of a queue in case of error. | public class DocImportProcessorBean implements javax.ejb.MessageDrivenBean, javax.jms.MessageListener { | ... | | public void onMessage(Message message) { |try { | ... |} catch (Exception ex) {

[JBoss-user] [Installation, Configuration & Deployment] - Re: cassloader-exceptions JBoss-4.0.3SP1

2005-11-10 Thread schachi
it's a bug in the graphic installer (windowsversion). the checkbox "enable deployment isolation/call by value" seems to have no effect. you can check this checkbox or not, the installation is the same. checkbox on: deploy\ear-deployer.xml: | true | true | checkbox off: deploy\ear-depl

[JBoss-user] [Installation, Configuration & Deployment] - cassloader-exceptions JBoss-4.0.3SP1

2005-11-10 Thread schachi
i switched from jboss-4.0.3rc1 to jboss-4.0.3sp1. on setup of jboss-4.0.3sp1 (graphic installer), i choosed the option ALL and left everything else on default. the deployment of my application-ears was ok, but at runtime, i get classloader-exceptions (i didn't have these problems with jboss-4.0

[JBoss-user] [Security & JAAS/JBoss] - get attributes of application-policy

2005-10-12 Thread schachi
i have a web application running on JBoss 4.0.3rc1 which authenticates against a LDAP. everything works fine. now, i have to search ldap for all existing roles. jboss-service.xml | | external/ldap/jboss | | java.naming.factory.initial=com.sun.jndi.ldap.LdapCtxFactory

[JBoss-user] [Security & JAAS/JBoss] - Re: How to Configure the OpenLdap with Jboss 4.0

2005-10-12 Thread schachi
clientside: auth.conf | defaultAuth { |org.jboss.security.ClientLoginModule required; |org.jboss.security.auth.spi.LdapLoginModule required |java.naming.factory.initial="com.sun.jndi.ldap.LdapCtxFactory" |java.naming.provider.url="ldap://localhost:389/"; |rolesCtxD

[JBoss-user] [Security & JAAS/JBoss] - list of roles of a principal

2005-10-10 Thread schachi
i need a list of roles of a principal. i tried to invoke the method JaasSecurityManagerService.getUserRoles(String securityDomain, Principal principal) as mentioned here: http://wiki.jboss.org/wiki/Wiki.jsp?page=JaasSecurityManagerService | InitialContext jndiContext = new InitialContext

[JBoss-user] [Messaging, JMS & JBossMQ] - listReceivers

2005-09-20 Thread schachi
i need to know the delivery-state from the subscripter(s) of a queue. | MBeanServer server = MBeanServerLocator.locateJBoss(); | MBeanInfo mbi = server.getMBeanInfo(new ObjectName(objectName)); | java.util.List list = (java.util.List)server.invoke(new ObjectName(objectName)

[JBoss-user] [Messaging, JMS & JBossMQ] - Re: jBossMQ - Multiple Dead Letter Queues

2005-09-14 Thread schachi
this is working: jboss.xml | | | false | | DocImportProcessorEJB | local/DocImportProcessorEJB | queue/eManager-docImportQueue | | | jms/QueueFactory | java:/JmsXA |

[JBoss-user] [Messaging, JMS & JBossMQ] - Re: stop message-delivery

2005-09-09 Thread schachi
thank you for reply. here is allready a topic about this problem: http://jira.jboss.com/jira/browse/JBAS-2130;jsessionid=303313B824CF61FCB73C015CEE8EF391?page=comments suggested workaround: | | [...] | local/docImportProcessorEJB | [...] | | now it works for me. but i'm not

[JBoss-user] [Messaging, JMS & JBossMQ] - stop message-delivery

2005-09-06 Thread schachi
i try to stop "message-delivery from a queue". DocImportProcessorEJB: | onMessage(Message m) { |if (...) { | ObjectName objectName = | new ObjectName("jboss.j2ee:binding=message-driven-bean, | jndiName=local/DocImpor

[JBoss-user] [Messaging, JMS & JBossMQ] - autentication user null/null

2005-08-04 Thread schachi
i spend another day with reading jboss-documentation. i try to send a message from a java standalone-client to a message-queue. java-client: | public class Test_DocImportProcessor { |public static void main (String [] args) throws Exception { | | try{ | |

[JBoss-user] [Messaging, JMS & JBossMQ] - Re: Queue-Security

2005-08-04 Thread schachi
thank you for the reply. | | | false | | DocImportProcessorEJB | queue/eManager-DocImportQueue | | | abc | xyz | | | jms/QueueFactory | java:/JmsXA |

[JBoss-user] [Messaging, JMS & JBossMQ] - Re: Queue-Security

2005-08-03 Thread schachi
i thought i found the solution with the run-as tag (but it's still not working) | | | DocImportProcessorEJB | ch.e_act.e_archive.server.emanager.ejb.DocImportProcessorBean | Container | MessageFormat = 'Version 3.4' | auto-acknowledge | |

[JBoss-user] [Messaging, JMS & JBossMQ] - Queue-Security

2005-08-02 Thread schachi
i try to add a access-control to a queue (only authenticated users should have read/write/create rights. other users should be blocked). i read the jboss-documentation (jms, jaas) and i searched in the forum, but i didn't found the answer. try: ecollector-docImport-service.xml: | | |

[JBoss-user] [Security & JAAS/JBoss] - Re: LDAP: client-side authentication

2005-08-02 Thread schachi
thank you for reply. here is an example (if someone else has the same problem... ) client: | try { | | System.setProperty("java.security.auth.login.config", "...pathtoauthconf\\auth.conf"); | org.jboss.security.auth.callback.UsernamePasswordHandler handler = new org.jboss.sec

[JBoss-user] [Security & JAAS/JBoss] - LDAP: client-side authentication

2005-07-27 Thread schachi
i have to authenticate users on the client-side (Java-Swing, auth.: ldap) i tried it with the ClientLoginModule, but i NEVER received a exception (i expected to get an exception when i enter a wrong username/password). [...] jboss-documentation: note that this login module does not perform any a

[JBoss-user] [Security & JAAS/JBoss] - active directory under jboss 2.4.4

2005-02-03 Thread schachi
is it possible to access active directory under jboss 2.4.4 ? has somebody done it allready ? thanks marc View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3864999#3864999 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3864

[JBoss-user] [Performance Tuning] - Re: better performance with optimize!??

2004-07-26 Thread schachi
not orders... others... One entity is accessed by primary key, the others by foreign key. View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3843306#3843306 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3843306 --

[JBoss-user] [Performance Tuning] - better performance with optimize!??

2004-07-26 Thread schachi
I have a performance question. After reboot the machine, it takes about 300ms to read 12 entities (2 rows each entity) and transform the data into xml One entity is accessed by primary key, the orders by foreign key. when i reboot the machine and run the mysql optimize first, it takes only abou