[jboss-user] [EJB 3.0] - Re: what happen with my entity bean , need expert help

2007-07-27 Thread ALRubinger
Can you please post the stack trace you're getting? S, ALR View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4068293#4068293 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4068293 ___

[jboss-user] [EJB 3.0] - Re: what happen with my entity bean , need expert help

2007-07-26 Thread ALRubinger
JF HEINTZ - Are you also using @Inject instead of @PersistenceUnit? Post your code? ejbiva, Did this work for you? S, ALR View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4068039#4068039 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posti

[jboss-user] [EJB 3.0] - Re: EJBs depends on each other

2007-07-20 Thread ALRubinger
Try annotating one with @IgnoreDependency as well as @EJB... I have many cases of co-dependent beans, but so long as your dependency is not required in @PostConstruct, you should be OK... S, ALR View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4066325#4066325

[jboss-user] [EJB 3.0] - Re: EJB with synchronized

2007-07-20 Thread ALRubinger
According to the EJB3 Spec, 4.7.11, the container is responsible to ensure that only one thread is passed through any session bean instance at any one time. Therefore, using the synchronized on a method would be moot. However, it's entirely possible to have many instances accessing the same fie

[jboss-user] [EJB 3.0] - Re: How do we control the order of deployment?

2007-07-20 Thread ALRubinger
At quick look: You have @PersistenceContext(unitName = "empmstEntityManager") atop your entity bean.. This is used to inject the EM into the underlying field. To make your Entity become a part of the EM, ensure its packaged into its own JAR (along with the other Entity beans) with a persisten

[jboss-user] [Testimonials] - Synchronicity LIVE

2007-07-20 Thread ALRubinger
Synchronicity LIVE, a real-time live and archived music application, has launched earlier this week featuring streaming video and server push technology. Developed by 9mmedia, LLC in Manhattan, the site is built on JBoss 4.0.5 and EJB3 RC9, using Adobe Flash/Flex for the UI and Adobe Live Cycle

[jboss-user] [EJB 3.0] - Re: what happen with my entity bean , need expert help

2007-07-19 Thread ALRubinger
Agree w/ Wayne. Beat me to it. :) View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4065959#4065959 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4065959 ___ jboss-user mailing l

[jboss-user] [EJB 3.0] - Re: what happen with my entity bean , need expert help

2007-07-18 Thread ALRubinger
Could you post your code for the Session Bean? S, ALR View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4065575#4065575 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4065575 ___

[jboss-user] [Messaging, JMS & JBossMQ] - Re: Specifying DestinationManager and

2007-06-15 Thread ALRubinger
Thanks for the clarification, Adrian; will investigate. S, ALR View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4054879#4054879 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4054879 ___

[jboss-user] [EJB 3.0] - Re: Urgent Help needed..Strange behavior with java client ac

2007-06-12 Thread ALRubinger
Maybe check /etc/hosts, run ifconfig, make sure the address you're passing is valid? S, ALR View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4053627#4053627 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4053627 _

[jboss-user] [EJB 3.0] - Re: how to access more than one EJB containers in one JSP

2007-06-12 Thread ALRubinger
Sorry, fullr read your questions. With injection, you'd be limited to injecting services that are within the same container. S, ALR View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4053435#4053435 Reply to the post : http://www.jboss.com/index.html?module=b

[jboss-user] [EJB 3.0] - Re: how to access more than one EJB containers in one JSP

2007-06-12 Thread ALRubinger
You can use Injection in Servlets in the JBoss 5.0.x Beta Series, just not in 4.2 and below; they're not JEE5-conforming implementations. S, ALR View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4053433#4053433 Reply to the post : http://www.jboss.com/index.htm

[jboss-user] [EJB 3.0] - Re: EJB jar deploy order in Jboss AS

2007-06-12 Thread ALRubinger
No problem; in most cases you're really looking to introduce dependencies at the service level, not based upon order of deployment. Good luck. S, ALR View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4053432#4053432 Reply to the post : http://www.jboss.com/ind

[jboss-user] [Messaging, JMS & JBossMQ] - Specifying DestinationManager and

2007-06-12 Thread ALRubinger
Hi all: I have a few MDB listeners that do not require guaranteed delivery (or a persistent state manager), and was hoping someone had the configs handy for specifying the DestinationManager (I do have the org.jboss.mq.pm.none.PersistenceManager configured as a Null Persistence Manager) as wel

[jboss-user] [EJB 3.0] - Re: Single EJB w/ many actions or Multiple EJBs one for each

2007-06-10 Thread ALRubinger
"ALRubinger" wrote : which aims to simply... *simplify S, ALR View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4052913#4052913 Reply to the post : http://www.jboss.com/index.html?module=bb&op=postin

[jboss-user] [EJB 3.0] - Re: EJB jar deploy order in Jboss AS

2007-06-10 Thread ALRubinger
Sure. You can do a couple of things. If you're looking to alter the order of deployment: 1) Write your own DeploymentSorter and plug it into the MainDeployer in $JBOSS_HOME/server/[youServerName]/conf/jboss-service.xml - you can customize here to your heart's content. - OR - 2) Add a numeric

[jboss-user] [EJB 3.0] - Re: Issuing Commands to a Running Process

2007-06-10 Thread ALRubinger
What is your desired behaviour if a session bean attempts to send a message to this Queue after it becomes unbound at the end of the timer process? If "gets an exception and handles it gracefully" is what you want, this looks valid. You're creating a handler that will be available for a timed w

[jboss-user] [EJB 3.0] - Re: how to access more than one EJB containers in one JSP

2007-06-10 Thread ALRubinger
Haven't checked this in an IDE or anything, but this should get you the idea. Keeping in mind that business functions like obtaining and calling upon EJB3 services shouldn't really be taking place in the view layer... <%! | private YourEjbInterface1 ejb1 = null; | private YourEjbInterface2

[jboss-user] [EJB 3.0] - Re: Single EJB w/ many actions or Multiple EJBs one for each

2007-06-10 Thread ALRubinger
I think you might have to find the balance inbetween keeping aggregate functions together, and separating out enough such that you don't have a "god class". I wouldn't worry too much about "many instances of one object" vs. "many small pools of different objects". That's what the containter is

[jboss-user] [EJB 3.0] - Re: difference between @Version and EntityManager.lock

2007-06-10 Thread ALRubinger
@Version will enable JPA Optmistic locking for the entity. EM.lock allows the application to specify the lock mode to be used on the versioned object. http://java.sun.com/javaee/5/docs/api/javax/persistence/LockModeType.html This is no JPA "waiting" or caching of updates to an entity until anot

[jboss-user] [EJB 3.0] - Re: Urgent Help needed..Strange behavior with java client ac

2007-06-10 Thread ALRubinger
JBoss, starting in 4.2, for security reasons will now bind to localhost (127.0.0.1) by default. In Linux especially, some changes might have to be made to open up the bindings to listen on other IPs (either internal or external). This is done via the -b switch to run.bat/run.sh. Like: $JBOSS

[jboss-user] [EJB 3.0] - Re: Can Hibernate Annotation Extensions be used on JBoss?

2007-05-18 Thread ALRubinger
Hibernate is the underlying JPA Persistence Provider; yes. S, ALR View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4046890#4046890 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4046890

[jboss-user] [EJB 3.0] - Re: JNDI lookup from app server of ejb in another server ret

2007-05-18 Thread ALRubinger
Could be a few things. First check the JNDI Console to be sure you''re looking up the right address in EJB_NAME: http://jboss.org/wiki/Wiki.jsp?page=DisplayTheJDNITreeWithTheJMXConsole Won't be the Interceptor; you're simply doing a lookup of an arbitrary object in JNDI. Are both app server

[jboss-user] [EJB 3.0] - Re: Stateless and JNDI once again

2007-05-16 Thread ALRubinger
Peper sent me his code, and the fix was related to Classloading in JBoss. Reference: http://wiki.jboss.org/wiki/Wiki.jsp?page=ClassLoading Peper had an EAR, and in it, a WAR and EJB3 JAR. Within the WAR WEB-INF/classes were class files also defined in the EJB3 JAR. Because more than one cla

[jboss-user] [EJB 3.0] - Re: Stateless and JNDI once again

2007-05-15 Thread ALRubinger
Curious as to why you're having this problem. If you ZIP/TAR up your source and email me, I'll have a look. Contact info in my profile. S, ALR View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4045931#4045931 Reply to the post : http://www.jboss.com/index.htm

[jboss-user] [EJB 3.0] - Re: Stateless and JNDI once again

2007-05-14 Thread ALRubinger
Do you have an @Local annotation on ProjectFacadeLocal? S, ALR View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4045590#4045590 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4045590 ___

[jboss-user] [EJB 3.0] - Re: package protected interfaces

2007-05-03 Thread ALRubinger
Is it possible that the container is deploying your test-ejb.jar before your test-core.jar? If so, it'll be attempting to deploy your EJB3 beans before the required libraries are in place. If this is the case, try: 1) Placing test-core.jar into $JBOSS_HOME/server/[instanceName]/lib (assuming

[jboss-user] [EJB 3.0] - Re: Entitymanager Persistent

2007-05-03 Thread ALRubinger
Well, unless the relationship defined is annotated with @Cascade (CascadeType.PERSIST), you can't persist one entity and expect the relationship to be inserted as well. So that's one solution. However, I typically keep the Cascading strategies to NONE as a default (to keep close tabs on what o

[jboss-user] [EJB 3.0] - Re: Annotation @EJB not working

2007-04-25 Thread ALRubinger
If only. But if someone were to write the code to look for annotations in your Servlets, they might as well just inject instead of throwing an exception. ;) S, ALR View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4040743#4040743 Reply to the post : http://www

[jboss-user] [EJB 3.0] - Re: EntityManager Null when trying to inject into stateless

2007-04-25 Thread ALRubinger
I couldn't say for sure, but a flag to me is that you're putting your EJBs in the WAR. I usually separate them into their own JARs with a: | ejbs-name.jar | ...in META-INF/application.xml so the EJB3 Deployer knows to scan for them. S, ALR View the original post : htt

[jboss-user] [EJB 3.0] - Re: Annotation @EJB not working

2007-04-25 Thread ALRubinger
Oh, sorry, missed the part about your injecting into a Servlet. Injection is not yet supported in the 4.0.x series. S, ALR View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4040636#4040636 Reply to the post : http://www.jboss.com/index.html?module=bb&op=postin

[jboss-user] [EJB 3.0] - Re: Annotation @EJB not working

2007-04-25 Thread ALRubinger
Are you using javax.annotation.EJB or javax.ejb.EJB? Should be the latter. http://wiki.jboss.org/wiki/Wiki.jsp?page=FromRC7RC8 S, ALR View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4040633#4040633 Reply to the post : http://www.jboss.com/index.html?module=b

[jboss-user] [EJB 3.0] - Re: @ApplicationException(rollback=true) in Inheritance

2007-04-25 Thread ALRubinger
Thanks everyone, and Reverend Carlo, for throwing the book at me. :) S, ALR View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4040626#4040626 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4040626 __

[jboss-user] [EJB 3.0] - @ApplicationException(rollback=true) in Inheritance

2007-04-11 Thread ALRubinger
Assuming I have: @ApplicationException(rollback=true) | public class MyException extends RuntimeException and public class MySpecialException extends MyException ...should I expect MySpecialException to rollback the transaction when encountered? Or does it also need its own annotation? S,

[jboss-user] [EJB 3.0] - Re: Seeing values in SQL statements

2007-03-29 Thread ALRubinger
PreparedStatements log out with the values as "?" To get the actual data sent to the DB, I typically consult the DB Query Log. S, ALR View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4032907#4032907 Reply to the post : http://www.jboss.com/index.html?modul

[jboss-user] [EJB 3.0] - Re: Dependency Injection of EntityManager / -Factory in Serv

2007-03-15 Thread ALRubinger
Ah, glazed over that "application managed" part. I can see why that'd give you problems. Check out Seam. :) S, ALR View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4028559#4028559 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=

[jboss-user] [EJB 3.0] - Re: Dependency Injection of EntityManager / -Factory in Serv

2007-03-15 Thread ALRubinger
Oh, I didn't mean to infer that. By putting the EM in JNDI (it gets placed into the "Java:/" Namespace), your Servlet can obtain an EM via a traditional Context.lookup call (just like application clients find EJB stubs). You just can't inject. Or, you can look into integrating w/ JBoss Seam,

[jboss-user] [EJB 3.0] - Re: JNDI and Client Application

2007-03-14 Thread ALRubinger
The TrailBlazer http://trailblazer.demo.jboss.com/EJB3Trail/ is usually a pretty good start. :) S, ALR View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4028128#4028128 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=402812

[jboss-user] [EJB 3.0] - Re: PersistenceContext and EntityManager

2007-03-14 Thread ALRubinger
anonymous wrote : Why is injection done AFTER the constructor? How is it possible to inject values into an object *before* the object itself has been created? S, ALR View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4028126#4028126 Reply to the post : http://w

[jboss-user] [EJB 3.0] - Re: Dependency Injection of EntityManager / -Factory in Serv

2007-03-14 Thread ALRubinger
Hiya. Couple things: * Injection is not supported in Servlets for 4.0.5 - it's coming soon as it's defined by the JEE5 Spec * To put your EM in JNDI, you need to add a couple lines to your persistence.xml (This post http://jboss.org/?module=bb&op=viewtopic&t=96857 addresses this issue) * Ensur

[jboss-user] [EJB 3.0] - Re: How to look up one of the many interfaces that a bean im

2007-02-24 Thread ALRubinger
Right...so the proxy object is going to be created by JBoss and will implement all the interfaces you designate. When your client does a lookup for this object, it's going to get loaded by the classloader, along with all dependencies it has. So if the definition in the classfile is something li

[jboss-user] [EJB 3.0] - Re: @RemoteBinding doesn't work?

2007-02-23 Thread ALRubinger
Is DemoRemote annotated w/ @Remote? (Stab in the dark) This has always worked for me... S, ALR View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4021122#4021122 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4021122 _

[jboss-user] [EJB 3.0] - Re: How to look up one of the many interfaces that a bean im

2007-02-22 Thread ALRubinger
Word. S, ALR View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4020906#4020906 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4020906 ___ jboss-user mailing list jboss-user@lists.

[jboss-user] [EJB 3.0] - Re: How to look up one of the many interfaces that a bean im

2007-02-22 Thread ALRubinger
The value stored in JNDI is an object - a proxy object that implements the interfaces you define. So...no, you can't pull out an object that only implements one of the interfaces you've defined. However, you should be casting the proxy from JNDI into the interface you want... Interface1 myBea

[jboss-user] [EJB 3.0] - Re: Can I use @Ejb in an MBean?

2007-02-12 Thread ALRubinger
The "@EJB" (javax.ejb.EJB) annotation, yep. S, ALR View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4015088#4015088 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4015088 ___ jbo

[jboss-user] [EJB 3.0] - Re: Local JNDI name for EntityManager?

2007-02-12 Thread ALRubinger
If you'd like to have the EntityManager and Factory accessible via JNDI, just add these to your persistence.xml (will place in Global scope): | S, ALR View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4015084#4015084 Reply to the post : http://www.jboss.co

[jboss-user] [EJB 3.0] - Re: How to get Query time??

2007-02-09 Thread ALRubinger
You can hook into the Hibernate Entity Event Listeners and do a compare of times the Pre- and Post Events are fired... http://www.hibernate.org/hib_docs/v3/api/org/hibernate/event/package-summary.html S, ALR View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4013

[jboss-user] [EJB 3.0] - Re: How to embed version number in ejb jndi names?

2007-02-08 Thread ALRubinger
Also...if you start placing different versions of the same class name in separate EJB modules, you'll get all sorts of classloading errors unless you constrain each deployable unit to its own scoped classloader. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4

[jboss-user] [EJB 3.0] - Re: Passing parameters to interceptors

2007-02-08 Thread ALRubinger
The names of the parameters are in the source and won't be available in the bytecode after compilation, therefore you won't be able to get to them at Runtime. :( S, ALR View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4013238#4013238 Reply to the post : http:

[jboss-user] [EJB 3.0] - Re: How to embed version number in ejb jndi names?

2007-02-07 Thread ALRubinger
@LocalBinding and @RemoteBinding :) S, ALR View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4012773#4012773 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4012773 ___ jboss-user

[jboss-user] [EJB 3.0] - Re: EJB client: NullPointerException in StatelessLocalProxy

2007-02-05 Thread ALRubinger
@EJB injection into Servlets isn't yet supported, Yannik. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4011569#4011569 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4011569 ___

[jboss-user] [EJB/JBoss] - Re: Remote not bound

2007-02-05 Thread ALRubinger
Also, you can't declare @Local and @Remote on the same interface... S, ALR View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4011442#4011442 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4011442 ___

[jboss-user] [EJB 3.0] - Re: Two databases, two persistence-units but one entity jar-

2007-02-02 Thread ALRubinger
Looks like: http://jira.jboss.com/jira/browse/EJBTHREE-560 ...you can watch or vote on it :) S, ALR View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4010149#4010149 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4010149

[jboss-user] [EJB 3.0] - Re: ClassCastException in the InvokeRemoteInterceptor

2007-02-02 Thread ALRubinger
When you updated to 4.0.5, did you also update the libs in the client classpath? Versioning conflicts may explain the CCE. S, ALR View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4010102#4010102 Reply to the post : http://www.jboss.com/index.html?module=bb&op

[jboss-user] [EJB 3.0] - Re: trying to get the language from de jndi context in EJB3S

2007-02-01 Thread ALRubinger
Properties prop = new Properties(); | prop.put( Context.LANGUAGE, "ca"); | new InitialContext(prop).getEnvironment().get(Context.LANGUAGE); ? S, ALR View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4009630#4009630 Reply to the post : http://www.jboss.com/i

[jboss-user] [EJB 3.0] - Re: ServiceLocator pattern - delegates in the context of EJB

2007-02-01 Thread ALRubinger
"alesj" wrote : Lame in what way? | Why the need for ServiceLocator, what do you gain? Lame in the way that the EJB3 Spec allowed intracontainer injection of dependencies; why not provide the same utility to client applications? And in the process...abstract the inner plumbing of JNDI Lookups

[jboss-user] [JCA/JBoss] - Re: Prefill Pool for XA Datasource?

2007-01-30 Thread ALRubinger
Yep, was going to offer to just change the DTD. DTD in $JBOSS_HOME/docs/dtd looks good. The public version online is probably just out-of-date: http://www.jboss.org/j2ee/dtd/jboss-ds_1_5.dtd >From "docs" in my installation: $Id: jboss-ds_1_5.dtd 45250 2006-05-25 21:35:10Z wprice $ Online: $Id:

[jboss-user] [JCA/JBoss] - Re: Prefill Pool for XA Datasource?

2007-01-30 Thread ALRubinger
Actually...send me a link to the JIRA task? I gotta get this working for myself anyway, so I'll fix and commit it. S, ALR View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4008553#4008553 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting

[jboss-user] [JCA/JBoss] - Re: Prefill Pool for XA Datasource?

2007-01-30 Thread ALRubinger
And thank you for your help. S, ALR View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4008552#4008552 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4008552 ___ jboss-user mailin

[jboss-user] [JCA/JBoss] - Re: Prefill Pool for XA Datasource?

2007-01-30 Thread ALRubinger
Thanks, Weston, saw that. But according to the DTD: http://www.jboss.org/j2ee/dtd/jboss-ds_1_5.dtd";> ..."prefill" is not a valid option. I originally thought that "prefill" might have only been for local-tx, but a quick glance at the DTD shows that "prefill" isn't allowed anywhere. Am I usi

[jboss-user] [JCA/JBoss] - Re: Prefill Pool for XA Datasource?

2007-01-30 Thread ALRubinger
*root* cause, of course. :) S, ALR View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4008480#4008480 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4008480 ___ jboss-user mailing

[jboss-user] [JCA/JBoss] - Prefill Pool for XA Datasource?

2007-01-30 Thread ALRubinger
Is there a way to configure XA Datasource Pools to prefill? On the first run of Unit Tests for my application, occasionally one test will fail with "Cannot obtain connection" as the rout cause; I'm guessing that too many requests at once for connections from my database is flooding it. Anyone

[jboss-user] [EJB 3.0] - Re: Warning: Persistence provider caller does not implements

2007-01-30 Thread ALRubinger
http://jboss.com/index.html?module=bb&op=viewtopic&t=91175&view=next :) S, ALR View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4008370#4008370 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4008370 __

[jboss-user] [EJB 3.0] - Re: How to deploy an EJB3 app in production ?

2007-01-29 Thread ALRubinger
Simple usually is. :) In my environment I'm currently using a little EJB3 JMX Pojo called a "DatabaseBootstrapService". Its responsibility: * Ensure the necessary schemas exist, and if not, creates 'em * Ensure the necessary DB users exist, and if not, creates 'em. * Creates the necessary table

[jboss-user] [EJB 3.0] - Re: How to deploy an EJB3 app in production ?

2007-01-29 Thread ALRubinger
If you're just looking for the SQL that was executed by Hibernate to make the tables, you can configure Log4J: | | | | | | S, ALR View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4007983#4007983 Reply

[jboss-user] [Installation, Configuration & Deployment] - Re: jboss startup error: Error starting ServerSocket

2007-01-27 Thread ALRubinger
Looks like you're trying to bind to an external IP (195.41.53.217) whereas the actual IP of your machine is internal (192.168.1.3). Try editing /etc/hosts to remove the binding, or set the hostname from the commandline: > hostname localhost S, ALR View the original post : http://www.jboss.co

[jboss-user] [EJB 3.0] - Re: Sudden unexplainable problem w/ persistence unit

2007-01-26 Thread ALRubinger
Did you change Hibernate mappings? Looks like an error thrown when validating that your configs are correct. S, ALR View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4007077#4007077 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=

[jboss-user] [EJB 3.0] - Re: how to inject dependency on an mbean

2007-01-26 Thread ALRubinger
In @Resource injection, the value "mappedName" attribute should be the JNDI name of the resource, not the service name. :) Like: @Resource(mappedName = "java:/jdbc/myapp/myDs") | private DataSource myDs; S, ALR View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic

[jboss-user] [EJB 3.0] - Re: Transaction does not rollback

2007-01-26 Thread ALRubinger
"[EMAIL PROTECTED]" wrote : application defined exceptions to not rollback the current transaction. You need to use the context setRollbackOnly to achieve this effect. This can't still be true? S, ALR View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4006904#40

[jboss-user] [EJB 3.0] - Re: RuntimeExceptions caught, wrapped in EJBException

2007-01-24 Thread ALRubinger
Nice. I'm doing something very similar (reading in declared exceptions, logging if not declared). Thanks for the reinforcement. :) S, ALR View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4005908#4005908 Reply to the post : http://www.jboss.com/index.html?mod

[jboss-user] [EJB 3.0] - Re: RuntimeExceptions caught, wrapped in EJBException

2007-01-23 Thread ALRubinger
I've made a little Interceptor to do the trick here, but when configuring, I'm unsure how to signal to AOP that I'd like to intercept "all client calls to the service methods", not "all calls to service methods, including internal ones when a service method calls another". I've currently config

[jboss-user] [EJB 3.0] - Re: EJB3 interfaces questions

2007-01-22 Thread ALRubinger
1) Nope. I would recommend keeping the methods in your interface "Reverse", then make a couple of children, "ReverseLocal" and "ReverseRemote", and making these your @Local and @Remote APIs. 2) Depends on your packaging. http://docs.jboss.org/ejb3/app-server/tutorial/jndibinding/jndi.html ..

[jboss-user] [EJB 3.0] - Re: RuntimeExceptions caught, wrapped in EJBException

2007-01-08 Thread ALRubinger
anonymous wrote : Always wondered why unchecked/undeclared exceptions get wrapped... Will correct myself. I understand why they're wrapped. I do not understand why they are not thrown on the server to generate an error. S, ALR View the original post : http://www.jboss.com/index.html?module

[jboss-user] [EJB 3.0] - Re: RuntimeExceptions caught, wrapped in EJBException

2007-01-08 Thread ALRubinger
Wow, great. Looks like the interceptor-based solution will be the way to go. Will try this out and repost. Thanks. Always wondered why unchecked/undeclared exceptions get wrapped... S, ALR View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3999011#3999011 Rep

[jboss-user] [EJB 3.0] - RuntimeExceptions caught, wrapped in EJBException

2007-01-07 Thread ALRubinger
Hiya. So whenever the container encounters a RuntimeException, it's wrapped and rethrown to the client as an EJBException. This behaviour can be overridden by annotating the RuntimeException with @ApplicationException. But what about cases where the RuntimeException is not a custom one? Whene

[jboss-user] [EJB 3.0] - Re: PersistenceUnitInfo.getNewTempClassLoader() is null.

2007-01-04 Thread ALRubinger
Emmanuel says "ignore" :) http://jboss.com/index.html?module=bb&op=viewtopic&t=91175&view=next S, ALR View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3998010#3998010 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3998010

[jboss-user] [EJB 3.0] - Re: RC9 Patch 1 released

2007-01-03 Thread ALRubinger
Yep; this was also present in the first RC9 release, with a couple other issues: http://wiki.jboss.org/wiki/Wiki.jsp?page=FromRC8RC9 S, ALR View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3997652#3997652 Reply to the post : http://www.jboss.com/index.html?mod

[jboss-user] [EJB 3.0] - Re: Urgent Help needed..Strange behavior with java client ac

2006-12-29 Thread ALRubinger
Have you overridden @RemoteBinding.clientBindUrl or its XML equivalent on your EJB? If so, it's possible you've hardcoded the lookup address in the proxy object. S, ALR View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3996875#3996875 Reply to the post : http

[jboss-user] [EJB 3.0] - Re: Getting Syntax error with EJB 3.0.

2006-12-27 Thread ALRubinger
http://docs.jboss.org/ejb3/app-server/tutorial/jndibinding/jndi.html When in doubt, check the docs. :) S, ALR View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3996444#3996444 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p

[jboss-user] [EJB 3.0] - Re: Urgent Help needed !! ejb3 lookup problem from remote c

2006-12-23 Thread ALRubinger
anonymous wrote : It works fine if jboss server and client is running on the same machine. | If I run the client from a remote machine, I get the following error | anonymous wrote : p.put(Context.PROVIDER_URL,"jnp://host:1099"); You're changing the host accordingly when attempting the lo

[jboss-user] [EJB 3.0] - Re: Getting an EntityManagerFactory from within a Servlet (J

2006-12-23 Thread ALRubinger
EntityManagers and factories aren't placed in JNDI by default... http://www.jboss.org/index.html?module=bb&op=viewtopic&t=91376 ...some discussion in that thread to configure your persistence.xml to do so. :) S, ALR View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopi

[jboss-user] [EJB 3.0] - Re: Help With EJB 3 & JBoss 4.0.5

2006-12-23 Thread ALRubinger
Thanks for sending that reference along, Wolfgang. Hadn't come across the newer version yet. S, ALR View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3996066#3996066 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3996066

[jboss-user] [EJB 3.0] - Re: Getting Syntax error with EJB 3.0.

2006-12-23 Thread ALRubinger
anonymous wrote : My doubt is that don't we need to have an xml descriptor for ejb3 deployement in the server? If you're using annotations on your beans, you won't need the XML descriptor. Just throw into a JAR and deploy. S, ALR View the original post : http://www.jboss.com/index.html?modu

[jboss-user] [EJB 3.0] - Re: Help on EjB 3 Packaging

2006-12-23 Thread ALRubinger
Sure, this is a valid setup; shouldn't be any consequences unless you eventually specify that one module depends on another, in which case you'll get errors unless they're deployed together at the same time. Also, EAR packaging will allow you to change up the classloading configuration, as yo

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

2006-12-19 Thread ALRubinger
Glad to hear it. As an aside, you might want to look at centralizing your JNDI calls outside of your servlets. Check out the Service Locator Pattern: http://java.sun.com/blueprints/corej2eepatterns/Patterns/ServiceLocator.html Word. S, ALR View the original post : http://www.jboss.com/inde

[jboss-user] [EJB 3.0] - Re: Help on EjB 3 Packaging

2006-12-19 Thread ALRubinger
It's probably a good practice to separate out your Entity beans into their own JAR; each persistence unit is scoped to that JAR alone per the spec. I generally like to give each of my "services" (which may be JMX, Stateful, or Stateless EJBs) its own JAR, each unique collection of Entity Beans p

[jboss-user] [EJB 3.0] - Re: Help With EJB 3 & JBoss 4.0.5

2006-12-19 Thread ALRubinger
Try enclosing "/ats-EJB.jar" in : ats-EJB.jar Also, I don't recognize the schema definition you're using...was expecting to see: http://java.sun.com/xml/ns/j2ee"; version="1.4" | xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; | xsi:schemaLocation="http://java.sun.com /xml/n

[jboss-user] [EJB 3.0] - Re: Help With EJB 3 & JBoss 4.0.5

2006-12-19 Thread ALRubinger
Can you provide your packaging structure and application.xml? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3995111#3995111 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3995111 _

[jboss-user] [EJB 3.0] - Re: Hot-Deployment-Problem

2006-12-19 Thread ALRubinger
Looks more like when you updeploy your app, other code in there is still holding references to the undeployed files. Check the section on hot redeployment in tha ClassLoading Wiki: http://www.jboss.org/wiki/Wiki.jsp?page=JBossClassLoadingUseCases This will help you to understand the classloadi

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

2006-12-19 Thread ALRubinger
Sure, you can use the @LocalBinding annotation on either your interface or Implementation Class: @LocalBinding(jndiBinding = "yourcompany/yourServiceName/local") ...to override the default JNDI naming scheme. S, ALR View the original post : http://www.jboss.com/index.html?module=bb&op=viewtop

[jboss-user] [EJB 3.0] - Re: Getting Syntax error with EJB 3.0.

2006-12-18 Thread ALRubinger
Sorry; by "RC9" I was referring to RC9 of the EJB3 Project, available as a separate component from JBoss AS: http://sourceforge.net/project/showfiles.php?group_id=22866&package_id=132063 ...or by using the JBossAS JNLP Installer for JBossAS 4.0.5, and selecting the EJB3 profile when prompted.

[jboss-user] [EJB 3.0] - Re: Configuration of EJB

2006-12-15 Thread ALRubinger
Bean pooling can be managed by the @PoolClass annotation: http://docs.jboss.org/ejb3/embedded/api/org/jboss/annotation/ejb/PoolClass.html The JNDI Viewer in the JMX Console will show you the JNDI Tree, and on interfaces implemented in the bound objects: http://jboss.org/wiki/Wiki.jsp?page=Displ

[jboss-user] [EJB 3.0] - Re: Getting Syntax error with EJB 3.0.

2006-12-14 Thread ALRubinger
"dvuday" wrote : configuration: | | JDK: 1.5.0 | JBOSS: 4.0.3SP1 | Eclipse: 3.1 | | Ah. I can't remember what versions of which, and where the JARs were from that far back... JBoss 4.0.4-GA (I believe) shipped w/ EJB3 RC7, and 4.0.5 has RC9. I'd recommend wither upgrading JBoss

[jboss-user] [EJB 3.0] - Re: Getting Syntax error with EJB 3.0.

2006-12-13 Thread ALRubinger
java.ejb.Stateless is in $JBOSS_HOME/client/jboss-ejb3-client.jar ...you sure that's in your classpath? If you're sure of that, what version of EJB3 are you using? S, ALR View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3993614#3993614 Reply to the post : ht

[jboss-user] [EJB 3.0] - Re: RC9 mappedBy and InheritanceType.JOINED problem

2006-12-13 Thread ALRubinger
Does GenericItem have a @MappedSuperclass annotation? And does the "state" field or getter method have @ManyToOne? S, ALR View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3993611#3993611 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting

[jboss-user] [EJB 3.0] - Re: How to get EnitityManager in SLSB without injection??

2006-12-12 Thread ALRubinger
You can just load the EM, no need to go through the factory. I've always done the lookup into an instance variable via resource injection: @Resource(mappedName="theJNDINameOfEM") | private EntityManager em; I believe you shouldn't have to register the EM with the transaction; the container sho

[jboss-user] [EJB 3.0] - Re: How to get EnitityManager in SLSB without injection??

2006-12-11 Thread ALRubinger
Never tried it in the way you've outlined. You can, however, store the EntityManager and EntityManagerFactory in JNDI and look up from there by putting the following in your persistence.xml: | S, ALR View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=399293

[jboss-user] [EJB 3.0] - Re: reentrant annotation?

2006-11-28 Thread ALRubinger
If I remember correctly... Entity Beans could be marked as "reentrant". Session Beans did not require a "reentrant" marking because if Stateless, the container would return another separate instance, and Stateful was prohibited (as it is now)... EJB 2.1 Spec, Final Draft, 7.12.10: anonymous w

[jboss-user] [EJB 3.0] - Re: java.lang.ClassCastException: $Proxy79 getting conext

2006-11-28 Thread ALRubinger
Yes. And you're looking up the one in local, and trying to cast it into the object type stored under remote. WebkidsAdminLite/webkidsFacade/local < $Proxy79 implements interface org.usiis.model.webkidsFacadeLocal WebkidsAdminLite/webkidsFacade/remote < $Proxy77 implements interface org.usiis.

[jboss-user] [EJB 3.0] - Re: java.lang.ClassCastException: $Proxy79 getting conext

2006-11-28 Thread ALRubinger
Try: anonymous wrote : WebkidsFacadeLocal = | (webkidsFacadeLocal) context.lookup("WebkidsAdminLite/webkidsFacade/local"); ...looks like "WebkidsFacade" is stored under "remote". S, ALR View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=398948

<    1   2   3   4   5   >