[jboss-user] [EJB 3.0] - Re: Variable argument list in session bean method causes NoS

2009-06-02 Thread ablevine1
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

[jboss-user] [EJB 3.0] - Variable argument list in session bean method causes NoSuchM

2009-06-01 Thread ablevine1
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

[jboss-user] [Clustering/JBoss] - Re: Invocation of startSingleton()

2009-05-20 Thread ablevine1
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: +

[jboss-user] [Clustering/JBoss] - Re: Invocation of startSingleton()

2009-05-19 Thread ablevine1
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

[jboss-user] [Clustering/JBoss] - Two master nodes in the same cluster

2009-01-14 Thread ablevine1
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

[jboss-user] [EJB 3.0] - Entity caching annotation question

2008-10-21 Thread ablevine1
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 :

[jboss-user] [EJB 3.0] - Re: Possible Bug related top DiscriminatorFormula

2008-09-19 Thread ablevine1
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:

[jboss-user] [EJB 3.0] - Possible Bug related top DiscriminatorFormula

2008-09-18 Thread ablevine1
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

[jboss-user] [EJB 3.0] - Re: serialVersionUID mismatch using remote client and jboss-

2008-04-26 Thread ablevine1
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

[jboss-user] [EJB 3.0] - EntityManager.lock and database connections

2007-09-04 Thread ablevine1
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

[jboss-user] [Clustering/JBoss] - Re: session persistence and cluster cache (4.0.3 SP1)

2007-06-07 Thread ablevine1
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

[jboss-user] [Clustering/JBoss] - Re: session persistence and cluster cache (4.0.3 SP1)

2007-06-07 Thread ablevine1
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

[jboss-user] [Clustering/JBoss] - Re: session persistence and cluster cache (4.0.3 SP1)

2007-06-06 Thread ablevine1
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

[jboss-user] [EJB 3.0] - Re: Reverse entity Mapping on a @SecondaryTable

2007-04-19 Thread ablevine1
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 :

[jboss-user] [Clustering/JBoss] - Re: Some Issues with clustering on JBoss 4.0.4 and EJB stub

2007-04-19 Thread ablevine1
[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

[jboss-user] [EJB 3.0] - Reverse entity Mapping on a @SecondaryTable

2007-04-18 Thread ablevine1
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,

[jboss-user] [EJB 3.0] - How to get Query time??

2007-02-07 Thread ablevine1
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(); |

[jboss-user] [EJB 3.0] - Re: How to get EnitityManager in SLSB without injection??

2006-12-11 Thread ablevine1
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

[jboss-user] [EJB 3.0] - How to get EnitityManager in SLSB without injection??

2006-12-08 Thread ablevine1
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 =

[jboss-user] [Clustering/JBoss] - Re: same SLSB in multiple clusters

2006-12-05 Thread ablevine1
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 ___

[jboss-user] [EJB 3.0] - Re: Quartz Bean deployment

2006-12-05 Thread ablevine1
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

[jboss-user] [EJB 3.0] - Re: clustering

2006-11-09 Thread ablevine1
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

[jboss-user] [EJB 3.0] - Re: EntityManager.lock() issues

2006-10-25 Thread ablevine1
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

[jboss-user] [Security JAAS/JBoss] - Getting Subject in EJB3 Session Bean

2006-09-27 Thread ablevine1
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

[jboss-user] [Clustering/JBoss] - Re: Some Issues with clustering on JBoss 4.0.4 and EJB stub

2006-09-25 Thread ablevine1
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

[jboss-user] [Clustering/JBoss] - Re: Some Issues with clustering on JBoss 4.0.4 and EJB stub

2006-09-22 Thread ablevine1
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

[jboss-user] [Clustering/JBoss] - Re: same SLSB in multiple clusters

2006-09-22 Thread ablevine1
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 |

[jboss-user] [Clustering/JBoss] - Re: same SLSB in multiple clusters

2006-09-22 Thread ablevine1
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 :

[jboss-user] [Clustering/JBoss] - Re: Some Issues with clustering on JBoss 4.0.4 and EJB stub

2006-09-22 Thread ablevine1
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 :

[jboss-user] [Clustering/JBoss] - same SLSB in multiple clusters

2006-09-21 Thread ablevine1
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

[jboss-user] [Clustering/JBoss] - Re: same SLSB in multiple clusters

2006-09-21 Thread ablevine1
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)

[jboss-user] [Clustering/JBoss] - Re: same SLSB in multiple clusters

2006-09-21 Thread ablevine1
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)

[jboss-user] [Clustering/JBoss] - Re: same SLSB in multiple clusters

2006-09-21 Thread ablevine1
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)

[jboss-user] [Clustering/JBoss] - Re: same SLSB in multiple clusters

2006-09-21 Thread ablevine1
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 :

[jboss-user] [Clustering/JBoss] - Some Issues with clustering on JBoss 4.0.4 and EJB stub cach

2006-09-20 Thread ablevine1
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

[jboss-user] [EJB 3.0] - Re: EJB 3.0 - PK Generation with GenerationType

2006-09-12 Thread ablevine1
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.

[jboss-user] [JBossCache] - Re: TransactionManager Name not bound?

2006-07-13 Thread ablevine1
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