I will try to get you a simplified example as soon as I can. How does your
testcase work? We can get this to work when we call the session bean from a
remote client, however when we call it from within our jboss server process,
using either the local or remote session bean interface, we get
I am in the process of upgrading from jboss 4.0.5 to jboss 5.1.0 and am getting
NoSuchMethodErrors when accessing my session beans that have methods containing
variable argument lists (...). Is this a know issue for jboss? I see
something similar about weblogic. For example I have this
After further investigation it looks like the HAPartition is never being set.
If I override the method in setHAPartiton in
org.jboss.ha.jmx.AbstractHAServiceMBeanSupport like so:
| public void setHAPartition(HAPartition partition)
| {
| log.info(GOT PARTITION: +
I am using 5.01 and I can get a singleton MBean to deploy using the
-service.xml configuration you describe above.
I need to be able to store state in my MBean so I changed my MBean class to
extend from org.jboss.ha.singleton.HASingletonSupport, but then I get the
following error when
I am currently using jboss 4.0.5 with the jgroups version that ships with it
2.2.7 SP1 using the TCP communication for clustering. I have three nodes in my
cluster and every once in a while two nodes become master and stay master until
I restart one of them. The ips of the three nodes are
I have an entity hierarchy that uses single table inheritance. I want to cache
all entites in that hierarchy. Do I need to put the cache annotation on every
child entity class or just the base entity class??
View the original post :
Here it is:
| DEBUG [SocketServerInvokerThread-172.16.200.111-0][2008-09-18
10:40:50,914][com.squaretrade.category.CategoryManagerSessionImpl]
CategoryManagerSessionImpl.java(114): CAUGHT EXCEPTION WHEN LOOKING UP CATEGORY
| javax.persistence.PersistenceException:
I am using jboss app server 4.0.5 with the version of EJB3 that it ships with(I
am currently unable to upgrade due to project scheduling issues). When I use
SingleTableInheritance and a DiscriminatorFormula with string
DiscriminatorValue's that are not the same length and have more that one
use all the jars in the client directory of your jboss installation
View the original post :
http://www.jboss.com/index.html?module=bbop=viewtopicp=4147019#4147019
Reply to the post :
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4147019
When you use EntityManager.lock, does it hold on to the same database
connection the whole time, not allowing other threads to use that connection??
I seem to be running out of connections in my connection pool, as I am getting
the following exception:
| INFO
That is rather unfortunate as it poses a bit of problem for my company in
that, when we upgrade our production ear, our sessions are lost. Is there
another way around this issue?? Currently we distribute the war to our 3 app
servers in a staggered fashion, allowing for about 2 minutes in
Brian. Thanks for your quick responses. Any time estimate for when JBoss 5
should be out??
View the original post :
http://www.jboss.com/index.html?module=bbop=viewtopicp=4052263#4052263
Reply to the post :
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4052263
does this mean that in newer versions of jboss (4.0.5 and 4.2.0), that if I
have a clustered web app and set the following in context.xml
| Manager pathname=SESSIONS.ser /
|
that when I stop jboss the sessions will not be serialized to the SESSIONS.ser
file and deserialized upon the next
Thanks for the resonse. That's what I'm doing now but I'd like to avoid having
to write delgator methods to access properties from the secondary object from
the primary object in order to make it appear as one object
View the original post :
[EMAIL PROTECTED] wrote : Sorry, I saw the 1st post in this thread and
replied; didn't see the rest of the thread. I'll assume your beans are marked
clustered, either via annotation or in the xml.
|
| RetryInterceptor is not yet available in EJB3. Don't think it would solve
your problem
Is there any way to have a multi-table mapped object where primary table has a
foreign key column to the secondary table?? The reason I want to do this is
because I am dealing with legacy tables and need to have the main primary key
of the object reference the primary key of the primary table,
I'm trying to write some code to evaluate query performance in my ejb3 code. I
was wondering if there was some way to get the actual time that it takes jboss
to load/store /update stuff in the database. Doint this following will NOT
work:
| long t1 = System.currentTimeMillis();
|
anyone??
View the original post :
http://www.jboss.com/index.html?module=bbop=viewtopicp=3992895#3992895
Reply to the post :
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3992895
___
jboss-user mailing list
jboss-user@lists.jboss.org
Does anyone know how to get an EntityManager refernce from withing a statelesss
session bean without using injection?? I have tried the following but with no
success:
| EntityManagerFactory emf = getEntityManagerFactory(MyPersistenceUnitName);
| EntityManager em =
apparently not unless you are using EJB3 RC9 or higher
View the original post :
http://www.jboss.com/index.html?module=bbop=viewtopicp=3991502#3991502
Reply to the post :
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3991502
___
I am having the same problem as konstantin and I am using jboss ejb rc7 on
jboss 4.0.4 GA. I can get it to work if I specify the activation properties in
ejb-jar-xml but not via the annotated verison. I was wondering if anyone got
this to work on the version o jboss I am using or if it does
check out this thread:
http://www.jboss.com/index.html?module=bbop=viewtopicp=3973584
It may have some of the info you are looking for. Also supposedly, in an
upcoming EJB3 release the value of the partition will default to
jboss.partition.name so that you can have the same ejb clustered in
anonymous wrote :
| The approach I was trying to use:
|
| AEntity a = manager.find(AEntity.class, aId);
| manager.lock(a, LockModeType.READ);
|
| I think now it's not the way to go, because it's not atomic: Different
competing threads could adquire an entity representing that
I am trying to access the subject in an ejb3 session bean so that one of the
Subject's Principal's can be used for some auditing information.
My subjects have several different principals including emailAddress and
subjectID. When I make a call to SecurityAssociation.getSubject from within a
Since I have the same ejb's in two different clusters, I am using the jboss.xml
approach with
clusteredtrue/clustered
for each of my sesion beans.
see: http://www.jboss.com/index.html?module=bbop=viewtopict=91189
The jboss failover code does not seem to be working though, and I get the
Thanks Marc. I've notice that the error I mentioned happens sometime only when
one server is brought down, putting the client in a bad state where the cached
stub continuously fails to reconnect properly. The only way to get the client
program to work again when in that state, is to reconnect
I figured out the correct way to do this file after quite a bit of trial and
error:
| jboss
| enterprise-beans
| !-- ProductManagerSessionImpl just one entry for each session
bean and leave out the jndi names--
| session
|
I meant to say that when one of the servers in the partition is brought down I
get a CannotConnectException from the client, so it seems as if the automatic
failover in the client stub is not working. could changing the load balancing
policy fix this??
View the original post :
After looking more closely at the retry interceptor wiki page, I see that it is
geared towards an older ejb, specifically the jboss.xml. Anyone know what this
file would look like for an EJB3.0 Session bean??
View the original post :
If I have an EJB3 SLSB and I want it to be in multiple clusters, how do I
achieve this. The @Clustered annotation seems to tie it to only one cluster,
as the partition name parameter refers to only one partition. Is there some
way I can deploy the same Session Bean in two clusters??
View the
So, I,ve found that this is supposed to be able to be done by using jboss.xml
files in the META-INF directory of your ejb jar file, but I can;t seem to get
it to work
My session implemetation class looks like this:
@Stateless
@Remote(ProductManagerSession.class)
So, I,ve found that this is supposed to be able to be done by using jboss.xml
files in the META-INF directory of your ejb jar file, but I can;t seem to get
it to work
My session implemetation class looks like this:
@Stateless
@Remote(ProductManagerSession.class)
REPOSTED DUE TO JUMBLED XML
So, I,ve found that this is supposed to be able to be done by using jboss.xml
files in the META-INF directory of your ejb jar file, but I can;t seem to get
it to work
My session implemetation class looks like this:
@Stateless
@Remote(ProductManagerSession.class)
additionally, I would like to add that I am using JBoss-4.0.4GA with the EJB3.0
release that came bundled with it
View the original post :
http://www.jboss.com/index.html?module=bbop=viewtopicp=3973454#3973454
Reply to the post :
I am currently usign the JBoss4.0.4 and the EJB3 release that is included with
it. I have been using this
http://docs.jboss.org/jbossas/jboss4guide/r4/html/cluster.chapt.html as my
basis for understanding how jboss clustering works, but I think my
understanding of it may be wrong. I am
There is no way to do this that is ejb3-spec compliant, however, you can use
some hibernate extensions to accomplish this.
1. You need create an id genretor class that implements
org.hibernate.id.IdentifierGenerator implementing the generate method to return
your custom generated pk.
2.
no. not yet, as no one has responded
View the original post :
http://www.jboss.com/index.html?module=bbop=viewtopicp=3957877#3957877
Reply to the post :
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3957877
___
jboss-user mailing
37 matches
Mail list logo