[JBoss Web Services] New message: "Re: Endpoint not registering"
by David Palmer
User development,
A new message was posted in the thread "Endpoint not registering":
http://community.jboss.org/message/520102#520102
Author : David Palmer
Profile : http://community.jboss.org/people/blinder
Message:
--------------------------------------------------------------
> peterj wrote:
>
> Also try changing your sevlet mapping, I don't know if a '*' is allowed:
>
> <servlet-mapping>
> <servlet-name>foobar</servlet-name>
> <url-pattern>/foo</url-pattern>
> </servlet-mapping>
>
>
> Also, drop the listener and the conetext-param. I'm not sure if they are causing a problem or not, but why take a chance when you don't absolutely need them.
hmm, tried both (removing spring's listener) and changing the url pattern, no dice . in the real world i'll have to have spring in there (so i'm glad that wasn't the problem)
--------------------------------------------------------------
To reply to this message visit the message page: http://community.jboss.org/message/520102#520102
16 years, 3 months
[JBoss Cache POJO Edition] New message: "Replication: simplest assumption not working ... with source code ..."
by Ulrich Staudinger
User development,
A new message was posted in the thread "Replication: simplest assumption not working ... with source code ...":
http://community.jboss.org/message/520095#520095
Author : Ulrich Staudinger
Profile : http://community.jboss.org/people/ustaudinger
Message:
--------------------------------------------------------------
Hi there,
I want to use the replication of objects. Unfortunately I do not get it running properly.
I have one server, to which multiple clients connect over JGroups/TCP.
The following classes are the code I use.
Problem description:
The initial lookup in the client succeeds and it contains a snapshot of object when the lookup occured. Later set calls on the server are not updating the object on the client side.
However, when decomment in the server spot [1] and move in the client the find into the loop, then I see that it works.
???
Any help appreciated. I somehow have the impression that the client state is not transferred ...
Thanks,
Ulrich
The Server app:
@PojoCacheListener
public class JbossCacheLayer
{
private transient Cache cache;
private transient CacheModelDelegate cacheModelDelegate;
private transient Node root;
private TransactionManager txManager;
private transient Transaction tx;
private Quotes quotes = new Quotes();
@Attached
public void handleAttached(AttachedEvent event)
{
System.out.println("Attached = " + event.getSource());
}
@Attached
@Detached
@FieldModified
@ListModified
@MapModified
@SetModified
@TransactionRegistered
@TransactionCompleted
public void handleAll(Event event)
{
System.out.println(event);
}
@NodeCreated
public void handleNodeCreated(NodeCreatedEvent event)
{
System.out.println(event);
}
@NodeRemoved
public void handleNodeRemoved(NodeRemovedEvent event)
{
System.out.println(event);
}
@NodeModified
public void handleNodeModified(NodeModifiedEvent event)
{
System.out.println(event);
}
@NodeEvicted
public void handleNodeEvent(NodeEvictedEvent event)
{
System.out.println(event);
}
public JbossCacheLayer()
throws Exception
{
PojoCache pc = PojoCacheFactory.createCache("replSync.xml", true);
pc.addListener(this);
pc.addListener(this, Pattern.compile("pojos/quotes"));
Quotes q = new Quotes();
pc.attach(Fqn.fromString("pojos/quotes"), q);
q = (Quotes)pc.find(Fqn.fromString("pojos/quotes"));
List list = q.getQuotes();
//cache.put(Fqn.fromString("Test"+Math.random()), null);
while(true)
{
q.getQuotes().add("TEST");
q.setRand(Math.random());
// [1] pc.attach(Fqn.fromString("pojos/quotes"), q);
Thread.sleep(1000);
}
}
public static void main(String[] args)
throws Exception
{
new JbossCacheLayer();
}
}
The client app:
public class JbossCacheClient
{
public JbossCacheClient()
throws Exception
{
PojoCache pc = PojoCacheFactory.createCache("replSync.xml", true);
Quotes q = (Quotes)pc.find(Fqn.fromString("pojos/quotes"));
while(true)
{
System.out.println(q.getRand());
System.out.println(q.getQuotes().size());
Thread.sleep(1000);
}
}
public static void main(String[] args) throws Exception
{
new JbossCacheClient();
}
}
--------------------------------------------------------------
To reply to this message visit the message page: http://community.jboss.org/message/520095#520095
16 years, 3 months
[EJB 3.0 Development] New message: "Re: EJB3 Version Targets for AS 6.0 M3"
by John Bailey
User development,
A new message was posted in the thread "EJB3 Version Targets for AS 6.0 M3":
http://community.jboss.org/message/520090#520090
Author : John Bailey
Profile : http://community.jboss.org/people/johnbailey
Message:
--------------------------------------------------------------
What I should have said is, whichever component versions are going to be included in AS 6.0 M3 will need to be integrated with VFS3 prior to the M3 release.
Below are all the files with references to VFS in ejb3 components:
./aop-deployers/src/main/java/org/jboss/aop/asintegration/jboss5/AOPAnnotationMetaDataParserDeployer.java
./concurrency/src/test/java/org/jboss/ejb3/concurrency/test/common/AbstractBootstrapTestCase.java
./core/src/main/java/org/jboss/ejb3/ClassFileFilter.java
./core/src/main/java/org/jboss/ejb3/ClientDescriptorFileFilter.java
./core/src/main/java/org/jboss/ejb3/DeploymentUnit.java
./core/src/main/java/org/jboss/ejb3/Ejb3Deployment.java
./core/src/main/java/org/jboss/ejb3/EJBContainer.java
./core/src/main/java/org/jboss/injection/InjectionContainer.java
./core/src/test/java/org/jboss/ejb3/test/cachepassivation/MockDeploymentUnit.java
./core/src/test/java/org/jboss/injection/test/common/DummyInjectionContainer.java
./deployers/src/main/java/org/jboss/ejb3/deployers/EjbAnnotationMetaDataDeployer.java
./embedded/src/main/java/org/jboss/ejb3/embedded/deployment/EmbeddedEjb3DeploymentUnit.java
./embedded/src/main/java/org/jboss/ejb3/embedded/dsl/DeploymentBuilder.java
./embedded/src/main/java/org/jboss/ejb3/embedded/JBossEJBContainer.java
./endpoint-deployer/src/test/java/org/jboss/ejb3/endpoint/deployers/test/simple/unit/DeployEndpointTestCase.java
./endpoint-deployer/src/test/resources/conf/bootstrap/deployers.xml
./jta-profile/src/test/java/org/jboss/ejb3/jta/profile/test/lookup/unit/LookupTransactionManagerTestCase.java
./profile3_1/src/it/common/src/main/java/org/jboss/ejb3/profile3_1/test/common/AbstractProfile3_1_TestCase.java
./profile3_1/src/it/common/src/main/java/org/jboss/ejb3/profile3_1/test/common/AbstractProfile3_1_TestCase.java
./singleton/src/test/java/org/jboss/ejb3/singleton/test/common/MockDeploymentUnit.java
./timerservice-mk2/src/test/java/org/jboss/ejb3/timerservice/mk2/test/common/AbstractTimerTestCase.java
./timerservice-quartz/src/test/java/org/jboss/ejb3/timerservice/quartz/test/simple/unit/SimpleUnitTestCase.java
./transactions/eclipse-target/tests-classes/instance/deployers.xml
./transactions/src/test/java/org/jboss/ejb3/test/tx/common/AspectDeployment.java
./transactions/src/test/resources/instance/deployers.xml+ +
I will take a look at all the references from tests and see if there is a way to remove the VFS reference all together. Otherwise I will ignore any project that has a test only dependency. I realize all the ejb3/trunk components are standalone, but as long as they are going to be integrated into AS, they will need to be updated. There may be ways we can isolate the change by reducing the number of code paths into VFS and then providing some kind of plugable adapter. I will look into this and let you know what I see.
Below is a list of ejb3 components included by AS (the bold entries are known to reference VFS):
org.jboss.ejb3:jboss-ejb3-api:jar:3.1.0:compile
org.jboss.ejb3:jboss-ejb3-cache:jar:1.0.0:compile
org.jboss.ejb3:jboss-ejb3-common:jar:1.0.1:compile
*org.jboss.ejb3:jboss-ejb3-core:jar:client:1.1.22:compile*
*org.jboss.ejb3:jboss-ejb3-core:jar:1.1.22:compile*
*org.jboss.ejb3:jboss-ejb3-deployers:jar:1.0.0:compile*
org.jboss.ejb3:jboss-ejb3-endpoint:jar:0.1.0:compile
org.jboss.ejb3:jboss-ejb3-ext-api:jar:1.0.0:compile
org.jboss.ejb3:jboss-ejb3-ext-api-impl:jar:1.0.0:compile
org.jboss.ejb3:jboss-ejb3-interceptors:jar:1.0.6:compile
org.jboss.ejb3:jboss-ejb3-jpa-int:jar:2.0.0-alpha-1:compile
org.jboss.ejb3:jboss-ejb3-metadata:jar:1.0.0:compile
org.jboss.ejb3:jboss-ejb3-proxy-clustered:jar:1.0.3:compile
org.jboss.ejb3:jboss-ejb3-proxy-impl:jar:1.0.6:compile
org.jboss.ejb3:jboss-ejb3-proxy-spi:jar:1.0.0:compile
org.jboss.ejb3:jboss-ejb3-security:jar:1.0.1:compile
org.jboss.ejb3:jboss-ejb3-timerservice-spi:jar:1.0.0:compile
*org.jboss.ejb3:jboss-ejb3-transactions:jar:1.0.2:compile* (VFS reference in test only)
org.jboss.ejb3:jboss-ejb3_1:pom:1.0.0:compile
--------------------------------------------------------------
To reply to this message visit the message page: http://community.jboss.org/message/520090#520090
16 years, 3 months