| MBeanServer server = MBeanServerLocator.locateJBoss();
| java.net.URL url = (java.net.URL)server.getAttribute(new
ObjectName("jboss.security:service=XMLLoginConfig"), "ConfigURL");
| SAXBuilder builder = new SAXBuil
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
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
--
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
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) {
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
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
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
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
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
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)
this is working:
jboss.xml
|
|
| false
|
| DocImportProcessorEJB
| local/DocImportProcessorEJB
| queue/eManager-docImportQueue
|
|
| jms/QueueFactory
| java:/JmsXA
|
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
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
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{
|
|
thank you for the reply.
|
|
| false
|
| DocImportProcessorEJB
| queue/eManager-DocImportQueue
|
|
| abc
| xyz
|
|
| jms/QueueFactory
| java:/JmsXA
|
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
|
|
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:
|
|
|
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
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
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
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
--
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
23 matches
Mail list logo