[JNDI/Naming/Network] - jndi lookup for an object hosted by jboss AS 4.2.2
by haf
hi,
we have a web application that is supposed to send messages to a MDB that is hosted on JBoss application server on a different machine
we use a code like this to lookup the connection factory
| Hashtable env = new Hashtable();
| env.put(Context.INITIAL_CONTEXT_FACTORY,"org.jnp.interfaces.NamingContextFactory");
| env.put(Context.PROVIDER_URL, "172.16.15.22:1099");
|
| Context ctx = new InitialContext(env);
| QueueConnectionFactory factory = (QueueConnectionFactory) ctx.lookup("QueueConnectionFactory");
|
When the remote objects are hosted by jboss version 4.0.4, everything work fine, but when we migrated to JBoss 4.2.2 then the lookup fails!!!!
so the question is :
is there any security changes or anything else that has been added to Jboss 4.2.x series or releases after 4.0.x in general that changes the default behaviour related to JNDI lookup mechanism ? and what can i do to resolve this issue?
Thanks
Hazem
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4171444#4171444
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4171444
17 years, 10 months
[JBoss jBPM] - Re: Problem with depoly jbpm-bpel-1.1.1
by rusbob
Any ideas!
exception:
2008-08-20 12:52:17,323 DEBUG [org.hibernate.cfg.HbmBinder] Mapped property: id -> ID_
2008-08-20 12:52:17,324 DEBUG [org.hibernate.cfg.HbmBinder] Mapped property: name -> NAME_
2008-08-20 12:52:17,324 DEBUG [org.hibernate.cfg.HbmBinder] Mapped property: description -> DESCRIPTION_
2008-08-20 12:52:17,325 DEBUG [org.hibernate.cfg.HbmBinder] Mapped property: processDefinition -> PROCESSDEFINITION_
2008-08-20 12:52:17,325 DEBUG [org.hibernate.cfg.HbmBinder] Mapped property: events
2008-08-20 12:52:17,325 DEBUG [org.hibernate.cfg.HbmBinder] Mapped property: exceptionHandlers
2008-08-20 12:52:17,326 DEBUG [org.hibernate.cfg.HbmBinder] Mapped property: isAsync -> ISASYNC_
2008-08-20 12:52:17,326 DEBUG [org.jbpm.JbpmContext] closing JbpmContext
2008-08-20 12:52:17,327 DEBUG [org.jbpm.svc.Services] closing service 'persistence': org.jbpm.persistence.db.DbPersistenceService@1a431fd
2008-08-20 12:52:17,327 ERROR [org.apache.catalina.core.ContainerBase.[jboss.web].[localhost].[/jbpm-bpel]] Exception sending context initialized event to listener instance of class org.jbpm.bpel.web.JbpmConfigurationLoader
org.hibernate.MappingException: Could not read mappings from resource: org/jbpm/graph/def/Node.hbm.xml
at org.hibernate.cfg.Configuration.addResource(Configuration.java:518)
at org.hibernate.cfg.Configuration.parseMappingElement(Configuration.java:1506)
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4171441#4171441
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4171441
17 years, 10 months
Automatically rejected mail
by Mail Delivery Subsystem
Your message was automatically rejected by Dovecot Mail Delivery Agent.
The following reason was given:
Quota exceeded
17 years, 10 months
[JBoss Cache: Core Edition] - Listener gets events twice 2.2.0.CR7
by mbrade
Hello
I'm using JBossCache 2.2.0.CR7 with one CacheListener on the Cache. The cache runs fine but my problem is that I get all events twice.
What I do is:
| Cache cache = ...get the Cache from Spring Context...
| cache.addCacheListener( new KeyEvictionListener() );
| cache.create();
| cache.start();
|
My CacheListener:
| import org.jboss.cache.notifications.annotation.CacheListener;
| import org.jboss.cache.notifications.annotation.NodeActivated;
| import org.jboss.cache.notifications.annotation.NodeCreated;
| import org.jboss.cache.notifications.annotation.NodeEvicted;
| import org.jboss.cache.notifications.annotation.NodeLoaded;
| import org.jboss.cache.notifications.annotation.NodeMoved;
| import org.jboss.cache.notifications.annotation.NodePassivated;
| import org.jboss.cache.notifications.annotation.NodeRemoved;
| import org.jboss.cache.notifications.event.Event;
| import org.jboss.cache.notifications.event.NodeCreatedEvent;
| import org.jboss.cache.notifications.event.NodeEvictedEvent;
| import org.jboss.cache.notifications.event.NodeRemovedEvent;
|
| @CacheListener
| public class KeyEvictionListener {
|
| @NodeRemoved
| @NodeEvicted
| @NodePassivated
| @NodeCreated
| @NodeMoved
| @NodeActivated
| @NodeLoaded
| public void handleEvent(Event cacheEvent){
| System.out.println("got event: "+cacheEvent.getType().name());
| switch( cacheEvent.getType() ){
| case NODE_REMOVED : {
| NodeRemovedEvent nodeRemovedEvent = (NodeRemovedEvent)cacheEvent;
| System.out.println( nodeRemovedEvent.getFqn() );
| System.out.println( nodeRemovedEvent.getData().toString() );
| break;
| }
| case NODE_EVICTED : {
| NodeEvictedEvent nodeEvictedEvent = (NodeEvictedEvent) cacheEvent;
| System.out.println( nodeEvictedEvent.getFqn() );
| break;
| }
| case NODE_CREATED : {
| NodeCreatedEvent nodeCreatedEvent = (NodeCreatedEvent) cacheEvent;
| System.out.println( nodeCreatedEvent.getFqn() );
| }
| }
| }
|
| }
|
I'm using two regions one with an EvictionPolicy and one which contains resident Nodes only.
If I run some TestCode i get the following output:
anonymous wrote :
| got event: NODE_CREATED
| /mc
| got event: NODE_CREATED
| /mc
| got event: NODE_CREATED
| /mc/entries
| got event: NODE_CREATED
| /mc/entries
| got event: NODE_CREATED
| /mc/entries/5f8d866c3800d096698dc48b549e4dd3
| got event: NODE_CREATED
| /mc/entries/5f8d866c3800d096698dc48b549e4dd3
| got event: NODE_CREATED
| /mc/keys
| got event: NODE_CREATED
| /mc/keys
| got event: NODE_CREATED
| /mc/keys/5f8d866c3800d096698dc48b549e4dd3
| got event: NODE_CREATED
| /mc/keys/5f8d866c3800d096698dc48b549e4dd3
| got event: NODE_CREATED
| /mc/entries/5755b475601346aa24776baa12da9dfe
| got event: NODE_CREATED
| /mc/entries/5755b475601346aa24776baa12da9dfe
| got event: NODE_CREATED
| /mc/keys/5755b475601346aa24776baa12da9dfe
| got event: NODE_CREATED
| /mc/keys/5755b475601346aa24776baa12da9dfe
| got event: NODE_EVICTED
| /mc/keys/5f8d866c3800d096698dc48b549e4dd3
| got event: NODE_EVICTED
| /mc/keys/5f8d866c3800d096698dc48b549e4dd3
| got event: NODE_EVICTED
| /mc/keys/5755b475601346aa24776baa12da9dfe
| got event: NODE_EVICTED
| /mc/keys/5755b475601346aa24776baa12da9dfe
|
As you can see all Events come twice for the same Fqn.
Is it a bug or am I doing somthing wrong?
thanks for the help
Marco
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4171425#4171425
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4171425
17 years, 10 months