[jboss-user] [EJB 3.0] - Re: Primary key generator best practices? (Postgres specific

2007-06-06 Thread asack
Sorry, one more question, the default strategy for the PostgresDialect is Sequence yet the table as I see it so far does not contain a table_column_sequence attribute. I noticed that sometimes Hibernate uses a hibernate_sequence variable in postgres to manage a table (but no others)so I'm

[jboss-user] [EJB 3.0] - Re: Primary key generator best practices? (Postgres specific

2007-06-06 Thread asack
Appologizes for the double post!! View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4051913#4051913 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4051913 ___ jboss-user mailing li

[jboss-user] [EJB 3.0] - Re: Primary key generator best practices? (Postgres specific

2007-06-06 Thread asack
Has anyone ran into this before? What has happened is that after the 45th entry, the 4th one got deleted and then reused on the ensuing merge() call. Now Hibernate is picking the 5th entry which is already taken and as such I get an EntityExists exception. Also, the AUTO strategy for Postgres

[jboss-user] [EJB 3.0] - Re: Primary key generator best practices? (Postgres specific

2007-06-06 Thread asack
Has anyone ran into this before? What has happened is that after the 45th entry, the 4th one got deleted and then reused on the ensuing merge() call. Now Hibernate is picking the 5th entry which is already taken and as such I get an EntityExists exception. Also, the AUTO strategy for Postgres

[jboss-user] [EJB 3.0] - Re: Primary key generator best practices? (Postgres specific

2007-06-05 Thread asack
"asack" wrote : "kpiis" wrote : "asack" wrote : The other thing I find odd is that Hibernate attempts to make it a integer during auto creation of the table instead of a SERIAL type. Why is that? | | Can you provide the analogue of serial type in Java? |

[jboss-user] [EJB 3.0] - Re: Primary key generator best practices? (Postgres specific

2007-06-05 Thread asack
"kpiis" wrote : "asack" wrote : The other thing I find odd is that Hibernate attempts to make it a integer during auto creation of the table instead of a SERIAL type. Why is that? | Can you provide the analogue of serial type in Java? "The type names serial and ser

[jboss-user] [EJB 3.0] - Re: Primary key generator best practices? (Postgres specific

2007-06-05 Thread asack
The other thing I find odd is that Hibernate attempts to make it a integer during auto creation of the table instead of a SERIAL type. Why is that? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4051452#4051452 Reply to the post : http://www.jboss.com/index.

[jboss-user] [EJB 3.0] - Re: Primary key generator best practices? (Postgres specific

2007-06-05 Thread asack
Thanks guys. Let me ask you this, can lack of VACUUMing cause primary key generation to screw up? Also why isn't AUTO appropriate (which should be database agnostic)? SEQUENCE stuff isn't really right for MySQL...or I thought? View the original post : http://www.jboss.com/index.html?module=b

[jboss-user] [EJB 3.0] - Primary key generator best practices? (Postgres specific)

2007-06-04 Thread asack
Guys, we are using postgres 8.1.3 for our application and running into a lot of problems - mainly dealing with primary key management. I have tracked down one issue in that our current configuration does not use the autovacuum stuff in postgres to cleanup the database over a lot of transactions

[jboss-user] [EJB 3.0] - Re: How do I send an email inside an EJB3 Session Bean

2007-04-14 Thread asack
"mrchit_2000" wrote : Hi, | How do I inject the resource? Any library I need to download? | I tried to do this but it did not work. | | @Resource | | private javax.mail.Session session; | | | It complains javax.mail.Session is not found. | | | Thanks a lot, | LNgo Yo

[jboss-user] [EJB 3.0] - Re: Interceptors broken?

2007-04-11 Thread asack
"bdecoste" wrote : Interceptors are only triggered if the call goes through the ejb container. If you make a call from within a bean to another of the bean's methods, it's a simple java invocation - the call does not go through the container and is not intercepted. [/quote | | Which is a bu

[jboss-user] [EJB 3.0] - Interceptors broken?

2007-04-09 Thread asack
I have the following: @Stateless public class SomeSLSB { @Interceptors(SomeInterceptorA.class) public someMethod() someOtherMethod() @Interceptors(SomeInterceptorB.class) public someOtherMethod() } Can someone please tell me with 404GA why when I call s

[jboss-user] [EJB 3.0] - Re: @EJB annotation injection broken in 4.0.5.GA

2007-04-09 Thread asack
"doktora" wrote : Has anyone had this problem? | | I just ported an app to 4.0.5.GA and none of the @EJB annotations inject their beans. | I've searched in jira/forum/google and have found only one other place where someone reported this problem on the sun developers forums. | | regar

[jboss-user] [EJB 3.0] - Re: [Bug?] @EJB versus JNDI lookup problems within SLSBs

2007-03-20 Thread asack
Should I file this because I'm at a complete lost on why JBoss EJB3 container has trouble injecting local interfaces within the same EAR file? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4029964#4029964 Reply to the post : http://www.jboss.com/index.html?m

[jboss-user] [EJB 3.0] - Re: Invoke remote method without remote interface

2007-03-20 Thread asack
"pkles" wrote : Hi everybody, | | I've been struggling for the last 2 days trying to find out how to invoke a remote method of an EJB without having the remote interface on the client. | | For example, is it possible to do something like this?: | | Object obj = ctx.lookup("myEjb");

[jboss-user] [EJB 3.0] - Re: Bundle jars within EAR?

2007-03-20 Thread asack
"oskar.carlstedt" wrote : Hi All!! | | Thanks for all replies. I think it is very important to "solve" this classloader inheritance issue, especially in isolated mode. AFAIK in Apache Tomcat it is possible to "override" jars in the libs folder when deploying a war file. Why can't I do this

[jboss-user] [EJB 3.0] - [Bug?] @EJB versus JNDI lookup problems within SLSBs

2007-03-19 Thread asack
I have 4.0.4.GA isolation/call by value on. Let me start simple, I have an EAR with a simple servlet WAR and a JAR containing one SLSB and its local implementation. The SLSB is bound to some place in JNDI space: @Stateless @LocalBinding ( jndiBinding="blah") public class HelpMe implements IHel

[jboss-user] [EJB 3.0] - Re: Bundle jars within EAR?

2007-03-19 Thread asack
"oskar.carlstedt" wrote : Deploying the same file again, but without the jars log4j and commons-logging. Wolla!!, It seems to work. | | Isn't this a classloader bug/error? What I mean is. The files I put in my ear are those I want to use, especially in isolated mode. It shall not matter if

[jboss-user] [EJB 3.0] - Re: Help! ClassCastException: $Proxy?? Issue

2007-03-19 Thread asack
More than likely you are returning the object and not the INTERFACE (in this the remote one) to access the bean. You never deal with AddressFAcadeRemote you would deal with the remote interface it implements. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=402

[jboss-user] [EJB 3.0] - Re: Is it a bug? ClassCastException for org.jboss.remoting.I

2006-11-16 Thread asack
Where is your interface class for your EJB3 located? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3986719#3986719 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3986719 ___ jb

[jboss-user] [EJB 3.0] - Stateless session bean basics

2006-11-16 Thread asack
If I have two stateless session beans, A and B, in one jar deployed within an EAR (only module of the EAR). I have the local interfaces of A and B part of the JAR and in the same package as the stateless session beans. When I try to inject B into A via @EJB3, it seems that the classloader can't

[jboss-user] [Installation, Configuration & Deployment] - Ear deployer and CallByValue

2006-11-15 Thread asack
If I have an EAR with multiple EJB3 modules in it, and call by value is set, does that mean every call is marshalled or does that only apply to communcation between two different isolated EARs? My understanding is its the latter. That modules within the same isolated EAR are local calls. Than

[jboss-user] [JCA/JBoss] - JBoss, JCA, and Siebel CRM?

2006-11-15 Thread asack
Anyone integrate with a Siebel CRM system using JBoss and some JCA connector? I have a potential project that I'm investigating and trying to see if I can use JBoss to integrate properly (EJB3 application talking to Siebel). Any advice would come much appreciated? View the original post : ht

[jboss-user] [EJB 3.0] - Re: Case sensitive queries?

2006-10-05 Thread asack
"asack" wrote : It seems that queries using EJB3 are case insensitive, i.e if I do: | | em.find(class, PK) or em.find(class, pk) they are equivalent (database is MySQL). | | Is there anyway to add case sensitivity? | | Thanks! Crap this maybe MySQLdamn it...never

[jboss-user] [EJB 3.0] - Case sensitive queries?

2006-10-05 Thread asack
It seems that queries using EJB3 are case insensitive, i.e if I do: em.find(class, PK) or em.find(class, pk) they are equivalent (database is MySQL). Is there anyway to add case sensitivity? Thanks! View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3976344#3976

[jboss-user] [Installation, Configuration & Deployment] - Re: How do I load a resource (my.properties) file from the d

2006-09-09 Thread asack
Wow, this is exactly what Im looking for as well! Cool... View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3970595#3970595 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3970595

[jboss-user] [Installation, Configuration & Deployment] - How do I find resources outside my deployed JAR?

2006-09-09 Thread asack
I want to have a configuration file outside my application that gets read during runtime. I have an EJB3 jar that gets deployed under my server/default/deploy. I have a class in that jar that needs to read this file. Using the JMX console, this class is part of UCL3 repo. I *thought* if I st

[jboss-user] [EJB 3.0] - Re: Classloading scope during @PostConstruct lifecycle call

2006-09-05 Thread asack
Anyone...pretty please on sugar on top...this is probably a bug and I would file a JIRA but I want ot make sure its not my configuration. Again, its seems classloading scope during lifecycle call backs do not incorporate over the EAR the Java module is in. View the original post : http://www.j

[jboss-user] [EJB 3.0] - Classloading scope during @PostConstruct lifecycle call with

2006-09-01 Thread asack
404GA, CallByValue/Scoped EArs was selected during install, XP SP2 I have a SLSB and I'm trying to grab a resource using the getResourceAsStream call (at least indirectly within a JAR packaged in my EAR via a Class-Path MANIFEST entry). I noticed that unless I set the ContextClassLoader to the

[jboss-user] [Installation, Configuration & Deployment] - Re: Deployment order - dependencies

2006-08-30 Thread asack
"georgesberscheid" wrote : | How do I force the Deployment service to deploy a EJB JAR file before a resource adapter RAR file? | | I have a EAR file that contains a .jar file with EJB3s and a @Service MBean. The EAR file also contains a RAR file with a resource adapter that looks up tha

[jboss-user] [Installation, Configuration & Deployment] - Re: Writing files in deploy dynamically?

2006-08-23 Thread asack
"asack" wrote : Is there a way to access and/or write resources such as mail-service.xml from my application deployed under JBoss without explicit filesystem path references? | | i.e. is there management interfaces for JBoss itself? (like if I want to find out waht port Tomcat

[jboss-user] [Installation, Configuration & Deployment] - Writing files in deploy dynamically?

2006-08-22 Thread asack
Is there a way to access and/or write resources such as mail-service.xml from my application deployed under JBoss without explicit filesystem path references? i.e. is there management interfaces for JBoss itself? (like if I want to find out waht port Tomcat is running on) View the original pos

[jboss-user] [Installation, Configuration & Deployment] - Re: Configuring log4j.xml for different logger levels on Con

2006-08-21 Thread asack
Have you read the log4j WIKI pages? :D View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3966541#3966541 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3966541 ___ jboss-user mail

[jboss-user] [Installation, Configuration & Deployment] - Re: Classloader separation between Webtier, EJBs and Contain

2006-08-21 Thread asack
"worenk" wrote : | 1) We are using several 3rd party libs that the JBoss container itself is using another version of (in server/default/lib). We'd prefer if JBoss libraries would not be visible to our applications, so we can use our own versions. Is this possible? | I'm pretty you can't

[jboss-user] [EJB 3.0] - Re: How do I share entity beans across scoped EARs?

2006-08-21 Thread asack
Wow, my bad...should have tried instead of asking...yeah that kinda worked. I didn't deploy Entity beans but I did deploy a SLSB via a jar in deploy. I will assume that it will have global scope across JARs. Neato View the original post : http://www.jboss.com/index.html?module=bb&op=view

[jboss-user] [EJB 3.0] - Re: How do I share entity beans across scoped EARs?

2006-08-21 Thread asack
But that won't get tehd eployer to register it with the EJB container...right? Alright, I'll try it but I doubt this will work. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3966471#3966471 Reply to the post : http://www.jboss.com/index.html?module=bb&op=po

[jboss-user] [EJB 3.0] - Re: How do I share entity beans across scoped EARs?

2006-08-21 Thread asack
There is no way to do this other than packaging the entity beans with each EAR? I mean why have identical classes laying around in each EAR... I suppose I'm asking is there a generic way to deploy EJBs that have global scope? I suspect the answer is no but I can see this as a very useful featu

[jboss-user] [EJB 3.0] - How do I share entity beans across scoped EARs?

2006-08-19 Thread asack
I have set of common objects that represent records in my database. I want multiple EAR applications to be able to reference them. Do I need to package these entity beans with each EAR? Right now I have one library in the deploy directory (JAR) that is accessible across EARs but I'm assuming i

[jboss-user] [EJB 3.0] - Re: Why isn't @Predestory honored in @Stateless beans as wel

2006-08-08 Thread asack
"wolfc" wrote : @PreDestroy works per instance (EJB3 4.5.1 last paragraph) Now when you undeploy an application (which in effect should tear down the various instances in the session, no?)...though with that said I do realize that after reading the above paragraph, I suppose application undeploy

[jboss-user] [EJB 3.0] - Re: Why isn't @Predestory honored in @Stateless beans as wel

2006-08-06 Thread asack
"[EMAIL PROTECTED]" wrote : it is our implementation not the spec. Great...you do realize Bill that's about the worse possible position to take. Why have the spec then? I thought one of JBoss's main tenets is to be spec compliant. Its bad enough different implementations of a Java EE platform

[jboss-user] [EJB 3.0] - Re: Why isn't @Predestory honored in @Stateless beans as wel

2006-08-06 Thread asack
"[EMAIL PROTECTED]" wrote : You misspelled that so often I began thinking "what the hell is this PreDestory annotation? I never heard of it, I need to look that up"... even the subject misspells it :) Yeah, whoops, damn, weirdI mean PREDESTROY, sorry! :D Just frustrated with this behavior

[jboss-user] [EJB 3.0] - Re: Why isn't @Predestory honored in @Stateless beans as wel

2006-08-04 Thread asack
I mean at the bare minimum, if you UNDEPLOY your stateless session bean, @PreDestory needs to be called. My question is @PreDestory meant to be a per instance of a bean or when the entire pool is destroyed you call the @PreDestoryI'm not sure what the spec group was thinking here with respe

[jboss-user] [EJB 3.0] - Re: Why isn't @Predestory honored in @Stateless beans as wel

2006-08-02 Thread asack
I can probably work around it too but I just want to understand the @Predestroy lifecycle callback a little bit better! Thanks! View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3962487#3962487 Reply to the post : http://www.jboss.com/index.html?module=bb&op=po

[jboss-user] [EJB 3.0] - Re: Why isn't @Predestory honored in @Stateless beans as wel

2006-08-02 Thread asack
Hi wolf and Bill (nice talk at JavaOne btw): As per section 4.5.1 in the ejb-3_0-fr-spec-ejbcore entitled, "Stateless Session Bean State Diagram", see Figure 6. And I quote from the spec: "When the container no longer needs the instance (usually when the container wants to reducethe number of

[jboss-user] [EJB 3.0] - Re: Why isn't @Predestory honored in @Stateless beans as wel

2006-08-01 Thread asack
Uggh, shall I file a JIRA incident on this? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3962355#3962355 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3962355 ___ jboss-user

[jboss-user] [EJB 3.0] - Why isn't @Predestory honored in @Stateless beans as well as

2006-08-01 Thread asack
Easy question, as per spec the @Predestory lifecycle call should be called when the Session bean is undeployed. Follow questoin, why when I undeploy an EJB @Stateless, the NamingContexts still remain in JNDI? Thanks! View the original post : http://www.jboss.com/index.html?module=bb&op=viewto