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
___
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
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
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
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
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
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
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
___
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
___
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
_
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
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
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
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
"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
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
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
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
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
@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, 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
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
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
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
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
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
___
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
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
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
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
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
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
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
__
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,
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
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=
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,
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
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
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
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
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
_
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.
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
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
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
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
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
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:
@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
@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
___
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
___
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
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
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
"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
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:
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
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
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
*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
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
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
__
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
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
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
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=
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
"[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
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
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
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
..
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
_
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
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
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.
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
"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
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
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
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
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
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
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.
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
301 - 400 of 498 matches
Mail list logo