[JBoss-user] [EJB 3.0] - Re: Injecting EntityManager with an interceptor

2006-07-07 Thread sbalmos
Yet again answering myself... See http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3953596 But seriously, like the original poster in that thread, why must I create a separate remote endpoint interface for the interceptor to be called? It shouldn't be necessary. --Scott View the orig

[JBoss-user] [EJB 3.0] - Injecting EntityManager with an interceptor

2006-07-06 Thread sbalmos
Solve one question, end up finding another. ;) I'm trying to get my EntityManager injected into my DAO layer, by specifying the core class of the DAO as an interceptor to my SLSB, which is acting as a SOAP service endpoint (enough buzzwords?). I know by the deployment logs that the interceptor

[JBoss-user] [JBossWS] - Changing endpoint location of EJB JSR-181 service?

2006-07-06 Thread sbalmos
Hi all, I have an EJB-based web service class, written in JSR-181 annotated fashion, named SOAPBackend. This is located inside an EJB-JAR named Backend-Core.jar, which itself is located inside an EAR named Backend.ear (context root /). When the service deploys, it ends up getting deployed to h

[JBoss-user] [EJB 3.0] - Re: Avoiding multiple Hibernate deploys

2006-07-06 Thread sbalmos
Sorry all, disregard this question. Apparently, my IDEA build settings were accidentally including referenced dependent modules (e.g. the entities, and some shared core EJB code) in the packaging. :/ --Scott View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=395

[JBoss-user] [EJB 3.0] - Avoiding multiple Hibernate deploys

2006-07-05 Thread sbalmos
Hi everyone, Next question... I'm using EJB3 persistence for my entity beans. In my EAR, I have about 12 EJB JARs, and 1 persistence JAR. I'm not sure whether I'm just not using a dependency entry in the EJB JAR deployment descriptors or what, but each one of the EJBs seems to redeploy the pers

[JBoss-user] [EJB 3.0] - Re: ejbActivate signature error

2006-07-05 Thread sbalmos
ya, thanks. That's going to be odd to remember, since I work in IDEA. And IDEA adds the throws clauses to the signature whenever you implement the SessionBean interface. I know we don't have to do that with EJB3 annotations. But it's still something to remember if we're working the "old-fashion

[JBoss-user] [EJB 3.0] - ejbActivate signature error

2006-07-04 Thread sbalmos
Hi everyone, I'm trying to deploy some session beans (both stateful and stateless) using the EJB3 deployer, using my existing XML deployment descriptors. However, the deployer always bombs, saying that ejbActivate() has the wrong signature. See below for all code involved: | 15:31:39,005 IN

[JBoss-user] [Persistence, JBoss/CMP, Hibernate, Database] - Deploying doesn't map associations & schema

2006-06-07 Thread sbalmos
Hi all, I'm trying to move over to EJB3 entities, and was attempting a test deployment to the Hypersonic database. The ejb3 deployer recognizes my entity beans, but then does nothing to process the annotations, map associations, or pump out schema updates to the database. Any recommendations?

[JBoss-user] [Installation, Configuration & Deployment] - Re: Dependency problem deploying EJB3 persistence unit

2006-06-07 Thread sbalmos
There was a proper block in the persistence.xml file, which the board decided to swallow, FYI. --Scott View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3949607#3949607 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=39496

[JBoss-user] [Installation, Configuration & Deployment] - Dependency problem deploying EJB3 persistence unit

2006-06-07 Thread sbalmos
Hi all, I'm at a loss on what to fix to handle this. I have an app that used to run under 4.0.3 and standard Hibernate persistence. Yesterday I rewrote the entity classes with annotations and packaged everything up to be EJB3 compatible. However, the deployer always complains about an uninstall

[JBoss-user] [EJB 3.0] - No scheduler service in EJB3 install profile?

2006-06-05 Thread sbalmos
Hi all, Can anyone give any insight why the scheduler service is not included in the ejb3 installer profile? I was upgrading to 4.0.4 GA-p1 tonight, and noticed it wasn't included, which made my test build of some apps of mine blow up. Am I missing some mental screw (probably... :) )? Was it re

[JBoss-user] [Beginners Corner] - Unit testing the Hibernate MBean?

2006-03-07 Thread sbalmos
Hi all, I need some pointers for how to properly unit-test my DAO layer with the Hibernate MBean in JBoss. How does everyone else do it? Do you have a separate MBean config file for a Hibernate MBean which uses the HSQL in-memory database? And that test suite is somehow activated via some spec

[JBoss-user] [Persistence,JBoss/CMP, Hibernate, Database] - Using annotations without EJB3?

2006-01-31 Thread sbalmos
More of a clarification of my last post, but with a better title... Since JBoss 4.0.3SP1 includes hibernate-annotations.jar in the server lib directory in a normal non-EJB3 install, I've been assuming that it can handle annotated entity classes without any mapping files. But when deploying an EA

[JBoss-user] [EJB 3.0] - A few Entity-related questions

2006-01-30 Thread sbalmos
Hi all, I'm trying to get my test EAR application working, and I've got a few questions. Inside my EAR, I've currently got a PAR with all of my entity classes. As I understand it, persistence.xml doesn't follow MBean syntax. So how do I define a dependency on a DataSource MBean, which is create

[JBoss-user] [Persistence,JBoss/CMP, Hibernate, Database] - Configuring Hibernate to use EJB3

2006-01-30 Thread sbalmos
Hi all, Now that I resolved one issue where Hibernate was deploying before my data source was connected (oops), I've got an issue where Hibernate isn't finding my EJB3 annotated entities. Apparently, according to Hibernate's startup messages, it's still looking for POJOs with XML mapping files

[JBoss-user] [Installation, Configuration & Deployment] - Re: Controlling deployment order in EAR

2006-01-30 Thread sbalmos
Took some poking around to get the depends tag right, but I got it. Thanks! --Scott View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3920466#3920466 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3920466 --

[JBoss-user] [Installation, Configuration & Deployment] - Re: Controlling deployment order in EAR

2006-01-29 Thread sbalmos
Okay, jboss-app.xml & application.xml got chewed by the message board. Imagine there are appropriate module tags in both. ;) --Scott View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3920260#3920260 Reply to the post : http://www.jboss.com/index.html?module=bb

[JBoss-user] [Installation, Configuration & Deployment] - Re: Controlling deployment order in EAR

2006-01-29 Thread sbalmos
/news [2006-01-29 12:11:04,236] Module Backend: Module is being deployed, please wait... 12:11:04,352 INFO [EARDeployer] Init J2EE application: file:/Users/sbalmos/IdeaProjects/SimuNex/Backend/SimuNex-Backend.ear 12:11:08,938 INFO [Environment] Hibernate 3.1 12:11:08,964

[JBoss-user] [Installation, Configuration & Deployment] - Controlling deployment order in EAR

2006-01-28 Thread sbalmos
Hi all, I'm wondering if there's any way to control the deployment order of services defined in jboss-app.xml of an EAR. Preferrably, in the order they exist in the XML config. :) My issue is that, in my jboss-app.xml file, I have defined a -ds.xml type service for my JDBC DataSource, and then

[JBoss-user] [JBossWS] - Re: Getting the HttpSession of a SOAP service?

2005-09-22 Thread sbalmos
Hi Thomas, Thanks for the input. I finally got it hammered through my head how simple it is to implement ServiceLifecycle. I couldn't figure out where exactly the ServletEndpointContext came from until a few moments ago. I'll look into maintaining an SFSB over HttpSession. It makes no material

[JBoss-user] [JBossWS] - Re: Getting the HttpSession of a SOAP service?

2005-09-13 Thread sbalmos
Hi Bruno, Yes, I've seen that suggested. One problem - these are POJOs, not session beans. ;) Ehh... well, really, I could write my stuff as beans. It's just that I'm not as comfortable yet with the whole EJB architecture. There are still fuzzy spots in my knowledge and understanding. I could,

[JBoss-user] [JBossWS] - Getting the HttpSession of a SOAP service?

2005-09-12 Thread sbalmos
Hi all, I have some POJO classes configured as SOAP services with JAX-RPC. However, I'd like to get to the HttpSession object of the context that the SOAP service is running under, so that I can maintain session-level data for my service's clients (and hopefully have that session data replicate

[JBoss-user] [Persistence,JBoss/CMP, Hibernate, Database] - Re: Referencing common classes from a HAR

2005-09-09 Thread sbalmos
Hi Norman, I'm curious about this new option in 4.0.3 . So I can define a single Hibernate MBean which handles all HAR files in an EAR. For one thing, say I define that MBean at the EAR level. What would I now put in the HARs' hibernate-service.xml files? Also, I've got things in separate HARs

[JBoss-user] [Installation, Configuration & Deployment] - Re: Defining datasources in webapp config files?

2005-09-06 Thread sbalmos
darran: I realized that after the fact. The point was to include the service definitions with the app, instead of having them outside on their own in the deploy dir. Just keeps things neater, IMO. Andy: THANKS!!! That works perfectly. Personally, the libdir thing doesn't matter to me, since I w

[JBoss-user] [Installation, Configuration & Deployment] - Defining datasources in webapp config files?

2005-09-05 Thread sbalmos
Hi all, I was wondering if it's possible, in any way, to put datasource definition files (-ds.xml & other definitions for JavaMail, LDAP, etc) inside a webapp's EAR / WAR / SAR / whatever package? Or *must* those definition files be separate in the deploy directory? I'm trying to keep my deploy