[jboss-user] [EJB 3.0] - Re: Datasource not bound doing JPA outside of container

2008-03-20 Thread waynebaylor
JNDI names with the java:/ prefix are only visible from within the same JVM. you'll have to bind your persistence unit to a global JNDI name to get at it from outside the app. server View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4138211#4138211 Reply to the

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

2008-03-04 Thread waynebaylor
check out env-entry tag in ejb-jar.xml View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4134104#4134104 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4134104 ___ jboss-user maili

[jboss-user] [JNDI/Naming/Network] - Re: JNDI problem

2008-03-02 Thread waynebaylor
have you tried a JNDI lookup? Context ctx = new InitialContext(); | MyRemoteIfc bean = (MyRemoteIfc)ctx.lookup("///remote"); | View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4133503#4133503 Reply to the post : http://www.jboss.com/index.html?module=bb&o

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

2008-03-02 Thread waynebaylor
i would say testing in-container components outside the container is more trouble than it's worth. instead of trying to set up a simulated container with JBoss Embedded or something else, try using JUnitEE or Cactus, etc and do the testing in your production environment, i.e. in the JBoss AS.

[jboss-user] [Clustering/JBoss] - Re: Using mod_jk in AS 4.2.1.GA

2008-03-01 Thread waynebaylor
I'm trying to set up mod_jk on JBoss AS 5.0.0 Beta4 and cannot find any reference to "UseJK" in any config files. The jbossweb.deployer is under the deployers directory now, and doesn't have a jboss-service.xml in META-INF. I looked at UsingMod_jk1.2WithJBoss on the wiki, but that's outdated to

[jboss-user] [EJB 3.0] - Re: What's the best unit testing approach for JBoss/EJB3

2008-02-12 Thread waynebaylor
there's JUnitEE for in-container unit testing. i'll also throw out Ivy for dependency management. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4128975#4128975 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4128975

[jboss-user] [EJB 3.0] - Re: problems with optimistic locking/persistence data in EJB

2008-01-25 Thread waynebaylor
try this: | t.begin(); | //queues an update from stale uNode | //Node mergedNode = em.merge(fromNode); | | //refresh reads back queued model | em.refresh(fromNode); | |

[jboss-user] [EJB/JBoss] - Re: 2 JBoss servers pointing to 1 database

2008-01-23 Thread waynebaylor
i haven't had any problem with multiple instances pointing to the same oracle install. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4122871#4122871 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4122871 ___

[jboss-user] [EJB 3.0] - Re: problems with optimistic locking/persistence data in EJB

2008-01-17 Thread waynebaylor
for the client side: what you see is the correct behavior. in your removeLink method, when you execute fromNode = em.merge(fromNode); | remoteNode = em.merge(remoteNode); you're losing the references to the client's entities uNode and zNode. so when you call resynch(uNode) you're merging the

[jboss-user] [EJB 3.0] - Re: problems with optimistic locking/persistence data in EJB

2008-01-14 Thread waynebaylor
entities referenced by an application client (i.e. client outside of the container) are not managed. the exception you're getting is probably the container saying that the client wants to save data that is out of date. View the original post : http://www.jboss.com/index.html?module=bb&op=viewt

[jboss-user] [EJB 3.0] - Re: problems with optimistic locking/persistence data in EJB

2008-01-13 Thread waynebaylor
my guess is that the problem lies with the @Version field. you may be inadvertently incrementing the entity's version, so when you try to merge hibernate thinks the object is out of date. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4119454#4119454 Reply t

[jboss-user] [EJB 3.0] - Re: EJB 3.0 w/vanilla deployment descriptor

2008-01-12 Thread waynebaylor
do you mean env-entry? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4119390#4119390 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4119390 ___ jboss-user mailing list jboss-us

[jboss-user] [EJB/JBoss] - Re: What is wrong with my local ejb JNDI lookup code (or the

2008-01-12 Thread waynebaylor
in my experience you can't do the lookup without jboss.xml. as far as JNDI goes, jboss.xml is used to override the default JNDI name of beans (which is what you did), and like jboss-web.xml it can provide the mapping from ENV names to the global JNDI namespace. View the original post : http:

[jboss-user] [EJB 3.0] - Re: JNDI look up datasource problem

2008-01-10 Thread waynebaylor
try Oracle9iDriver instead of OracleDriver View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4118883#4118883 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4118883 ___ jboss-user m

[jboss-user] [EJB 3.0] - Re: EJB3 with Eclipse

2008-01-04 Thread waynebaylor
@EJB in servlets doesn't work on Jboss 4.x. you'll have to do the JNDI lookup manually. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4117257#4117257 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4117257 __

[jboss-user] [JNDI/Naming/Network] - Re: javax.naming.NoInitialContextException: Can't find prope

2008-01-04 Thread waynebaylor
just for kicks, you could pass InitialContext a Hashtable with your jndi.properties hardcoded. if that works, then you know it's something wrong with your classpath. ps. you lookup string looks funny, by default it's "[ear-name/]bean-name/local" View the original post : http://www.jboss.com/in

[jboss-user] [EJB 3.0] - Re: Unable to call Stateful Session bean

2008-01-03 Thread waynebaylor
are you doing something like: UserStateful bean = (UserStateful)new InitialContext().lookup("UserStatefulBean/remote"); | View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4116913#4116913 Reply to the post : http://www.jboss.com/index.html?module=bb&op=postin

[jboss-user] [EJB/JBoss] - Re: Test and Production deployment

2008-01-03 Thread waynebaylor
probably not possible in jar format. you might have a chance if you assigned different jndi names, but then you'd have different descriptors for each jar--which you want to avoid i'm guessing. if you pack each jar into an ear and use jboss's default JNDI naming (which includes the name of the e

[jboss-user] [EJB 3.0] - Re: Em.persist in loop

2007-12-29 Thread waynebaylor
you probably want to use merge instead of persist, but it's hard to tell what your code is doing. maybe post a more clear example. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4116045#4116045 Reply to the post : http://www.jboss.com/index.html?module=bb&op=

[jboss-user] [EJB 3.0] - Re: How to implement a

2007-12-26 Thread waynebaylor
you could try using an HA Singleton to do the db work. this is a jboss specific solution, if that's acceptable. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4115573#4115573 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&

[jboss-user] [EJB 3.0] - Re: Dependency Injection @EJB in separate jar

2007-12-26 Thread waynebaylor
you could put them in an EAR View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4115571#4115571 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4115571 ___ jboss-user mailing list jb

[jboss-user] [EJB 3.0] - Re: Recommended testing framework

2007-12-26 Thread waynebaylor
junitee.org is another option. you're solution sounds very similar to this project. the only drawback i've found so far is that it uses junit 3.8. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4115564#4115564 Reply to the post : http://www.jboss.com/index.ht

[jboss-user] [EJB 3.0] - Re: Newbie EJB 3 JNDI question

2007-12-26 Thread waynebaylor
the jmx-console doesn't display the contents of local ENCs for EJBs. it will display a WAR's ENC... Anyway, it doesn't matter how the app. server injects the bean. entries in the ENC are just "local" names for the EJBs' global JNDI names. View the original post : http://www.jboss.com/index.htm

[jboss-user] [EJB 3.0] - Re: Still having problems with java:comp/env lookups

2007-12-26 Thread waynebaylor
ejb-jar.xml declares the ejbs and the jboss.xml maps them to their global jndi name. ejb-jar.xml: http://java.sun.com/xml/ns/javaee"; xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/ejb-jar_3_0.xsd";

[jboss-user] [EJB/JBoss] - Re: bets practics of an ejb app initialization

2007-12-22 Thread waynebaylor
i would suggest moving the code that needs to be initialized to a stateless session bean. that way you're mdbs won't have a long startup time. you could try configuring how many of those session beans are kept in the pool. View the original post : http://www.jboss.com/index.html?module=bb&op=vi

[jboss-user] [JBoss AOP] - Re: Possible to advise EJB3 EntityBeans?

2007-12-02 Thread waynebaylor
i remember being able to add interceptors for classes annotated with a given annotation. in your case, a wildcard representing any class annotated with @Entity. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4109686#4109686 Reply to the post : http://www.jb

[jboss-user] [EJB 3.0] - Re: java:com/env not working?

2007-12-01 Thread waynebaylor
yep, but you have to put it there first :) you can use ejb-jar.xml and jboss.xml to accomplish this. ejb-jar.xml defines the lookup string (the bold part): java:comp/env/ejb/MyBean jboss.xml will map this lookup string the global jndi name of the bean. View the original post : http://www.jbos

[jboss-user] [EJB 3.0] - Re: Stateful bean via RMI

2007-12-01 Thread waynebaylor
if you remove the stateful bean lookup does the code still generate an exception? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4109591#4109591 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4109591

[jboss-user] [EJB/JBoss] - Re: Problems accessing remote EJB

2007-12-01 Thread waynebaylor
you're not getting a name not found exception, or connection exception? is the ejb application deployed to both app. servers? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4109590#4109590 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posti

[jboss-user] [EJB 3.0] - Re: Table per class with different ID generators

2007-11-30 Thread waynebaylor
have you tried using @MappedSuperclass then? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4109488#4109488 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4109488 ___ jboss-user

[jboss-user] [EJB/JBoss] - Re: Using J2SE App. as the Server for an EJB3-based App.

2007-11-30 Thread waynebaylor
does your client have access to all the classes your sending on its classpath? as another alternative you could try using JCA to communicate with the j2se app. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4109487#4109487 Reply to the post : http://www.jboss

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

2007-11-30 Thread waynebaylor
hibernate does most (if not all) of that for you. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4109485#4109485 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4109485 ___ jbos

[jboss-user] [EJB 3.0] - Re: Table per class with different ID generators

2007-11-27 Thread waynebaylor
hmm, i can imagine problems with the pk. for example, say you have Document with its own pk. when you create SalesInvoice it inherits the pk from Document. if you try to add an additional field to SalesInvoice's pk, hibernate will probably choke because it's not properly defined as a composite p

[jboss-user] [EJB 3.0] - Re: Table per class with different ID generators

2007-11-25 Thread waynebaylor
one-to-many from the subclass to the root class? why not put the ID in the superclass? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4107620#4107620 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4107620 ___

[jboss-user] [JNDI/Naming/Network] - Re: Problem with resource-mapping

2007-11-23 Thread waynebaylor
i would make each bean that needs a datasourse use a local jndi lookup instead of a global one. since you only have one jar you will only need one ejb-jar.xml and one jboss.xml. doing it this way you can keep your bean code the same, for example all lookups could be:DataSource ds = (DataSource

[jboss-user] [JNDI/Naming/Network] - Re: Problem with resource-mapping

2007-11-22 Thread waynebaylor
do you mean you want to use the same deployment descriptor for each bean, or that you want the beans to have the same code and just change the descriptor? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4107186#4107186 Reply to the post : http://www.jboss.com/

[jboss-user] [EJB 3.0] - Re: Persistent unit problem

2007-11-22 Thread waynebaylor
when you get the NameNotFoundException what name does it give? are you doing a JNDI lookup? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4107181#4107181 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4107181 __

[jboss-user] [EJB 3.0] - Re: Problem instantiating an EntityManagerFactory

2007-11-22 Thread waynebaylor
two things: 1)not sure if it matters, but use java:/DefaultDS instead of java:DefaultDS in persistence.xml. 2)Persistence.create* is for use outside the container. try doing a JNDI lookup of the factory instead. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p

[jboss-user] [EJB 3.0] - Re: ManyToMany relationship do not work properly

2007-11-21 Thread waynebaylor
no exceptions thrown? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4106895#4106895 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4106895 ___ jboss-user mailing list jboss-use

[jboss-user] [EJB 3.0] - Re: Driver problems with Persistence.XML

2007-11-21 Thread waynebaylor
no oracle-ds.xml in the deploy dir? also, are you using ojdbc14.jar? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4106893#4106893 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4106893 _

[jboss-user] [EJB 3.0] - Re: Persistent unit problem

2007-11-20 Thread waynebaylor
try using just "eCMDataSource" in your persistence.xml instead of prefixing with java:/ View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4106388#4106388 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4106388 __

[jboss-user] [EJB 3.0] - Re: Need Help! encounter strange Exception:not used by any E

2007-11-20 Thread waynebaylor
i've seen this error before when i use @EJB, but don't actually invoke any methods on the injected instance. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4106387#4106387 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4

[jboss-user] [JNDI/Naming/Network] - Re: Help with simple sample setup.

2007-11-16 Thread waynebaylor
well, i'm not a JMX guru, but i had to add the following to my run.conf to enable remote JMX in jboss: #added for remote access to JMX (for example Hyperic) | JAVA_OPTS="$JAVA_OPTS -Djavax.management.builder.initial=org.jboss.system.server.jmx.MBeanServerBuilderImpl" | JAVA_OPTS="$JAVA_OPTS -

[jboss-user] [JNDI/Naming/Network] - Re: Help with simple sample setup.

2007-11-16 Thread waynebaylor
you can monitor your MBean from the jmx-console, or do you need to use an application client? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4105602#4105602 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4105602

[jboss-user] [EJB 3.0] - Re: ManyToMany mapping with a JoinTable having extra fields

2007-11-16 Thread waynebaylor
i agree, you should try mapping the relationship to another entity: Client <-->RelationshipEntity<-->Employee View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4105560#4105560 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=

[jboss-user] [JNDI/Naming/Network] - Re: Help with simple sample setup.

2007-11-16 Thread waynebaylor
sars are okay, but MBeans aren't stored in JNDI automatically like Session beans. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4105545#4105545 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4105545

[jboss-user] [EJB 3.0] - Re: EJB 3 Required to Override equals & hashCode

2007-11-15 Thread waynebaylor
go for logical equality, so if your entity has three fields: | @Id | @GeneratedValue | private int id; | | private String firstName; | | private String lastName; then equals/hashCode should be based on first/lastName and not id. View the original post : http://www.jboss.com/inde

[jboss-user] [JNDI/Naming/Network] - Re: Help with simple sample setup.

2007-11-15 Thread waynebaylor
okay, are you deploying a jar or an ear? if you're using a jar, the name is BeanName/local or BeanName/remote; if you're using an ear, then the name is EarName/BeanName/local or EarName/BeanName/remote. and have you checked JNDIView too see if the name is there? View the original post : http:/

[jboss-user] [JNDI/Naming/Network] - Re: Help with simple sample setup.

2007-11-15 Thread waynebaylor
what's the exception you're getting? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4105261#4105261 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4105261 ___ jboss-user mailin

[jboss-user] [EJB 3.0] - Re: Proxy-Class

2007-11-15 Thread waynebaylor
i know it doesn't matter in your case, but you only need the @Inheritance on the Project class... View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4105046#4105046 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4105046

[jboss-user] [EJB 3.0] - Re: Getter for LAZY property gets called on every commit

2007-11-15 Thread waynebaylor
i just looked in Enterprise JavaBeans 3.0 (page 106) and it says the fetch attribute of @Basic is just a hint and the persistence provider is allowed to eagerly load the property. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4105035#4105035 Reply to the po

[jboss-user] [EJB 3.0] - Re: generating an entity bean at runtime.

2007-11-15 Thread waynebaylor
i think that would be more trouble than it's worth. why do you want dynamically created entities? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4105032#4105032 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4105032

[jboss-user] [EJB 3.0] - Re: constraint violation issue.

2007-11-15 Thread waynebaylor
if your transaction ends after the "return response;" that extra SQL could be clean-up from hibernate or synchronization between the DB and the persistence context. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4105025#4105025 Reply to the post : http://www

[jboss-user] [EJB 3.0] - Re: java.io.InvalidClassException:

2007-11-12 Thread waynebaylor
are you using two different versions of a class? perhaps a newer and an older jar? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4103808#4103808 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4103808 __

[jboss-user] [EJB 3.0] - Re: constraint violation issue.

2007-11-12 Thread waynebaylor
my first guess would be that the delete logic is missing something that would clean up this foreign key relationship. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4103702#4103702 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=

[jboss-user] [JNDI/Naming/Network] - Re: Utilizing Non-Default Datsource With JBOSS 4

2007-11-12 Thread waynebaylor
you'll need ojdbc14.jar in the server's lib dir & and change oracle-ds.xml to use Oracle9i type-mapping. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4103687#4103687 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=41036

[jboss-user] [EJB 3.0] - Re: EJB3 not working

2007-11-10 Thread waynebaylor
you will also need a jboss-web.xml to map "ejb/UserBean" to the global JNDI name for com.website.Statefull.UserBeanLocal. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4103427#4103427 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&m

[jboss-user] [EJB 3.0] - Re: Relationship Only Saving 1 Child Object

2007-11-10 Thread waynebaylor
since you're using the mappedBy attribute your code should look something like: Order order = ...; | OrderLine ol1 = ...; | OrderLine ol2 = ...; | | ol1.setParentOrder(order); | ol2.setParentOrder(order); | | Collection orderLines = order.getOrderLines(); | orderLines.add(ol1);

[jboss-user] [EJB 3.0] - Re: trouble getting correct SFSB-instance in WAR-deployment

2007-11-09 Thread waynebaylor
when you save the sfsb are you using the same attribute name for all clients? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4103296#4103296 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4103296 _

[jboss-user] [EJB/JBoss] - Re: Client can connect to Bean before jdbc is bound

2007-11-08 Thread waynebaylor
why would you run your clients before the server is up? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4103095#4103095 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4103095 ___

[jboss-user] [EJB/JBoss] - Re: Setting up an EJB Client

2007-11-08 Thread waynebaylor
JBOSS/client/jbossall-client.jar has most, if not all, of what you'll need. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4102960#4102960 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4102960 _

[jboss-user] [JNDI/Naming/Network] - Re: EJB3: cannot be cast

2007-11-07 Thread waynebaylor
what are your jndi properties set to? are you using a jndi.properties file? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4102721#4102721 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4102721 ___

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

2007-11-06 Thread waynebaylor
yes, you have to manually bind beans to the env. you can accomplish this by using ejb-jar.xml and jboss.xml descriptors. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4102384#4102384 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&

[jboss-user] [EJB 3.0] - Re: constraint violation issue.

2007-11-06 Thread waynebaylor
are Session and SessionRate annotated as entities or are you doing everything manually with SQL? try setting this property in your persistence.xml and then check the order in which hibernate is executing the SQL true View the original post : http://www.jboss.com/index.html?module=bb&op=viewto

[jboss-user] [EJB 3.0] - Re: TransactionRequiredException: EntityManager must be acce

2007-11-05 Thread waynebaylor
have you tried setting them all to REQUIRED? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4101846#4101846 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4101846 ___ jboss-use

[jboss-user] [EJB 3.0] - Re: NetBeans 5.5 + EJB3 + JBoss 4.2 == ejbLink: not used by

2007-11-05 Thread waynebaylor
i usually get that exception when i'm using @EJB, but i never invoke any of the injected bean's methods. Does the code you posted match the code you deployed? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4101836#4101836 Reply to the post : http://www.jbos

[jboss-user] [EJB/JBoss] - Re: How to invoke a EJB with user and password to validate t

2007-11-01 Thread waynebaylor
have you looked at the security related annotations? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4101143#4101143 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4101143 ___ jb

[jboss-user] [EJB 3.0] - Re: JBoss 4.2

2007-11-01 Thread waynebaylor
it will be easier to track if you include all your info and questions in a single post View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4100945#4100945 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4100945 ___

[jboss-user] [JNDI/Naming/Network] - Re: Need to configure JNDI

2007-10-31 Thread waynebaylor
i just copied cluster-service.xml to my deploy dir, you can get in the server/all/deploy dir. if you look about halfway down it you'll see the HA-JNDI specific stuff. once that was deployed, i restarted jboss with something like C:\> run.bat -b 0.0.0.0 -g myGroupName the -b tells jboss which ip

[jboss-user] [EJB 3.0] - Re: Strange - EJB3 env-entry

2007-10-31 Thread waynebaylor
could you post the env-entry xml and field annotation you're using? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4100632#4100632 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4100632 ___

[jboss-user] [EJB 3.0] - Re: Access a file resource from EJB3.0

2007-10-30 Thread waynebaylor
i believe if you want to access resources that exist outside of the app. server's container you should use JCA. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4100339#4100339 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&

[jboss-user] [JNDI/Naming/Network] - Re: Need to configure JNDI

2007-10-30 Thread waynebaylor
have a look at this: http://docs.jboss.com/jbossas/guides/clusteringguide/r2/en/html_single/ in the process of setting up clustering you will also enable HA-JNDI. when starting a jboss instance you can use the -g flag to specify a cluster group name. JNDI lookups are slightly different too, HA-

[jboss-user] [JNDI/Naming/Network] - Re: Need to configure JNDI

2007-10-27 Thread waynebaylor
have you tried setting up HA-JNDI? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4099627#4099627 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4099627 ___ jboss-user mailing l

[jboss-user] [EJB 3.0] - Re: ArrayList Mapping

2007-10-25 Thread waynebaylor
try changing ArrayList to Collection so that it matches the return type of getVehicles() View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4099103#4099103 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4099103 _

[jboss-user] [EJB/JBoss] - Re: Problem with transaction

2007-10-24 Thread waynebaylor
have you checked out the NotSerializableException? did you forget to implement Serializable the class de.kirchedlau.ponte.ejb.entities.admin.UserGroup? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4098627#4098627 Reply to the post : http://www.jboss.com/ind

[jboss-user] [EJB 3.0] - Re: Good build.xml to build the ear file

2007-10-19 Thread waynebaylor
here's one i threw together, i'll leave it to you to figure out the dir structure that goes along with it :) | | | | | | | | | | | | | | | | | | | |

[jboss-user] [JNDI/Naming/Network] - Re: javax.naming.NameNotFoundException whe doing jndi lookup

2007-10-19 Thread waynebaylor
i don't know much about web logic, but i imagine JBoss has a different default JNDI naming convention. so, you could probably share the same java code, but you'd still have to provide an app. server specific deployment descriptor. View the original post : http://www.jboss.com/index.html?module=

[jboss-user] [EJB 3.0] - Re: Problem with Entity Manager dependency injection in JBos

2007-10-19 Thread waynebaylor
have you tried putting the persistence.xml in the META-INF dir? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4097090#4097090 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4097090 ___

[jboss-user] [EJB 3.0] - Re: comp not bound on redeploy

2007-10-19 Thread waynebaylor
is there a separate war or jar that depends on classes in the ear? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4097089#4097089 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4097089

[jboss-user] [EJB 3.0] - Re: comp not bound on redeploy

2007-10-16 Thread waynebaylor
looks like your app is not completely undeployed. are you redeploying something that has dependencies or are there things dependent on your app that aren't also being redeployed? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4095796#4095796 Reply to the post

[jboss-user] [JNDI/Naming/Network] - Re: JNDI lookup for object in remote server returns local ob

2007-10-16 Thread waynebaylor
just to make sure, when you deploy the ear to the Master Node it is also deployed to other Nodes right? i wouldn't be suprised if when the remote lookup fails the local context is then checked. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4095795#4095795

[jboss-user] [JNDI/Naming/Network] - Re: javax.naming.NameNotFoundException whe doing jndi lookup

2007-10-15 Thread waynebaylor
at first glance I would guess that using the class/interface name works in weblogic, but doesn't in Jboss because Jboss has a different default jndi naming scheme. for example: the bean public class MyBean implements MyLocal{...} could be bound in Jboss two ways: 1) in a jar the name name would

[jboss-user] [JNDI/Naming/Network] - Re: JNDI lookup for object in remote server returns local ob

2007-10-15 Thread waynebaylor
where is the lookup code located? application client (with a main method), in a servlet/jsp, etc.? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4095356#4095356 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4095356 ___

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

2007-10-12 Thread waynebaylor
| http://java.sun.com/xml/ns/persistence"; |xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; |xsi:schemaLocation="http://java.sun.com/xml/ns/persistence http://java.sun.com/xml/ns/persistence/persistence_1_0.xsd"; |version="1.0"> | | | |

[jboss-user] [JNDI/Naming/Network] - Re: How do I make a lookup in an ear.

2007-10-11 Thread waynebaylor
the "myapp1/abcbean/local" and "myapp2/abcbean/local" are default jndi names. what you should do is override them with your own jndi names. that way you can name your ear whatever you want and still use the same jndi lookups. to override the default jndi names you can use the jboss annotations

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

2007-10-10 Thread waynebaylor
you have to explicitly "put" stuff in the ejb context. this is usually done with web.xml and jboss-web.xml. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4093492#4093492 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4

[jboss-user] [EJB 3.0] - Re: deleted entity passed to persist:

2007-10-09 Thread waynebaylor
looks like your deleting the ArticleSupplierPrice objects from the DB, but not removing ArticleSupplier's references to the objects. maybe change your code to something like: | public void deleteSupplierDetails() | { | if (this.artSuppPriceList != null) | { | ArticleS

[jboss-user] [JNDI/Naming/Network] - Re: hajndi lookup

2007-10-09 Thread waynebaylor
that should work, but it will first query server1. so if server1 returns the queue, then server2 will not be queried. the servers will be queried in the order they are listed. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4093008#4093008 Reply to the post :

[jboss-user] [EJB/JBoss] - Re: Problems using Extended Persistence Context

2007-10-04 Thread waynebaylor
i think the @Remove annotation means that it will be called when the bean is removed from the pool, not that the bean will be removed with it's called. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4091700#4091700 Reply to the post : http://www.jboss.com/ind

[jboss-user] [EJB/JBoss] - Re: Problems using Extended Persistence Context

2007-10-04 Thread waynebaylor
you're client is using a new session bean for each lap. try changing it to: ... | // lap 2 | peliculas = proceso.listarPeliculas(); | showPeliculas(peliculas); | proceso.grabar(); | System.out.println("Lap 2 OK!"); each time you do a lookup for a stateful bean you'll get a new one. Vie

[jboss-user] [EJB 3.0] - Re: Working example por OneToMany cascade remove?

2007-10-03 Thread waynebaylor
the above post is a working example of cascading delete. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4091317#4091317 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4091317 __

[jboss-user] [JNDI/Naming/Network] - Re: Remote JNDI lookup best practise.

2007-10-03 Thread waynebaylor
you could cache the objects to minimize the number of lookups View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4091315#4091315 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4091315 _

[jboss-user] [EJB 3.0] - Re: hibernateexception: wrong column type in entity bean

2007-10-01 Thread waynebaylor
i've used the following in Oracle: columnDefinition = "varchar2(15 char) default ''" View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4090231#4090231 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4090231 _

[jboss-user] [EJB 3.0] - Re: hibernateexception: wrong column type in entity bean

2007-09-29 Thread waynebaylor
look at @Column's columnDefinition attribute. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4089985#4089985 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4089985 ___ jboss-use

[jboss-user] [EJB/JBoss] - Re: PersistentObjectException - Help me !!!

2007-09-28 Thread waynebaylor
if an entity with that id already exists in the DB then you need to use merge() instead of persist(). View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4089913#4089913 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4089913

[jboss-user] [JNDI/Naming/Network] - Re: NameNotFoundException in Web-Application for 'java:comp/

2007-09-26 Thread waynebaylor
have you tried the tag in web.xml? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=400#400 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=400 ___ jboss-user mailing

[jboss-user] [EJB 3.0] - Re: Entities in seperate jar files

2007-09-25 Thread waynebaylor
you can deploy each separately or package them both in an EAR and deploy the EAR. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4088553#4088553 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4088553

[jboss-user] [EJB 3.0] - Re: sharing state between web modules and ejb modules

2007-09-24 Thread waynebaylor
i would use a DB to store the data, even if it's not long lasting. i don't think it's a good idea to modify session data explicity--i would recommend the first web-module (W1) query for the current data. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4088109#4

[jboss-user] [EJB 3.0] - Re: is this a bug in EJB?

2007-09-23 Thread waynebaylor
that is the default behavior. Hibernate is parsing attribute info from the getter/setter methods since you have declared @Id on the getId() method . is*() is considered a valid getter for boolean, thus the resulting DB column. you can mark the is*() method with @Transient and it will be ignore

[jboss-user] [EJB 3.0] - Re: sharing state between web modules and ejb modules

2007-09-23 Thread waynebaylor
do you mean share state for a given session? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4087702#4087702 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4087702 ___ jboss-user

  1   2   3   >