[EJB3] - Re: Entity Manager with BMT and Transaction Timeout
by Mads Moelgaard Andersen
Mads Moelgaard Andersen [http://community.jboss.org/people/mda_dk] created the discussion
"Re: Entity Manager with BMT and Transaction Timeout"
To view the discussion, visit: http://community.jboss.org/message/575321#575321
--------------------------------------------------------------
Hi Alexander
Did you ever get an answer to your question?
I have been facing a similar problem. We have an MDB without transaction support that calls a SLSB with BMT. For a long time we've been struggling with the SLSB just seeming to stop execution without throwing any exceptions or otherwise indicating an error. The method called on the SLSB results in sql that last for more than an hour.
At first we had JDBC transactions handle the commit and it seemed to work for the sql but for some reason the SLSB just seemed to stop its execution. Then we read a post indicating that JDBC transacdtions weren't that reliable and this would certainly account for a driver deciding to close a connection without a warning. Consequently we switched to JTA
Althout we programatically set TransactionTimeout to zero, equalling no timeout; on commit we caught arjuna exception indicating the connection to be inactive. After fiddling with the global JTA and setting it to 7200 seconds the long running sql statement executes and commits without exceptions.
This strongly suggests that the global transaction timeout in jboss-service.xml not only sets the default timeout for all JTA transactions also sets the value as the upper limit for all JTA transactions, regardless of what has been programatically set.
There must be someone out there that knows the truth :) and I would very much like to know what's right and wrong to this matter.
Best regards
Mads M Andersen
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/575321#575321]
Start a new discussion in EJB3 at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&cont...]
15 years, 3 months
[Beginner's Corner] - Re: Hot deploying to a local jBoss
by Kevin Sheedy
Kevin Sheedy [http://community.jboss.org/people/kevinsheedy] created the discussion
"Re: Hot deploying to a local jBoss"
To view the discussion, visit: http://community.jboss.org/message/579291#579291
--------------------------------------------------------------
Thanks for the suggestion. However, I don't want to be completely dependent on Eclipse (or even jBoss for that matter). I still want to be able to use Notepad++ with the command line (as well as eclipse). I also want to be prepared for when jBoss goes out of fashion.
I'm looking for best practices on structuring projects in a sensible manner.
I then want to configure jBoss to work with the projects.
Here's the spec for what I want ;) :
1) js, css, images, html & jsp: I want jBoss to read these straight out of source control. When they change, I want jBoss to pick them up straight away without any manual deploying or synching. (DRY principle: I don't want multiple copies of any of these).
2) 3rd party jars: Again, I want jBoss to read these straight out of source control. However, these will rarely change and don't require hot deployment.
3) Servlets and java code specific to this web app: These will change regularly and need hot deployment.
4) Standalone java projects (eg libs & utils specific to the company). This code will change regularly and require hot deployment. This code must be kept separate as it may be common to other web apps also.
Regarding configuring jBoss, I've noticed that versions 4.2.3 and 5.0.1 are quite different.
Any info on the differences, wrt config, would be most welcome.
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/579291#579291]
Start a new discussion in Beginner's Corner at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&cont...]
15 years, 3 months
[Beginner's Corner] - More JBoss-AS 5 clusters and more Apache Virtual Hosts
by Willem Noorduin
Willem Noorduin [http://community.jboss.org/people/willemnoorduin] created the discussion
"More JBoss-AS 5 clusters and more Apache Virtual Hosts"
To view the discussion, visit: http://community.jboss.org/message/575847#575847
--------------------------------------------------------------
: I have configured two JBoss5-AS clusters (cluster1 and cluster2), which are running on two (Linux) servers. Each cluster contains a number of instances
which i created on basis of the production instance (not the all instance).
When I setup a seperate Apache webserver with mod_jk, all is working perfectly. I have been reading about mod_cluster and want to implement it because
it is more versatile than mod_jk. I have successfully implement this for one named virtual host
<VirtualHost *:80>
ServerAdmin mailto:me@host.nl me(a)host.nl
DocumentRoot /content/www.test.nl/data
ServerName http://www.test.nl www.test.nl
ErrorLog logs/test-error_log
CustomLog logs logs/test-access_log combined
<Location /mcm>
SetHandler mod_cluster_manager
</Location>
KeepAliveTimeout 60
MaxKeepAliveRequests 0
ManagerBalancerName testcluster
ProxyPass / balancer://testcluster/
ProxyPassReverse / balancer://testcluster/
AdvertiseFrequency 10
AdvertiseGroup 239.255.100.100:60000
</VirtualHost>
(where there can be a type somewhere, because Paste doesn't seem to work here). The AdvertiseGroup address is the multicast address I started
cluster1 with (so for example ./run.sh -c cluster-node1 -g cluster1 -u 239.255.100.100 ...). If I start the thing up (JBoss nodes and Apache) and I deploy an application, I can see all this in the http://www.test.nl/mcm http://www.test.nl/mcm interface (this is in fact the minimal example named in the documentation of mod_cluster)
The trouble begins when I try to define a second Apache Virtual Host (for example http://www.test2.nl www.test2.nl and try to attach it to cluster2 (the second cluster). First it
doesn't seem to be possible to have two AdvertiseGroup alements here (my first hunch was to ser this to the multicast address of the second cluster).
When I try to throw the mod_cluster configuration in one (default) virtual host, it only sees one cluster (either the one behind 239.255.100.100 or (if I comment
the AdvertiseGroup command), the first that becomes available
The reason that I want two seperate clusters (and not all applications in one cluster) is that we want to administer each cluster independently of each other. Question is thus:
How to setup a multiple named virtual host configuration for apache, where each virtual host connects to a different JBoss-AS5 cluster. Can some one give
a concrete example of such a configuration ?
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/575847#575847]
Start a new discussion in Beginner's Corner at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&cont...]
15 years, 3 months