[Clustering Development] - JPA Entity(hibernate) update is not replicated with REPL_SYNC cache mode
by Miklos Molnar
Miklos Molnar [https://community.jboss.org/people/molnarmi] created the discussion
"JPA Entity(hibernate) update is not replicated with REPL_SYNC cache mode"
To view the discussion, visit: https://community.jboss.org/message/772641#772641
--------------------------------------------------------------
Dear JBoss users,
I am using jboss AS 5.0 and I have the following issue :
I am working on POF with having stateless session bean in cluster (round robin) in front of the hibernate-jpa. The second level cache is turned on.
I have tried all cache configuration (optimistic-shared, pessimistic-shared, optimistic-entity, etc...), but I do experience in all cases that the Entity update does not get synced/invalidated on the other node. When a new item is added to the cache it is always replicated well, but the entity update does not. So this means that on only one node the second level cache is updated on the other node the old data remains. So when after the entity update I make the call to the session beans on the different nodes they return different data for the same entity. On the node which received the entity update call everything is fine, however the other node does not receive any notification about the update. I turned the org.hibernate.cache log to INFO and I see "externalPutRead" command notification when a new item is added to the cache on the other node, however I see nothing when the entity is updated by the other node. My JPA Entity's cache configuration is TRANSACTIONAL and the JPA EntityManager access is done in REQUIRED transaction in the session bean. Do I miss anything?
Thanks for any comment.
regards, Miklos
--------------------------------------------------------------
Reply to this message by going to Community
[https://community.jboss.org/message/772641#772641]
Start a new discussion in Clustering Development at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&con...]
11 years, 5 months
[JBoss AS 7 Development] - AS& Stateless Beans and Annotations
by Bill Rosenberg
Bill Rosenberg [https://community.jboss.org/people/bill.rosenberg] created the discussion
"AS& Stateless Beans and Annotations"
To view the discussion, visit: https://community.jboss.org/message/772682#772682
--------------------------------------------------------------
I am trying to make sure all the annotations on my stateless beans are working. I do not see any of the methods I have annotated with the following being executed. What am I missing?
@Stateless
@Startup
@LocalBean
@TransactionManagement(value=TransactionManagementType.CONTAINER)
@TransactionAttribute(value=TransactionAttributeType.NOT_SUPPORTED)
public class MyBean
{
@Remove
public void remove() {
System.out.println("****HotelEJBBean.remove() called");
}
@PostConstruct
public void PostConstruct()
{
System.out.println("****HotelEJBBean.postConstruct() called");
}
@PreDestroy
public void preDestroy()
{
System.out.println("****HotelEJBBean.preDestroy() called");
}
@PostActivate
public void postActivate()
{
System.out.println("****HotelEJBBean.postActivate() called");
}
@PrePassivate
public void prePassivate()
{
System.out.println("****HotelEJBBean.prePassivate() called");
}
}
--------------------------------------------------------------
Reply to this message by going to Community
[https://community.jboss.org/message/772682#772682]
Start a new discussion in JBoss AS 7 Development at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&con...]
11 years, 5 months
[JBoss AS 7 Development] - SSL Service Startup Problem
by Bill Rosenberg
Bill Rosenberg [https://community.jboss.org/people/bill.rosenberg] created the discussion
"SSL Service Startup Problem"
To view the discussion, visit: https://community.jboss.org/message/772647#772647
--------------------------------------------------------------
I am trying to add SSL to my web app and have the follwoing configuration in standalone.xml with this error:
<subsystem xmlns="urn:jboss:domain:web:1.1" default-virtual-server="default-host" native="false">
<configuration>
<jsp-configuration development="true" smap="false"/>
</configuration>
<connector name="http" protocol="HTTP/1.1" scheme="http" socket-binding="http"/>
<connector name="https" protocol="HTTP/1.1" socket-binding="https" scheme="https" secure="true">
<ssl name="https" password="myPassword" certificate-key-file="../standalone/configuration/lskeystore.jks"/>
</connector>
<virtual-server name="default-host" enable-welcome-root="false">
<alias name="localhost"/>
<alias name="example.com"/>
</virtual-server>
</subsystem>
09:12:31,581 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-1) MSC000001: Failed to start service jboss.web.connector.https: org.jboss.msc.service.StartException in service jboss.web.connector.https: JBAS018007: Error starting web connector
at org.jboss.as.web.WebConnectorService.start(WebConnectorService.java:271)
at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1811) [jboss-msc-1.0.2.GA-redhat-1.jar:1.0.2.GA-redhat-1]
at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1746) [jboss-msc-1.0.2.GA-redhat-1.jar:1.0.2.GA-redhat-1]
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110) [rt.jar:1.7.0]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603) [rt.jar:1.7.0]
at java.lang.Thread.run(Thread.java:722) [rt.jar:1.7.0]
Caused by: LifecycleException: Protocol handler initialization failed: java.io.IOException: Alias name jboss does not identify a key entry
at org.apache.catalina.connector.Connector.init(Connector.java:985)
at org.jboss.as.web.WebConnectorService.start(WebConnectorService.java:267)
... 5 more
--------------------------------------------------------------
Reply to this message by going to Community
[https://community.jboss.org/message/772647#772647]
Start a new discussion in JBoss AS 7 Development at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&con...]
11 years, 5 months