I changed the deploy folder , and from :
anonymous wrote :
| %JBOSS_HOME%\server\default\deploy
|
i put my web application war under :
anonymous wrote :
| %JBOSS_HOME%\server\default\deploy\jbpm
|
and now no Exception are thrown.
But i need that my app is out of this folder, .. anyone could explain why the EJB is not available out from the JBPM folder at first time you invoke it?.
Could be a missing configuration in my web.xml file for the webapp i use as test?.
Any suggestion will be appreciated :).
T.
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4221462#4221462
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4221462
Emmanuel, I agree; reporting entities is out of scope for Hibernate.
Probably this reporting is best handled by some integration layer in AS, a central registry that we can expose via an MC bean maybe?
The problem comes when we start talking about this notion of extra scanning (==time). As an aside I've got in the back of my mind using MDR as that central authority (currently jboss-metadata has its own scanners again).
More on this when I'm back next week I suppose. I've got to take deeper look at what's currently going on before offering any meaningful solutions. :)
S,
ALR
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4221443#4221443
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4221443
I've been thinking about it a bit more.
Unfortunately, I don't think it should be the job of Hibernate to give that info. Here is my reasoning:
- if an app uses 2 persistence providers (different), then you need to get the entities from both and an app server I think is required to work well with other providers.
So that would mean that the container has to scan the entities (it does it already today via the PersistenceUnitInfo API) and understand the ORM.xml files to extract the list of entities.
thoughts?
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4221442#4221442
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4221442
Another integration issue for Web Beans/JSR299 - this time around JPA.
The JSR299 spec says that any entities (either specified using @Entity or orm.xml) should not be simple beans (i.e. have injection/interception facilities). As per the other integrations with the container, I would like to this via the SPI, and have add this to our JPA integration point
/**
| * Gets the class for each entity in the application
| *
| * @return the entity classes
| */
| public Collection<Class<?>> discoverEntities();
I spoke to Emmanuel - the Class should be a sufficiently unique identifier here.
https://svn.jboss.org/repos/webbeans/ri/trunk/spi/src/main/java/org/jboss...
>From this arise two questions
1) How do we hook into Hibernate to get this info out of it's session configuration (Emmanuel had a couple of ideas)?
2) How do we access the hibernate session configuration from an MC bean, given we know the deployment unit?
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4221440#4221440
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4221440
hi..
using jboss 3.2.5 with hibernate 2.1.7 and oracle 10g, as well as spring 2
we are trying to use jta transaction invoked with spring transaction template called from an ejb statless bean. problem is, we keep getting all ready timed out and marked for rollback.
i suspect it may be becouse i'm also trying to use begin transaction from hibernate interceptor. is that possible? is that allowed?
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4221437#4221437
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4221437