[Datasource Configuration] - Is JBOSS 4.0.5GA is Generating Incorrect SQL?
by smodou
I have the following bean definition in jbosscmp-jdbc.xml:
<entity>
| <ejb-name>SeqEJB</ejb-name>
| <datasource>myDataSourceName</datasource>
| <table-name>MYSEQ</table-name>
| <cmp-field>
| <field-name>id</field-name>
| <column-name>id</column-name>
| </cmp-field>
| <entity-command name="oracle-sequence">
| <attribute name="sequence">SchemaName.General_Seq</attribute>
| </entity-command>
| </entity>
|
JBOSS Generates the following create statement:
{call INSERT INTO MYSEQ(id, ) VALUES (SchemaName.General_Seq.NEXTVAL, ) RETURNING id INTO ? }
Which leads to the following SQLException:
anonymous wrote : java.sql.SQLException: ORA-06550: line 1, column 32:
| PL/SQL: ORA-01747: invalid user.table.column, table.column, or column specification
| ORA-06550: line 1, column 7:
| PL/SQL: SQL Statement ignored
Am I doing something wrong? Any help will be most appreciated.
regards,
Modou.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3988989#3988989
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3988989
19Â years, 5Â months
[JBoss Seam] - Where is the database?
by seamguy
I have a simple address book seam application that runs in Tomcat using JBoss embedded EJB3.0. I have a stock persistence.xml:
<persistence>
| <persistence-unit name="userDatabase">
| <provider>org.hibernate.ejb.HibernatePersistence</provider>
| <jta-data-source>java:/DefaultDS</jta-data-source>
| <properties>
| <property name="hibernate.hbm2ddl.auto" value="create-drop"/>
| </properties>
| </persistence-unit>
| </persistence>
The datasource is java:/DefaultDS, but where is the actual database defined? Is the database HSQL? MYSQL? Where is it? How do I access it?
I realize this may be my ignorance of EJB3, but I have no idea where the default data source is defined, and I would like to access the database.
Thanks
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3988988#3988988
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3988988
19Â years, 5Â months
[JBoss AOP] - Re: How do you use EnableLoadtimeWeaving for a Windows Servi
by sweetvenkat
"kabir.khan(a)jboss.com" wrote : It looks like he is setting an environment property, and referencing that when using the jbosservice to add the new service
Kabir;
I am not getting how he setup the environment. I am using JBOSS IDE 1.5 + JBOSS 4.0.5.GA. I am trying to call a bisiness method thru remote interface of a simple EJB3 session bean. When a business method in this bean is called, i would like to intercept this method to do some background security processing.
I deployed testinstallation.aop, testinstallation.ejb3 and testinstallation.war on to jboss 4.0.5.ga server thru jboss-ide.
testinstallation.aop
----MyInterceptor
----META-INF/jboss-aop.xml
testinstallation.war
---WEB-INF/classes/TestStatelessEJBServlet
---WEB-INF/web.xml
---WEB-INF/lib/
testinstallation.ejb3
---TestStateless.class
---TestStatelessBean.class
---jndi.properties
This is my package structure. i did not ear this. I uploaded these 3 onto my jboss server on localhost.
I downloaded jboss-aop-1.5.2. from and unzipped it.
1. I copied jboss-aop-1.5.2/jboss-40-install/jboss-aop-jdk50.deployer onto jboss-4.0.5.GA/sever/default/deploy
2. I opened jboss-4.0.5.GA/server/default/deploy/deploy/jboss-aop.jbk50.deployer/META-INF/jboss-service.xml and set EnableLoadtimeWeaving to true.
3. I copied jboss-aop-1.5.2/lib-50l/pluggable-instrumentor.jar onto jboss-4.0.5.GA/bin
4. I opened jboss-4.0.5.GA/bin/run.bat and
set JAVA_OPTS=%JAVA_OPTS% -Dprogram.name=%PROGNAME% -javaagent:jboss-aop-jdk50.jar
5. I opend debug mode thru JBOSS-IDE and the server threw an exception
Problem creating service jboss.aop:service=AspectManager
java.lang.NoClassDefFoundError: org/jboss/aop/standalone/PluggableInstrumentor
6. I invoked the servelt thru my browser and the business method in session bean was excuted fine. But, inteceptor was not executed.
Kabbir, can you pls let me know where the mistake is. We strongly depend on jboss-aop in our project.
Thank you very much in advance.
Eswarrao Ankamreddy
eswarrao_ankamreddy(a)yahoo.com
---
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3988981#3988981
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3988981
19Â years, 5Â months