[jboss-user] [Installation, Configuration & Deployment] - howto headless install of ejb3 profile?

2007-02-28 Thread fbadt
http://www.jboss.com/index.html?module=bb&op=viewtopic&t=98757&start=-10&postdays=postDays&postorder=postOrder&highlight=highlight how can the jems installer be used to install headless and the ejb3 profile? don't see the command line options and the above URL says "headless" is broken. View the

[jboss-user] [EJB 3.0] - Datasource config files?... how to? docs?

2007-02-20 Thread fbadt
Anyone have link for writting config xml files for datasources? 1: the JBoss way for all applications 2: the J2EE5 way in the EAR file View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4019429#4019429 Reply to the post : http://www.jboss.com/index.html?module=bb&

[jboss-user] [JNDI/Naming/Network] - calling session bean from WAR + session bean interfaces loca

2007-02-19 Thread fbadt
There is an EAR with several EJB3 JAR files (session and entity) and a WAR. The WAR needs to call the session beans (and they need to have Persistent context injection). Any code snippets that show how to do this? What needs to be configured how/where? in web.xml? Do the EJB jars need to be

[jboss-user] [JBossWS] - Must a @Webservice also be a session bean?

2007-02-19 Thread fbadt
Must a @Webservice also be a session bean? And why? Thank you, View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4018964#4018964 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4018964 __

[jboss-user] [Security & JAAS/JBoss] - java-sig CAS project integration for SSO

2007-02-09 Thread fbadt
http://www.ja-sig.org/wiki/dashboard.action Anyone have docs and real world experience to convey on using CAS in JBoss? Looks easy enough to setup on a "per WAR basis" What is needed is HowTo set it up at the server level so all deployed WAR/EAR files use it. Maybe a system-wide JAAS plugin s

[jboss-user] [JBossWS] - need example: webservices client/server using UDDI ??

2007-01-31 Thread fbadt
Anyone have a "hello world" source code example that illustrates: 1: An EJB3 session bean as a webservice registering with UDDI? 2: A webservices client (J2EE5) using UDDI to get to a web service? Thanks! View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4008834#4

[jboss-user] [JNDI/Naming/Network] - unpacked WAR access to datasource - not found

2007-01-23 Thread fbadt
jboss 4.04 Installed XWiki as an inpacked WAR in the server/deploy directory. The web.xml has the following entry: DB Connection java:jdbc/XWikiDS javax.sql.DataSource Container What needs to be in what config file for the datasource to be found? I woul

[jboss-user] [EJB 3.0] - Re: query.getResultList(); <= contains the same instance X t

2006-11-15 Thread fbadt
Turns out what was thought to be the PK column was not. A PK on a sequence table was created and the former "pk" was used to group results on a common value. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3986326#3986326 Reply to the post : http://www.jbos

[jboss-user] [EJB 3.0] - Re: query.getResultList(); <= contains the same instance X t

2006-11-09 Thread fbadt
In this case, there can, and often will, be more than one row that should be returned by getResultList (thus the use of this method not getSingleResult) The lookup is not done by PK. It is done in a where clause like the below. There should be 10 rows / elements in the result; and there are 10

[jboss-user] [EJB 3.0] - Re: Writting ejb3 session bean + howto session bean lookup?

2006-11-09 Thread fbadt
So when is the name BookTestBean.class.getSimpleName() + "/remote" vs "BookTestBean" vs "com..BookTestBean"? I have seen docs that refer to all of these ways. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3984642#3984642 Reply to the post : http://www

[jboss-user] [EJB 3.0] - query.getResultList(); <= contains the same instance X times

2006-11-09 Thread fbadt
The code has a call to "query.getResultList();" The returned List has 10 entries for the 10 rows in the database; however, Each of the 10 entries in the List is the same instance reference. This is the first entered row in the DB. There should be 10 difference references to 10 EJBs. What co

[jboss-user] [EJB 3.0] - Re: POJO's in separate jars

2006-11-09 Thread fbadt
I have two JAR's that where this approach works fine. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3984623#3984623 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3984623 ___ j

[jboss-user] [EJB 3.0] - Re: EntityManagers and DAOs

2006-11-09 Thread fbadt
Watch out for memory leaks in threads. I handled resources in a BEA deployed app with thread locals. This the threads come from a cache, the thread local will hang onto the reference, to whatever you put into it, even after the session bean call is done. View the original post : http://www.

[jboss-user] [EJB 3.0] - Re: Writting ejb3 session bean + howto session bean lookup?

2006-11-08 Thread fbadt
Hmm what role does code like below play? I do not see anywhere that JBoss is reporting something with these names (specifically the '/local' and '/remote') Also, in the case of injecting a remote, how can the specific host, server etc... be specified? http://www.laliluna.de/ejb-3-tutorial-

[jboss-user] [EJB 3.0] - how to ? entitymanager refresh gets a dirty read

2006-11-07 Thread fbadt
how can I make Entity Manager get a dirty read from the db? not get a dirty read from the db? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3983928#3983928 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3983928 ___

[jboss-user] [EJB 3.0] - Re: JBoss 4.0.5 EJB3 Deploy need server restart ?

2006-11-07 Thread fbadt
I have to restart the 4.0.4 to do a redeploy at all. Hot redeploy fails... is this related? Have you been able to hot redeploy in 4.0.4 ? 4.0.5? at all? how about in netbeans (6.0 daily)? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3983921#3983921 Reply

[jboss-user] [EJB 3.0] - Writting ejb3 session bean + howto session bean lookup?

2006-11-07 Thread fbadt
There is a web service (stateless session bean with annotations) that needs to call another session bean with annotations. 1. do ejb3 session beans need to have local/remote interfaces like ejb1.4? 2. how can sessionbean1 lookup sessionbean2? The below code results in an exception that sessionb

[jboss-user] [EJB 3.0] - Re: CMP EntityManager flush and Dirty READ/WRITE

2006-11-06 Thread fbadt
1. Looks like they can :)! The DBA (informix 9.4) indicated the connection was set for READ COMMITTED and the transaction was not yet committed however the trigger on insert would run prior to the commit. I just would not be able to get the data out of a table that was populated by the trigger

[jboss-user] [EJB 3.0] - CMP EntityManager flush and Dirty READ/WRITE

2006-11-03 Thread fbadt
We have a Stateless Session Bean that REQUIRES a new transaction for each of its methods. The session bean passes off work to several delegate objects that are also given a reference to the inject Entity Manager. These delegates do an em.flush to update the database (informix 9.4 with Datadire

[jboss-user] [Persistence, JBoss/CMP, Hibernate, Database] - howto? maually set PK / setID for new rows

2006-10-16 Thread fbadt
For our project, there is the need to manually call the setID for inserted rows. How can this be done? Especially staying within the EJB3 spec/API's Is it as simple as new MyObject myObject.setID(4); em.persist(myObject)? What should be used for GenerationType. in this case? View the origin

[jboss-user] [Persistence, JBoss/CMP, Hibernate, Database] - Re: Entity beans not autodeployed : javax.ejb.EJBException:

2006-10-05 Thread fbadt
In our case, someone had deployed both the EAR and the JAR from inside the EAR. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3976396#3976396 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3976396 ___

[jboss-user] [EJB 3.0] - Re: using GenerationType.TABLE - ERROR [MultipleHiLoPerTable

2006-09-21 Thread fbadt
Switched to datadirect drivers from Informix ones and things seem to work fine now. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3973265#3973265 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3973265 __

[jboss-user] [EJB 3.0] - Re: using GenerationType.TABLE - ERROR [MultipleHiLoPerTable

2006-09-21 Thread fbadt
Switched to datadirect drivers from Informix ones and things seem to work fine now. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3973266#3973266 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3973266 __

[jboss-user] [EJB 3.0] - Re: using GenerationType.TABLE - ERROR [MultipleHiLoPerTable

2006-09-20 Thread fbadt
Right. Use "FOR UPDATE" to get a row lock. The hibernate code appears to do this so it can udpate the counter in an atomic transaction. That seems fine. Not sure what you are trying trying to convey. Can you restate or email me in private? View the original post : http://www.jboss.com/ind

[jboss-user] [EJB 3.0] - Re: using GenerationType.TABLE - ERROR [MultipleHiLoPerTable

2006-09-19 Thread fbadt
yup. It is my DB. I can get to it fine with the same ID/pass via a test program to just select from the table, without "for update" and isql also. * note: using - strategy=GenerationType.TABLE and informix drivers from http://www14.software.ibm.com/webapp/download/search.jsp?go=y&rs=ifxjdbc He

[jboss-user] [EJB 3.0] - using GenerationType.TABLE - ERROR [MultipleHiLoPerTableGene

2006-09-19 Thread fbadt
using a table generator per the below link: https://blueprints.dev.java.net/bpcatalog/ee5/persistence/primarykeys.html The table has a value of type Integer and this matches the get/set in the pojo. The error coming back is: ERROR [MultipleHiLoPerTableGenerator] could not read or init a hi value

[jboss-user] [EJB 3.0] - Re: entity tutorial with @Id @GeneratedValue(strategy=Genera

2006-09-19 Thread fbadt
Anyone seen this and hopefully have a fix with informix. ver 9.4 View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3972651#3972651 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3972651 _

[jboss-user] [Persistence, JBoss/CMP, Hibernate, Database] - Re: sequences and Long / long vs int / Integer

2006-09-18 Thread fbadt
Opps.. forgot to check the box for "notify on reply" View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3972307#3972307 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3972307 ___ jb

[jboss-user] [Persistence, JBoss/CMP, Hibernate, Database] - sequences and Long / long vs int / Integer

2006-09-18 Thread fbadt
A DBA has created a sequence (Long type) and set a cap on its max value so it falls within the range of Integer. The PK column types are int; so, this all works fine for values; however EJB3 CMP tries to stuff the Long sequence into the setId(Integer id) and; of course, fails. Is there an

[jboss-user] [Persistence, JBoss/CMP, Hibernate, Database] - Entity beans not autodeployed : javax.ejb.EJBException: java

2006-09-16 Thread fbadt
"all of a sudden" EJB3 CMP entity beans are failing with: "javax.ejb.EJBException: java.lang.IllegalArgumentException: Unknown entity: __" when I call em.persist(MyCMPBean) from the session bean. Don't think it matters but... the Session Bean is a Stateless EJB as a webservice. All beans are do

[jboss-user] [Security & JAAS/JBoss] - Re: Embeddable Ejb problem : javax.ejb.EJBException: java.l

2006-09-16 Thread fbadt
Did you ever figure this out or get an answer? I have the same problem "all of a sudden" EJB3 CMP entity beans are failing with the same error you had " javax.ejb.EJBException: java.lang.IllegalArgumentException: Unknown entity: __" when I call em.persist(MyCMPBean) from the session bean. Don

[jboss-user] [JBossWS] - return types that are complex objects with aggregates - jav

2006-08-31 Thread fbadt
There is a webservice that returns a "MyObject" which has two public aggregates : an int and a String. What needs to be done to implement this such that it comes back OK to both a java application and also is represented in the WSDL so that non Java Clients can interact. Part of this question

[jboss-user] [Persistence, JBoss/CMP, Hibernate, Database] - ERROR [STDERR] java.sql.SQLException: Table (my_seq) not sel

2006-08-26 Thread fbadt
Informix 9.4 is reporting ERROR [STDERR] java.sql.SQLException: Table (equifax_seq) not selected in query. and Hibernate is outputing the following from "showsql=true" select my_seq.nextval from systables where tabid=1; This exact same query works fine from iSQL ref: http://publib.boulder.ibm.

[jboss-user] [Persistence, JBoss/CMP, Hibernate, Database] - howto get jdbc connection from PerstenceContext / EntityMana

2006-08-26 Thread fbadt
Given a stateless session bean with an injected PersistenceContext @PersistenceContext() private EntityManager em; How can a new JDBC Connection be retrieved? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3967650#3967650 Reply to the post : http://www

[jboss-user] [Persistence, JBoss/CMP, Hibernate, Database] - Failure to get next in sequence - EBJ3 CMP entity bean

2006-08-25 Thread fbadt
Could you please look at the below errors and suggest what is going on and how to fix it? javax.ejb.EJBException: javax.persistence.PersistenceException: org.hibernate.exception.GenericJDBCException: could not get next sequence value at org.jboss.ejb3.tx.Ejb3TxPolicy.handleExceptionInOurTx(Ejb3T

[jboss-user] [EJB 3.0] - Failure to get next in sequence - EBJ3 CMP entity bean

2006-08-25 Thread fbadt
Could you please look at the below errors and suggest what is going on and how to fix it? javax.ejb.EJBException: javax.persistence.PersistenceException: org.hibernate.exception.GenericJDBCException: could not get next sequence value at org.jboss.ejb3.tx.Ejb3TxPolicy.handleExceptionInOu