Howto config tomcat 5.5.17 to lookup Jboss 4.0.4's ejb on another machine?
by Him
I tried Jbuilder2006, jboss và apache run on 1 pc, and run web site by Jbuilder. Only add some lines is enough before lookup Jboss ejb:
System.setProperty("java.naming.factory.url.pkgs",
"org.jboss.namingrg.jnp.interfaces");
System.setProperty("java.naming.factory.initial",
"org.jnp.interfaces.NamingContextFactory");
System.setProperty("java.naming.provider.url", 10.0.92.6:1099);
But when i want JBoss server run on pc - ip: 10.0.92.6.
Jbuilder create war file then i'll deploy that file in Apache tomcat 5.5.17 run on pc - ip: 10.0.92.116
But with the same code,my servlet have error: cannot lookup ejb.
Anybody can help me?
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
19 years, 8 months
[EJB 3.0] - @EJB remote reference
by nickthegreat
Regarding documentation it can be done via
@EJB (mappedName"EARNAME/BEANCLASSNAME/remote")
....;
But how can I tell it the port+IP of the remote bean ?
Via "non-injected-classical lookup" it's no problem, (or e.g putting classical lookup-code into a @postconstruct interceptor)
but I couldnt find a way to get port+ip (lookup data) into a @EJB remote reference ...
I dont see why a remote reference via @EJB makes sense if you cant tell it ip+port
no big issue because there are workarounds (even creating my own extended @ejb annotation that has the ability to inject port+ip should be no big deal/porblem),
basicly, I'm just curious,
if I'm too stupid to figure out how to do it or if it really aint possible.
t.ia for help/infos :-)
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3966631#3966631
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3966631
19 years, 8 months
[JBossCache] - Re: Hibernate/Cache conceptual mismatch
by manik.surtani@jboss.com
anonymous wrote :
|
| Now, the second load request gets processed. So Hibernate checks the cache to see if the data exists there. However, we have previously acquired a write lock in the other session so this process is blocked until that write lock is released when the first session ends its transaction.
|
|
I thought you use the fail silently Option when interacting with the cache? This will prevent the cache from participating in any ongoing tx so the write lock will only exist for the duration of the cache.put() method call, not the entire transaction.
Agreed about a read-lock-only option when calling a put though, this will helpimprove concurrency a good deal more.
Curious, how do the likes of EHCache, etc. deal with this? I don't believe they have 2 different put() methods...
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3966626#3966626
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3966626
19 years, 8 months
[JBossCache] - Re: Blob balancer using cache - concept help
by manik.surtani@jboss.com
Using the file cache loader in this manner will not work, since the file cache loader serialises the attribute map of the node into a single file. Your webserver will not be able to parse and serve up this file.
Perhaps this approach may help:
1) Single, JDBC based cache loader
2) Uploading an image will result in the servlet converting the file to a byte[] and putting this in cache (so it gets stored in the db)
3) Register a cache listener on the cache, which when a node is created, your cache listener writes the byte[] to your filesystem in a specified place, in the file format specified.
4) Since the cache will replicate it's contents, this will trigger cache listeners on each instance in your cluster, so the file is created on the filesystems on each cluster node.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3966619#3966619
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3966619
19 years, 8 months