[jboss-user] [EJB 3.0] - how to debug deployment issues

2010-11-01 Thread Jason Novotny
jnovotny [http://community.jboss.org/people/jnovotny] created the discussion "how to debug deployment issues" To view the discussion, visit: http://community.jboss.org/message/569188#569188 -- Hi, After migrating from Jboss 4.2.3GA to

[jboss-user] [EJB 3.0] - How can I change the default ejb3 jndi name?

2010-10-27 Thread Jose Inacio Silva Junior
Jose Inacio Silva Junior [http://community.jboss.org/people/inacio-silva] created the discussion "How can I change the default ejb3 jndi name?" To view the discussion, visit: http://community.jboss.org/message/568622#568622 -- How can

[jboss-user] [EJB 3.0] - How can I bind a JMS topic to an EJBs ENC?

2010-10-08 Thread johk johk
johk johk [http://community.jboss.org/people/johk] created the discussion "How can I bind a JMS topic to an EJBs ENC?" To view the discussion, visit: http://community.jboss.org/message/565537#565537 -- I have an EJB defined as follows:

Re: [jboss-user] [EJB 3.0] - How to inject EJBs with custom injector?

2010-08-23 Thread Christian Strempfer
Christian Strempfer [http://community.jboss.org/people/christian.strempfer] replied to the discussion "How to inject EJBs with custom injector?" To view the discussion, visit: http://community.jboss.org/message/558541#558541 -- There a

Re: [jboss-user] [EJB 3.0] - How to inject EJBs with custom injector?

2010-08-23 Thread jaikiran pai
jaikiran pai [http://community.jboss.org/people/jaikiran] replied to the discussion "How to inject EJBs with custom injector?" To view the discussion, visit: http://community.jboss.org/message/558533#558533 -- Christian, welcome to the

[jboss-user] [EJB 3.0] - How to inject EJBs with custom injector?

2010-08-23 Thread Christian Strempfer
Christian Strempfer [http://community.jboss.org/people/christian.strempfer] created the discussion "How to inject EJBs with custom injector?" To view the discussion, visit: http://community.jboss.org/message/558529#558529 -- I have a d

[jboss-user] [EJB 3.0] - How to observe the number of stateless session instances created in jboss

2010-08-18 Thread janaka maduranga
janaka maduranga [http://community.jboss.org/people/janaka_maduranga] created the discussion "How to observe the number of stateless session instances created in jboss" To view the discussion, visit: http://community.jboss.org/message/557897#557897 --

Re: [jboss-user] [EJB 3.0] - How to package a persistent archive for use in JBoss and Tomcat standalone

2010-07-07 Thread jaikiran pai
jaikiran pai [http://community.jboss.org/people/jaikiran] replied to the discussion "How to package a persistent archive for use in JBoss and Tomcat standalone" To view the discussion, visit: http://community.jboss.org/message/551507#551507 --

[jboss-user] [EJB 3.0] - How to package a persistent archive for use in JBoss and Tomcat standalone

2010-06-30 Thread Gonne Martens
Gonne Martens [http://community.jboss.org/people/gonne] created the discussion "How to package a persistent archive for use in JBoss and Tomcat standalone" To view the discussion, visit: http://community.jboss.org/message/550411#550411

Re: [jboss-user] [EJB 3.0] - how to deploy a service pojo depending on ejb timer

2010-06-30 Thread Maria Luisa Della Vedova
Maria Luisa Della Vedova [http://community.jboss.org/people/mldv] replied to the discussion "how to deploy a service pojo depending on ejb timer" To view the discussion, visit: http://community.jboss.org/message/550363#550363 -- Here i

Re: [jboss-user] [EJB 3.0] - how to deploy a service pojo depending on ejb timer

2010-06-30 Thread Maria Luisa Della Vedova
Maria Luisa Della Vedova [http://community.jboss.org/people/mldv] replied to the discussion "how to deploy a service pojo depending on ejb timer" To view the discussion, visit: http://community.jboss.org/message/550357#550357 -- on lin

Re: [jboss-user] [EJB 3.0] - how to deploy a service pojo depending on ejb timer

2010-06-30 Thread jaikiran pai
jaikiran pai [http://community.jboss.org/people/jaikiran] replied to the discussion "how to deploy a service pojo depending on ejb timer" To view the discussion, visit: http://community.jboss.org/message/550349#550349 -- The NullPointe

Re: [jboss-user] [EJB 3.0] - how to deploy a service pojo depending on ejb timer

2010-06-30 Thread Maria Luisa Della Vedova
Maria Luisa Della Vedova [http://community.jboss.org/people/mldv] replied to the discussion "how to deploy a service pojo depending on ejb timer" To view the discussion, visit: http://community.jboss.org/message/550348#550348 -- I see

Re: [jboss-user] [EJB 3.0] - how to deploy a service pojo depending on ejb timer

2010-06-30 Thread jaikiran pai
jaikiran pai [http://community.jboss.org/people/jaikiran] replied to the discussion "how to deploy a service pojo depending on ejb timer" To view the discussion, visit: http://community.jboss.org/message/550333#550333 -- Is it just the

Re: [jboss-user] [EJB 3.0] - how to deploy a service pojo depending on ejb timer

2010-06-30 Thread Maria Luisa Della Vedova
Maria Luisa Della Vedova [http://community.jboss.org/people/mldv] replied to the discussion "how to deploy a service pojo depending on ejb timer" To view the discussion, visit: http://community.jboss.org/message/550331#550331 -- I’ve c

Re: [jboss-user] [EJB 3.0] - how to deploy a service pojo depending on ejb timer

2010-06-28 Thread jaikiran pai
jaikiran pai [http://community.jboss.org/people/jaikiran] replied to the discussion "how to deploy a service pojo depending on ejb timer" To view the discussion, visit: http://community.jboss.org/message/549937#549937 -- > @Depends(“EJ

[jboss-user] [EJB 3.0] - how to deploy a service pojo depending on ejb timer

2010-06-24 Thread Maria Luisa Della Vedova
Maria Luisa Della Vedova [http://community.jboss.org/people/mldv] created the discussion "how to deploy a service pojo depending on ejb timer" To view the discussion, visit: http://community.jboss.org/message/549446#549446 -- I’m new t

Re: [jboss-user] [EJB 3.0] - How can you turn of EJB 3 invocation statistics

2010-05-20 Thread Andrig Miller
Andrig Miller [http://community.jboss.org/people/andy.miller%40jboss.com] replied to the discussion "How can you turn of EJB 3 invocation statistics" To view the discussion, visit: http://community.jboss.org/message/544086#544086 -- >

Re: [jboss-user] [EJB 3.0] - How can you turn of EJB 3 invocation statistics

2010-04-28 Thread Andrig Miller
Andrig Miller [http://community.jboss.org/people/andy.miller%40jboss.com] replied to the discussion "How can you turn of EJB 3 invocation statistics" To view the discussion, visit: http://community.jboss.org/message/540103#540103 -- >

Re: [jboss-user] [EJB 3.0] - How can you turn of EJB 3 invocation statistics

2010-04-28 Thread Carlo de Wolf
Carlo de Wolf [http://community.jboss.org/people/wolfc] replied to the discussion "How can you turn of EJB 3 invocation statistics" To view the discussion, visit: http://community.jboss.org/message/540083#540083 -- Most likely the fix

Re: [jboss-user] [EJB 3.0] - How can you turn of EJB 3 invocation statistics

2010-04-28 Thread Carlo de Wolf
Carlo de Wolf [http://community.jboss.org/people/wolfc] replied to the discussion "How can you turn of EJB 3 invocation statistics" To view the discussion, visit: http://community.jboss.org/message/540081#540081 -- First I want to see

Re: [jboss-user] [EJB 3.0] - How to set the number of retries on a mdb?

2010-04-27 Thread Fausto De La Torre
Fausto De La Torre [http://community.jboss.org/people/faustodelatog] replied to the discussion "How to set the number of retries on a mdb?" To view the discussion, visit: http://community.jboss.org/message/539867#539867 -- Thanks is co

Re: [jboss-user] [EJB 3.0] - How to set the number of retries on a mdb?

2010-04-27 Thread jaikiran pai
jaikiran pai [http://community.jboss.org/people/jaikiran] replied to the discussion "How to set the number of retries on a mdb?" To view the discussion, visit: http://community.jboss.org/message/539819#539819 -- Set the dLQMaxResent ac

[jboss-user] [EJB 3.0] - How to set the number of retries on a mdb?

2010-04-27 Thread Fausto De La Torre
Fausto De La Torre [http://community.jboss.org/people/faustodelatog] created the discussion "How to set the number of retries on a mdb?" To view the discussion, visit: http://community.jboss.org/message/539814#539814 -- I want to set t

Re: [jboss-user] [EJB 3.0] - How can you turn of EJB 3 invocation statistics

2010-04-27 Thread Andrig Miller
Andrig Miller [http://community.jboss.org/people/andy.miller%40jboss.com] replied to the discussion "How can you turn of EJB 3 invocation statistics" To view the discussion, visit: http://community.jboss.org/message/539786#539786 -- >

Re: [jboss-user] [EJB 3.0] - How

2010-04-27 Thread Carlo de Wolf
Carlo de Wolf [http://community.jboss.org/people/wolfc] replied to the discussion "How" To view the discussion, visit: http://community.jboss.org/message/539695#539695 -- http://viewvc.jboss.org/cgi-bin/viewvc.cgi/jbossas?view=revisi

[jboss-user] [EJB 3.0] - How

2010-04-26 Thread Andrig Miller
Andrig Miller [http://community.jboss.org/people/andy.miller%40jboss.com] created the discussion "How" To view the discussion, visit: http://community.jboss.org/message/539644#539644 -- I was wondering how you can turn of EJB 3 invocat

Re: [jboss-user] [EJB 3.0] - how to deploy a service bean through jboss.xml DD XML

2010-04-08 Thread Csaba Szucs
Csaba Szucs [http://community.jboss.org/people/CsabaSzucs] replied to the discussion "how to deploy a service bean through jboss.xml DD XML" To view the discussion, visit: http://community.jboss.org/message/536211#536211 -- Thanks, Jai

Re: [jboss-user] [EJB 3.0] - how to deploy a service bean through jboss.xml DD XML

2010-04-07 Thread jaikiran pai
jaikiran pai [http://community.jboss.org/people/jaikiran] replied to the discussion "how to deploy a service bean through jboss.xml DD XML" To view the discussion, visit: http://community.jboss.org/message/536030#536030 -- Do you have

[jboss-user] [EJB 3.0] - how to deploy a service bean through jboss.xml DD XML

2010-04-06 Thread Csaba Szucs
Csaba Szucs [http://community.jboss.org/people/CsabaSzucs] created the discussion "how to deploy a service bean through jboss.xml DD XML" To view the discussion, visit: http://community.jboss.org/message/535733#535733 -- Hello Guys, I

[jboss-user] [EJB 3.0] - How can I share Entities between JBoss AS and J2SE?

2010-03-25 Thread Barry Sheward
Barry Sheward [http://community.jboss.org/people/bsheward] created the discussion "How can I share Entities between JBoss AS and J2SE?" To view the discussion, visit: http://community.jboss.org/message/534054#534054 -- Hi, I have a pa

Re: [jboss-user] [EJB 3.0] - How to initialize the State of an EJB3 Stateful Bean

2010-03-23 Thread Jerry Simone
Jerry Simone [http://community.jboss.org/people/jlsimone] replied to the discussion "How to initialize the State of an EJB3 Stateful Bean" To view the discussion, visit: http://community.jboss.org/message/533579#533579 -- Wow.  I just

Re: [jboss-user] [EJB 3.0] - How to initialize the State of an EJB3 Stateful Bean

2010-03-23 Thread Jerry Simone
Jerry Simone [http://community.jboss.org/people/jlsimone] replied to the discussion "How to initialize the State of an EJB3 Stateful Bean" To view the discussion, visit: http://community.jboss.org/message/533566#533566 -- ... Reply to

Re: [jboss-user] [EJB 3.0] - How to initialize the State of an EJB3 Stateful Bean

2010-03-23 Thread Jerry Simone
Jerry Simone [http://community.jboss.org/people/jlsimone] replied to the discussion "How to initialize the State of an EJB3 Stateful Bean" To view the discussion, visit: http://community.jboss.org/message/533563#533563 -- Thanks for th

[jboss-user] [EJB 3.0] - How to call external service(Third party api) from Enterpris

2009-07-13 Thread chandras
Hi, I have few questions on EJB3.0 with JBOSS Application server. We use EJB3.0 with JBOSS in our application. Here we have a requirement to use third party APIs for one of the business logic module. Queries: (a)Can we start this third party API as a separate service from EJB? I would like

[jboss-user] [EJB 3.0] - How to bind session bean to corba naming?

2009-07-12 Thread gvozdoder
In older release of EJB3.0 I used @RemoteBinding(factory="IORFactory"). How can I get the same effect with latest release of EJB3.0? View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4243148#4243148 Reply to the post : http://www.jboss.org/index.html?module=bb&o

[jboss-user] [EJB 3.0] - How to compile Calculator bean in ejb3 tutorial.

2009-07-12 Thread samwan809
Hi, I tried to compile the stateless calculator bean from ejb3 tutorial, but I got no clue how to compile/deploy and run the example. Can anyone shed some lights on me please? here is the directory I am at: :stateless # pwd /usr/java-source/ejb3-tutorial/source/stateless # mvn compile [INFO] Sc

[jboss-user] [EJB 3.0] - How to ignore persistence unit loading

2009-06-20 Thread kariem
I hope this is the right forum to ask this question, as it is JPA-related. In my application which is packaged as a WAR I want to access a web service. The web service interface uses classes that are all from a single jar which also defines a persistence unit (META-INF/persistence.xml). On depl

[jboss-user] [EJB 3.0] - How to declaratively change JNDI name of a bean?

2009-06-17 Thread kevinpauli
By default it seems the jndi name of a bean is based on the ear in which it is contained. An EJB named MyBean my-app.ear will have the name "my-app/MyBean/local". How can I change that behavior declaratively? I want the jndi name to be "something-else/MyBean/local". It has to be declarative rat

[jboss-user] [EJB 3.0] - how to override the method logic which is currenlty calling

2009-05-18 Thread kkangsar
Hi, Anyone knows how to override the existing method in EJB? For example: I have defined internal method "myCal". This internal method will be calling by a few other standard method which is defined by me. User will call my standard method when they use my application. B

[jboss-user] [EJB 3.0] - How to deal with huge uploaded file in JBoss

2009-05-13 Thread jochen.reinhardt
Hi folks, I'm writing a medium-scale application for one of our customers, using JBoss 5.02, JSF, tomahawk and EJB3 with a MySQL database. I need to do a file import - one big file - through the web interface (JSF file upload) and handle the file contents in EJB stateless sessions. The problem

[jboss-user] [EJB 3.0] - How to inject data source in AS independent way?

2009-05-11 Thread japase
Hi, Our application uses a number of data sources. In all examples we have found data source injection in an EJB is done with the @Resource annotation and the 'mappedName' attribute, e.g.: | @Resource(mappedName="java:jdbc/fndbas_en-US") | private DataSource dsEn; | But the problem is t

[jboss-user] [EJB 3.0] - How many fine grained timers?

2009-03-25 Thread bryan.kearney
I am current using a timer service to "wake up" and iterate over a collection of stored queries. I am considering associating one timer and one query so that each query can have a different refresh time. I hate to ask a quesiton like this, but are timers defined to be fine grained. All the examp

[jboss-user] [EJB 3.0] - How do I build a query with Dates in EJB QL ?

2009-02-25 Thread dimar1975
Hi all ! I have an EJB 3 Entity bean which issues some queries. The Queries include some Date field in the WHERE clause SELECT OBJECT(a) FROM TaskList AS a WHERE a.taskEndDate ='2004-09-01' Unfortunately Hibernate seems doesn't like it at allit issues a org.hibernate.exception.DataExceptio

[jboss-user] [EJB 3.0] - How to put EJB 2.1 Entity + EJB 3 session in signle JAR

2009-01-28 Thread doychin
I have one large project that consists of few EJB 2.x modules each of them containing some Session and Entity beans. What I want to do is to migrate all Session beans to use EJB 3 annotations but still use the EJB2.x entity beans and moving them slowly to JPA. Is this possible with JBoss and if

[jboss-user] [EJB 3.0] - How cancel persisted ejb3 timers?

2009-01-26 Thread drtog16
ejb3 timers are persisted. Is there a user interface that jboss provides to allow us to remove old ones? i see deleteTimer(..) of "persistencePolicy=database,service=EJBTimerService" but i dont think we can use it because when you do you get "Failed to find PropertyEditor for type: org.jboss.ej

[jboss-user] [EJB 3.0] - How to mix integer and double in the ejbql

2009-01-26 Thread r_q_d
I have a entity bean like this: PlayScoreBean | public class PlayScoreBean implements java.io.Serializable{ | ... | private Integer rawScore; | public Integer getRawScore() { | return rawScore; | } | | public void setRawScore(Integer rawScore) {

[jboss-user] [EJB 3.0] - how to get principal from Entity

2009-01-21 Thread apdo
I know the more accepted pattern is to not have logic into the entity. However I am performing the migration of an application from EJB2 to EJB3 where there is logic into the entities. In my old entity bean (not session bean), I have code that call getCallerPrincipal from the EntityContext. I h

[jboss-user] [EJB 3.0] - How to inject sessionbean from sessionbean from another appl

2009-01-16 Thread kolszew73
Hi, JBOSS 5.0.0.GA I'm trying to inject my sessionBean "VatCounter" into my another session bean "ComplexCounter" @Stateless | class ComplexCounter implemenst ComplexCounterLocal { | | @EJB | private VatCounterLocal vatCounter; | | ... | | } all works when "VatC

[jboss-user] [EJB 3.0] - how start ejb timer on deployment of ejb sesssion beans?

2009-01-14 Thread drtog16
How can i start a ejb timer in jboss when the ejbs deploy? In the past i made a servlet that called an ejb session method when it starts up -- pretty getto. Is there a jboss specific solution? (I am using jboss 4.2.3) Thanks View the original post : http://www.jboss.com/index.html?module=bb&op

[jboss-user] [EJB 3.0] - How to deploy EAR and WAR in JBOSS?

2009-01-05 Thread svgkraju
How to deploy EAR and WAR in JBOSS? Is there any documentation available for the same? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4199668#4199668 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4199668 ___

[jboss-user] [EJB 3.0] - How to inject sessionbean from sessionbean

2009-01-02 Thread NSchweig
Hi, for injecting my sessionBean "groupHandler" from my jsf-managedBeans I use: | @EJB(mappedName="GroupHandler/remote") | private GroupHandlerRemote groupHandler; (with this code in GroupHandler: public static final String RemoteJNDIName = GroupHandler.class.getSimpleName() + "/remote";)

[jboss-user] [EJB 3.0] - how to use annotation instead of xml to create a jboss hearb

2008-12-07 Thread wendy123
jboss implements a timerservice : org.jboss.monitor.services.TimerService we can define this mbean in jboss-service.xml and set its properties such as NotificationType, NotificationMessage, TimerPeriod. This mbean will be loaded from the xml file and start sending heartbeat msg. I want to know

[jboss-user] [EJB 3.0] - how to get native connection

2008-11-30 Thread peiguo
Hi, I have a need to access some outside web services through jboss, and I am behind a firewall, so my jboss has to access that web service through https proxy. I knew in general how to set system properties such as https.proxyHost, proxyPort and nonProxyHosts etc. But this way, the setting wi

[jboss-user] [EJB 3.0] - how to customize the TM for my EJB3 app?

2008-11-24 Thread mazz
I want to customize the default timeout behavior of the JBoss Transaction Manager in my EJB3 app (not the timeout value - but the actual behavior that occurs when the tx times out). The default is to abort transactions but let the threads active in that transaction continue to run. See my JBoss

[jboss-user] [EJB 3.0] - How does JBoss handle Local and Remote interfaces

2008-10-29 Thread mrfarhankhan
Hi, How does JBoss4.2.2.GA handle EJB3 @Local and @Remote interfaces. If i define all the interfaces to be remote, but they exist in the same JVM, does JBoss treat them as local ? Is there any performance gain if i change from @Remote to @Local ? Thanks in advance Farhan ! View the original p

[jboss-user] [EJB 3.0] - How to get generated id after persiting an entity?

2008-10-22 Thread mike_ap
I have an entity with a sequence generator. In my session bean I have a method with this code | em.persist(myEntity); | em.flush(); | return myEntity; | after I get the object back. I try | myobj.getId() | but I always get 0 even though the record is inserted in the database an

[jboss-user] [EJB 3.0] - How to call oracle function from ejb3

2008-10-11 Thread zzuli
Hello, everyone. i'm trying to call an oracle query-function from ejb3. The oracle function: create or replace FUNCTION getSecThreadCount(secId in NUMBER,avai in NUMBER) RETURN SYS_REFCURSOR is cur SYS_REFCURSOR; m_sql VARCHAR2(250); BEGIN m_sql:='select count(thrId)

[jboss-user] [EJB 3.0] - How to configure database connection count

2008-10-07 Thread CarstenRudat
Hi All, I wonder, if I might configure the number of database connections that might be used by EJB3? I configured in my *-ds.xml min and max-pool-size, but if I have a look to my database (mysql) I can only see one connection. I think, that my application might be a little more performant, wi

[jboss-user] [EJB 3.0] - How to access EntityManager in a Thread run() method?

2008-10-02 Thread jboss_raikankas
Hi, I have got an Enterprise project with an EJB3, I am starting a Thread in a @Stateless bean but when I try to use my EJB3 EntityManager I get below exception. How can I access from inside the Thread to my EntityManager? :01:35,812 ERROR [STDERR] Exception in thread "Thread-15" 20:01:35,812

[jboss-user] [EJB 3.0] - How to pass PersistenceUnit name at run time

2008-09-16 Thread yogesharora
HI All, I want to enject entitymanager based on persistence unit name passed at runtime. Can any body tell how to do it. For Ex: @PersistenceUnit(name="xyz") EntityManager em; I want name to be populated at run time. (In above scenario it is hardcoded "xyz"). View the original post : http://

[jboss-user] [EJB 3.0] - How JSF portlet can access EJB 3.0?

2008-08-31 Thread mabimal
Hello all, I have configured EJB 3.0 and EJB 3.0 has been successfully coded. Now i need to get access EJB 3.0 from Portlet which has JSF implemention. The problem is that the JSF implemented portlet has the code in the portlet.xml file as | com.sun.faces.portlet.FacesPortlet | |

[jboss-user] [EJB 3.0] - How do I set hibernate.dialect property outside of persisten

2008-08-28 Thread [EMAIL PROTECTED]
Hi, We are deploying an application on JBoss and we would like to give our customers the ability to choose which database (Oracle, MySQL, etc.) they would like to use. It's fairly easy to have the installer lay down a customized ds.xml file in the deploy folder to define the chosen data source

[jboss-user] [EJB 3.0] - How to access EJB from Portlet

2008-08-04 Thread mabimal
Hi all, I am unable to access EJB from portlet, successfully deployed and accessed EJB 3.0 from servlet on JBoss Portal 2.6.5 SP1 but similar code didnt produced the result for portlet...here is error as ERROR Cause: java.lang.ClassCastException: $Proxy287 cannot be cast to lesson.stateless.He

[jboss-user] [EJB 3.0] - How to enable Timer service in Jboss Embedded??

2008-07-01 Thread Fagoter
Guy, I'd like to ask how to do that... Please provide some short example ant point me where I should config that Thanks Before View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4161907#4161907 Reply to the post : http://www.jboss.com/index.html?module=bb&op=pos

[jboss-user] [EJB 3.0] - How can set longblob type in entitybean 3.0

2008-06-19 Thread jk6803
I use Jboss 4.2.2.G , Mysql 5.0 and entitybean 3.0. The problem I have is that the type of the object keeps tinyblob. I would want to change longblob but it does not work. Here is a code. public class Test implements Serializable { private static final long serialVersionUID = 1L; private

[jboss-user] [EJB 3.0] - How to implement a last modified or last user field ?

2008-06-12 Thread johanmicoud
Hello, I'm trying to find a way to solve this tricky problem. I want to ensure that all modifications made on my EJB 3 entities are traced in a specific column (or field). I use a security context and I'd want to store the getSubject() and the current date in two fields. The idea is to get

[jboss-user] [EJB 3.0] - How to select whitch entity's can be mapped to each EM?

2008-06-11 Thread Stateless Bean
Hi, Let see we got 3 entity managers. My app is web based game, with 2 worlds (2 databases). First EM is for one database only whitch administration tables. (3tables) Second and Third EM is for game world with tables for players. (10tables) When jboss starts always deployes entity beans for each E

[jboss-user] [EJB 3.0] - How to catch transaction time out exception?

2008-05-20 Thread avihaimar
I work with Jboss4.2. I have a java client which communicates with the server via stateless bean (facade). Those stateless beans operate the business layer... I have a case that i get a transaction time out (the operation was 5 minutes) , I didn’t get any exception about it . I want to get a

[jboss-user] [EJB 3.0] - How to intercept EJBs residing in another jar-file?

2008-04-23 Thread raoul.schmidiger
Hi all I have got an ear-file with the following structure: - myapp.ear - app1.jar - mylib.jar Both jar-files contain a bunch of EJBs. However, the EJBs in app1.jar use some EJBs residing in mylib.jar. They get injected where needed with the @EJB annotation. In order to have all EJBs

[jboss-user] [EJB 3.0] - how to use a database sequence as a table column which is no

2008-04-21 Thread xiaopang
i'd like to use a database sequence to generate value for a table column which is not a id filed . how to realize it in entity bean? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4145684#4145684 Reply to the post : http://www.jboss.com/index.html?module=bb

[jboss-user] [EJB 3.0] - how to enable RMI class loading

2008-04-09 Thread avogt_sundn
Let me try to make that question short: I get | Caused by: java.lang.ClassNotFoundException: No ClassLoaders found for: palmyra.baustein.geschaeftsverwaltung.antrag.ProtokollVBeanEjb (no security manager: RMI class loader disabled) | WAIT, I resolved that by enabling security policy that

[jboss-user] [EJB 3.0] - How can the EJB3 Application client run in ACC on JBoss 5 Be

2008-03-27 Thread stone7
JBoss 5 Beta 4 has a ACC(application client container),so it is able to use @EJB in a Java Application class to inject a EJB3,and the deployment of the whole ear module is successful,the jndi view lists the application client. But how can the application client class run in ACC? View the origin

[jboss-user] [EJB 3.0] - How to use all available ID as primary key?

2008-03-16 Thread mnrz
Hi all, I have a table that in a slice of time, many records may be deleted and inserted. the record deletion is physically, this table acts as a pool. now, I want this table uses deleted IDs for the new records that is going to insert, in other words, if IDs say, 23, 55, 77 are deleted, when I

[jboss-user] [EJB 3.0] - How to retrieve an EJB from a JAR used in many EAR ?

2008-03-12 Thread chawax
Hi, I work with EJB3 (I am a newbie) and I have problems about state of the art way to retrieve an EJB from a JAR that will be used on many EAR projects. I have the following EJB (generated from AndroMDA) : | | | | ServiceEmployeBean | myCompany.ServiceEmp

Re: [jboss-user] [EJB 3.0] - how to run ejb3.0

2008-03-08 Thread Per Newgro
There can be many issues. Maybe you forgot the annotation @Remote or you didn't implement the remote interface or you use the wrong JNDI name for your bean You can check the deployed beans (and names) in the jndi view with the list method. type in localhost:8080/jmx-console link jndi-view button

[jboss-user] [EJB 3.0] - how to run ejb3.0

2008-03-08 Thread arrojusrikanth
when iam deploying entity bean it is deployed sucessfully when i enter ant run at the command prompt it is generating error run: [java] Exception in thread "main" javax.naming.NameNotFoundException: remot e not bound [java] at View the original post : http://www.jboss.com/inde

[jboss-user] [EJB 3.0] - How to use configurable information

2008-03-04 Thread cristi_cioriia
Hi, I am pretty new to the EJB technology and got into an issue that I couldn't solve on my own. I use a MDB to send emails, and I place some configurable information in that email. Basically what I would like to do is to specify some information in a configuration file when my MDB is deployed i

[jboss-user] [EJB 3.0] - How to Unit Test EJB 3.0

2008-02-29 Thread dude.on.j2ee
Just started using EJB3.0 Does any one know how to Unit test EJB3.0 components deployed in Jboss server outside the container? Any resource links Thanks JY View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4133239#4133239 Reply to the post : http://www.jboss

[jboss-user] [EJB 3.0] - How to setup wsse usernametoken for ejb3 based web services?

2008-02-20 Thread xiaow
I posted the following question in ws forum, but this forum may be the better place for it. Please help. "I have tried to solve this for several weeks for jboss on either 4.2.2 or 5 beta 4 and was very frustrated. And I have easily configured this feature in Glassfish v3 and Oracle AS 10g. Now

[jboss-user] [EJB 3.0] - How to do a Table lock with EJB3

2008-02-11 Thread sappenin
In an EJB3 SLSB, how do I lock a database table so I can do a read, then a write in the same unit of work without having another calling thread do work in between? Please note that EntityManager.lock(...) will not work here because I need to lock the table BEFORE I create an entity. Here's the

[jboss-user] [EJB 3.0] - How to start a session bean as soon as it is deployed

2008-02-01 Thread [EMAIL PROTECTED]
Hi, I want a session bean or other to start as soon as I deploy the application. Basically my need is to access a certain table in the database periodically using @Timeout Timer Serivce. My bean looks like so @Stateless public class AdSetScheduleBean implements AdSetScheduleRemote, AdSetSchedul

[jboss-user] [EJB 3.0] - How to use "SecurityManager attribute" on EJB 3.0 MDB

2008-01-29 Thread 10takashi
Hello there, My name is Takashi. Currently I'm searching the solution for the title. In conclusion, I want to know the way how to define Anotation for this attribute. (@ActivationConfigProperty(propertyName) First I'm describing my environment. -- The host that has queue(remot

[jboss-user] [EJB 3.0] - How to save entities with PrimaryKeyJoinColumn?

2008-01-16 Thread drathnow
Could someone give me some insight into the correct way to save entities that are joined over their primary key? I have two entities: Field and FieldAccess. They both share the same primary key and have a relation over their primary key: class Field { @OneToOne (mappedBy = "field")

[jboss-user] [EJB 3.0] - How to size EJB3 continer for EJB3 stateless session beans (

2008-01-04 Thread andyredhead
Hi, I'd like to know if anyone has any guidelines or techniques for sizing the instance pool for EJB3 stateless session beans in JBoss 4.2.1? We are going live with an EJB3 based application and I'd like to know if I've got the EJB3 container configured sensibly... In ejb3-interceptors-aop.xm

[jboss-user] [EJB 3.0] - How to implement a "global" app counter?

2007-12-22 Thread sagimann
Hello, I'm using JBoss 4.2.2, and I have the following challenge: I have an entity that keeps track of a "global" numeric value for my application, inside the db. I need a session been that should be able to: 1. init the counter to 0 2. update it atomically, i.e when I call some 'getNext' method

[jboss-user] [EJB 3.0] - How to retrieve foreign key instead of the object (want no l

2007-12-04 Thread lpmon
Goal: ability to retrieve the foreign key without loading the related object/table row. Scenario: Entity bean contains a related entity bean. @Entity class Unit{ // Unit table // what kind of unit Model model; // related object in Model table, related column is modelId In the Unit table the

[jboss-user] [EJB 3.0] - how to check entity bean state change ?

2007-11-27 Thread design2006
Dear all, I have an entity bean which persist to the database, how can i know when the field value of the entity bean has been change ? Because i want to make the application call to update database only when some of the fields in the entity bean have been change. thanks. regards, design

[jboss-user] [EJB 3.0] - How to create singletons?

2007-11-16 Thread aidndev
We need to create singleton classes to cache database data. Using an EJB container we are not guaranteed that truly one object is being instantiated and shared. I have heard various answers to this, including some mysterious "well, it depends on the classloader..." answers. From what I have f

[jboss-user] [EJB 3.0] - How can I acces an ejb from java:comp/env/ejb/ ?

2007-11-06 Thread daedalus_hammer
Hi Currently I'm looking up ejb with something lik "AppName/BeanName/Inteface_type". Reading "Enterprise JavaBeans 3.0 5th Edition" I understood that the beans should also be accesible from " java:comp/env/ejb/" -- which I would much prefere to use but I can't find my beans there. Any idea why n

[jboss-user] [EJB 3.0] - How to exclude default interceptors for all @Destroy methods

2007-10-26 Thread JUnkie
I have several stateful session beans and I don't want the default interceptors being executed for their @Destroy @Remove annoted methods. Is there a way to do that in the ejb-jar.xml? Or do I have to annote every single method with @ExcludeDefaultInterceptors? Haven't found anything about that

[jboss-user] [EJB 3.0] - How to print SQL values in debug Log

2007-10-10 Thread terryb
Does anyone know, how to print values of SQL in the output log? I am using RHDS Beta 1 with all defaults, and JBoss AS 4.2.0. Setting hibernate.type" to "debug" or "true" in persistence.xml doesn't do anything. Also is it possible to somehow beautiful the SQL output by hibernate? it is so unre

[jboss-user] [EJB 3.0] - How to define unique constraint on foreign keys ?

2007-10-10 Thread chawax
Hi, I need to define a unique constraint on foreign keys in a EJB3 entity. I saw the @Table annotation has a uniqueConstraints attribute to do this, but when I add relation columns to the unique constraint, it can't find them. For example, my entity has the following relations : @javax.persiste

[jboss-user] [EJB 3.0] - How to filter EJB3.0 Relations ?

2007-09-28 Thread Neiti01
Hi, I developed an application which uses ejb3.0 entity beans and logical delete (=> it uses a delete NUMBER(1) column to determine if a row is deleted or not). Is there any possibility to tell ejb that the returned collection of a method marked with @OneToMany should only contain entities whic

[jboss-user] [EJB 3.0] - How do I invoke a method just after an ear-deploy?

2007-09-26 Thread oskar.carlstedt
Hello! Does any of you out there know how to invoke an ejb3 method just after deploy of the ear file? (i.e. not the @PostConstruct, @PostActivate because these methods are called once per ejb instance). There is a way to use an mbean and do something in the start method. But for me this is lik

[jboss-user] [EJB 3.0] - How to connect multiple databases at same time?

2007-09-26 Thread hanyou
I want to create multiple data center that same structure, when user login my application, he can choose one to work, EJB3 how to deal with? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4088903#4088903 Reply to the post : http://www.jboss.com/index.html?mod

[jboss-user] [EJB 3.0] - How to Delpoy Quartz MDB in deploy-hasingleton?

2007-09-24 Thread homerlex
JBoss 4.2.0 Need to have a quartz job running in a clustered environment. I tried setting up Quartz to use a datasource that points to a shared database. I ran into the same problem mentioned here: http://jira.jboss.com/jira/browse/EJBTHREE-836 So, I figured I'd just deploy to deploy-hasin

[jboss-user] [EJB 3.0] - How to invoke an Stateless at ear deployment.

2007-09-18 Thread jc7442
I deploy my EJB3 app as an ear. I'd like to execute some initialisation task just after the ear has been fully deployed but without invoking a bean. Is it possible to do such initialization at JBoss AS startup ? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4

[jboss-user] [EJB 3.0] - How to get the size of a Lazy load relation

2007-09-17 Thread icordoba
Hi there, I need to pre-load the "size" of a Lazy load relation. I need to do it because I need to access the Entity in a JSP and I get "No session or session closed" if getting the size directly from the relation (I don't want to put a Transaciton using a scriptlet in the JSP page) I can neithe

[jboss-user] [EJB 3.0] - How to map this?

2007-09-11 Thread lafr
I'm migrating an EJB 2.1 application to EJB 3.0 using JBoss 4.2.2.GA. Some question on how to map fields and relations. Object message contains a message header, message parts and each message part contains message lines. message head has a generated id. message part has a composite pk build of me

  1   2   >