Time |
S |
Nick |
Message |
00:05 |
|
|
MegaMatt joined ##javaee |
00:31 |
|
|
SoniEx2 joined ##javaee |
00:32 |
|
|
SExJ joined ##javaee |
01:00 |
|
|
scripty joined ##javaee |
01:58 |
|
|
cem_ left ##javaee |
02:52 |
|
|
sfisque joined ##javaee |
02:52 |
|
|
sfisque1 joined ##javaee |
03:16 |
|
|
LeoGong joined ##javaee |
03:16 |
|
|
LeoGong left ##javaee |
04:19 |
|
|
sess_ joined ##javaee |
04:29 |
|
|
LeoGong joined ##javaee |
04:31 |
|
|
cem_ joined ##javaee |
04:31 |
|
cem_ |
konichiwa |
04:40 |
|
|
LeoGong joined ##javaee |
04:42 |
|
|
LeoGong joined ##javaee |
04:44 |
|
|
LeoGongLin joined ##javaee |
05:05 |
|
|
Quest joined ##javaee |
05:06 |
|
Quest |
chatting app and chats saved in database. take example of IRC. one user sends message to a room. 1000 users. how to keep track that which user recieved the message and who didnt? |
05:09 |
|
sfisque1 |
time slices |
05:10 |
|
sfisque1 |
if you know when they enter and when they exit, you can calculate if they "saw it" |
05:10 |
|
sfisque1 |
just make sure you capture timestamps on when msgs appear |
05:10 |
|
sfisque1 |
and then if it's inside the window for a user, they saw it |
05:17 |
|
Quest |
offline messages should be notified when user comes online |
05:18 |
|
sfisque |
so assuming you have their "last logged in time" you can then query for every msg btween then and now |
05:19 |
|
Quest |
but if user gets disconnected in between. he will re login. yes sound ok |
05:20 |
|
Quest |
so show messages between last disconnection time and this login time |
05:23 |
|
Quest |
sfisque how about put a copy of the message id in a queue for each user then. just take the message out of the user's queue when its read . delete. |
05:25 |
|
|
LeoGong joined ##javaee |
05:26 |
|
Quest |
messages table that has id,message,sender_id and a receipts_table that has recever_id, message_id, |
05:26 |
|
Quest |
when the message is recieved, its deleted from the receipts_talbe or made true in a column of that table as 'recieved' |
05:39 |
|
sfisque |
you could do that if you have a MQ available |
05:40 |
|
|
dangertools joined ##javaee |
05:40 |
|
|
dangertools joined ##javaee |
05:40 |
|
sfisque |
i was considering just a pure sql solution, but yeah, an MQ would be the optimal solution |
05:40 |
|
sfisque |
then you hjust have to store the id of the last msg consumed by each user |
05:41 |
|
sfisque |
you'd want to have a ring though, so that msg's expire regardless of whether everyone has seen it, otherwise your queue could become pathalogically deep |
05:58 |
|
|
Quest joined ##javaee |
07:04 |
|
|
jypie joined ##javaee |
07:37 |
|
|
AlexCzar joined ##javaee |
07:54 |
|
|
mbc joined ##javaee |
08:22 |
|
|
kinabalu joined ##javaee |
09:38 |
|
|
sajjadg joined ##javaee |
09:38 |
|
|
Radditz joined ##javaee |
09:39 |
|
|
sajjadg joined ##javaee |
09:51 |
|
|
Radditz left ##javaee |
10:21 |
|
|
Guest87879 joined ##javaee |
10:54 |
|
|
sajjadg joined ##javaee |
11:13 |
|
|
tmichel joined ##javaee |
11:46 |
|
|
mask joined ##javaee |
11:47 |
|
mask |
hi! |
11:47 |
|
mask |
I'm trying to make a simple REST-service using jersey, but I can't get it work - meaning I only get a "Requested resource is not available" when I navigate to one of my classes which are annotated with @GET |
11:47 |
|
mask |
This is my webservice class: http://pastebin.com/AgC7wrUN |
11:47 |
|
mask |
but when i navigate to http://localhost:8080/oblig3/rest/reports - I get the "requested resource not available" error |
11:48 |
|
mask |
(oblig3 is the project name) |
11:48 |
|
mask |
web.xml - http://pastebin.com/QFtSDmVY |
11:48 |
|
mask |
any idea on what I'm doing wrong? I assume I've just made a simple mistake |
11:49 |
|
|
jenue joined ##javaee |
11:57 |
|
pdurbin |
mask: should your @Path have the full /path/to/the/thing ? |
11:58 |
|
mask |
pdurbin: I don't know, should it? |
11:58 |
|
|
MegaMatt joined ##javaee |
12:01 |
|
mask |
do I have to add JAX-RS to Project Facet in eclipse? |
12:12 |
|
mask |
I got it working now, so nvm ;) |
12:14 |
|
pdurbin |
mask: what was is? |
12:14 |
|
pdurbin |
it* |
12:14 |
|
mask |
pdurbin: I added JAX-RS 1.1 to Project Facets and it worked |
12:15 |
|
pdurbin |
ok, cool |
12:43 |
|
|
tommmied joined ##javaee |
13:25 |
|
|
kobain joined ##javaee |
13:28 |
|
|
jieryn joined ##javaee |
13:28 |
|
|
jieryn joined ##javaee |
13:34 |
|
|
kinabalu joined ##javaee |
13:54 |
|
|
yakari joined ##javaee |
13:55 |
|
yakari |
Hello |
13:55 |
|
yakari |
I have a question |
13:55 |
|
yakari |
i have a frontcontroller which use pattern command, but it doesn't serv css file |
13:55 |
|
yakari |
code is here |
13:55 |
|
yakari |
http://pastebin.com/Fgq7yps4 |
13:55 |
|
yakari |
someone can help me ? |
14:10 |
|
mask |
I have a rest-api and I want clients to be able to post to the api. I'm using jersey. How can I get the post-parameters and execute java-code depending on that? |
14:10 |
|
|
Naros joined ##javaee |
14:29 |
|
|
yakari joined ##javaee |
14:29 |
|
yakari |
re |
14:29 |
|
yakari |
i was disconnected, so, i have one servel which is used as frontController, it handle all request, the problem is i can't serv CSS file |
14:29 |
|
yakari |
i use command pattern, you can see code source here |
14:30 |
|
yakari |
http://pastebin.com/PuzPaTDT |
14:30 |
|
pdurbin |
mask: I saw nice examples at JaveOne but I can't remember if the talk was by Adam Bien or Arun Gupta. They both have code samples online. |
14:35 |
|
|
yakari joined ##javaee |
14:35 |
|
yakari |
re sorry, |
14:44 |
|
Naros |
I'm loving my FilteredQuery and FilteredTypedQuery<X> classes :P |
14:45 |
|
|
SExJ joined ##javaee |
14:45 |
|
pdurbin |
:) |
14:45 |
|
pdurbin |
Naros: I don't believe you weighed in on the glassfish announcement |
14:45 |
|
Naros |
Abstract away hibernate stuffs and they act just like JPA Query and TypedQuery<X> interfaces. |
14:46 |
|
Naros |
Oh? |
14:46 |
|
Naros |
What announcement was that? |
14:47 |
|
pdurbin |
https://twitter.com/glassfish/status/397670928840404992 |
14:48 |
|
Naros |
No commercial support, woah. |
14:48 |
|
Naros |
I guess as long as it continues to be open-source developed, that's cool tho |
14:48 |
|
Naros |
No different than the ASF stuffs |
14:48 |
|
pdurbin |
ASF? |
14:48 |
|
Naros |
Apache Software Foundation |
14:48 |
|
pdurbin |
oh, apahce |
14:48 |
|
Naros |
yah |
14:49 |
|
Naros |
I believe all the things I package up for the software I write for my employer is all open-source anyhow. |
14:49 |
|
Naros |
cept for our chart library |
14:49 |
|
pdurbin |
Naros: oh? is it on github? |
14:49 |
|
Naros |
Negative. |
14:50 |
|
Naros |
Our software is proprietary ofc, not distributed --- offered as a SaS |
14:50 |
|
Naros |
SaS = Software as a service |
14:54 |
|
|
SExJ joined ##javaee |
14:58 |
|
pdurbin |
ok. but open source |
14:59 |
|
SoniEx2 |
recursive methods cause StackOverflowErrors right? |
14:59 |
|
Naros |
They can |
15:00 |
|
SoniEx2 |
ok thanks |
15:00 |
|
Naros |
You can do recursive methods, you just have to be sane about how many times you invoke'em ;P |
15:01 |
|
Naros |
I've usually had some counter I maintained internally for what I considered a sane number of recursions and checked it each iteration, throwing an exception when the sane count was reached. |
15:03 |
|
Naros |
SoniEx2: but you can always increase java's stack too |
15:03 |
|
Naros |
-ss Stacksize or -oss Stacksize |
15:03 |
|
SoniEx2 |
no I don't need that |
15:03 |
|
SoniEx2 |
anyway g2g |
15:03 |
|
Naros |
laters. |
15:06 |
|
|
baloch joined ##javaee |
15:06 |
|
baloch |
hi room |
15:07 |
|
|
baloch left ##javaee |
15:16 |
|
|
Quest joined ##javaee |
15:27 |
|
|
baloch joined ##javaee |
15:34 |
|
baloch |
hi room |
15:34 |
|
baloch |
anyone there to help ? |
15:36 |
|
Guest32386 |
baloch, hi |
15:36 |
|
Guest32386 |
~ask |
15:38 |
|
baloch |
I am beginer and want to know if i focus on JSP or JSF ? |
15:39 |
|
sess |
JSP is almost a subset of JSF |
15:39 |
|
sess |
start with jsp then add jsf to that |
15:39 |
|
sess |
all jsp knowledge will be useful |
15:39 |
|
Guest32386 |
baloch, servlets and jsps are bases of any (most) frameworks . I suggest to get some level of understanding on them first |
15:39 |
|
sess |
speaking of the templating system, how data is handled is a bit different |
15:40 |
|
baloch |
and what about servlet ? |
15:40 |
|
Guest32386 |
baloch, servlets are bases of jsps |
15:40 |
|
sess |
jsps uses servlets under the hood |
15:40 |
|
sess |
they are actually compiled at runtime to actual servlets |
15:40 |
|
baloch |
yes i know that bit sess |
15:41 |
|
sess |
that said, servlets are still useful, for example i use them for downloading dynamic resources from the server |
15:41 |
|
baloch |
Java EE is such large area. I wana know where to begin things so confused |
15:42 |
|
sfisque |
of course servlets are useful. they're the underpinning of nearly every java web framework |
15:42 |
|
sess |
if you want a stable ground, start with simple java SE, then try to make a servlet, then try JSP then finally add a framework on top like spring mvc or JSF |
15:43 |
|
sfisque |
baloch i would recommend starting with some of the "edge" technologies. servlets/jsp, jdbc, jndi |
15:43 |
|
sess |
sfisque: i meant useful for an application that already uses a web framework |
15:43 |
|
baloch |
I know Java SE |
15:43 |
|
sfisque |
once you have those, adding EJB, JMS, and JMX are not so bad |
15:43 |
|
sfisque |
and JPA/JTA |
15:45 |
|
baloch |
i am confused as JSP and JSF are both for front end. why i should learn both ? |
15:49 |
|
Naros |
Ugh, I need access to my persistence context and injection doesn't work in non-spring managed beans :/ |
15:52 |
|
sfisque |
different technologies. jsf and jsp solve different things |
15:53 |
|
sfisque |
jsp solves the component-data binding in a granular way. jsp solves the representation layer problem |
15:53 |
|
sfisque |
J N D I |
15:53 |
|
sfisque |
naros |
15:54 |
|
sfisque |
injection is a convenience, you ALWAYS have jnid |
15:54 |
|
sfisque |
***jndi |
15:54 |
|
baloch |
thanks sfisque |
15:54 |
|
Naros |
yah but trying to presently stay within confines of spring. |
15:54 |
|
sfisque |
spring can s*ci 8it |
15:54 |
|
sfisque |
***s*ck it |
15:54 |
|
Naros |
lol |
15:54 |
|
Naros |
I think I'll just have a factory bean spring instantiates and use it to create my beans. |
15:55 |
|
baloch |
so i should start with jsp -> jsf ->EJB ? |
15:55 |
|
sfisque |
that would be one possible path |
15:55 |
|
Naros |
My idea was to have these FilteredQuery and FilteredTypedQuery<X> classes that look like JPA, wrapping JPA's Query and TypedQuery<X> classes but use some internal hiberante things abstracted away. |
15:55 |
|
baloch |
any other better path ? |
15:55 |
|
Naros |
but need access to the damned EM |
15:55 |
|
sfisque |
J |
15:55 |
|
sfisque |
N |
15:55 |
|
sfisque |
D |
15:55 |
|
sfisque |
I |
15:56 |
|
Naros |
:P |
15:56 |
|
sfisque |
to the tune of safety dance |
15:56 |
|
sfisque |
J J J J J J |
15:56 |
|
sfisque |
N N N N N N |
15:56 |
|
sfisque |
D D D D D D |
15:56 |
|
sfisque |
I I I I I I |
15:57 |
|
Naros |
lol I've only used JNDI to define the connection pool in tomcat and fetch it in my spring configs. |
15:57 |
|
Naros |
but spring creates my EM |
15:57 |
|
sfisque |
oh |
15:58 |
|
Naros |
The DAOs where I am using my classes have the EM but I was trying to be slick and not have to pass it as a constructor arg :P |
15:58 |
|
sfisque |
does spring have a jndi interface for looking up stuff dynamically from outside? |
15:58 |
|
Naros |
It does. |
15:58 |
|
Naros |
but not sure I can do that with the EM |
15:58 |
|
Naros |
Because I do a fair amount of spring-ish stuff with scanning packages, wiring up autowired components, etc. |
15:58 |
|
sess |
baloch: not really, though EJB could be learned at any point since it has nothing to do with jsf/jsp |
15:59 |
|
sess |
servlets/JSP will help you understand the basic request response cycle |
15:59 |
|
sess |
and know the limits of it |
15:59 |
|
sess |
then JSF comes and add a bunch of "magic" things |
15:59 |
|
sfisque |
^^^^ baloch, it's pretty much, choose a path and start learning. EE is a very large and pervasive architecture |
15:59 |
|
SoniEx2 |
back |
16:00 |
|
sess |
JSF is truly harsh for beginners |
16:00 |
|
sfisque |
yah. and if you're coming from struts/tiles, it's a complete "inversion" |
16:01 |
|
baloch |
I just know J2SE so no background other then ASP.NET and c# |
16:01 |
|
baloch |
what is the best learning path for me. |
16:01 |
|
sess |
jsf can be thought of as similar to jsp, with the difference that the backing bean has logic and db calls in it |
16:01 |
|
sfisque |
that was my point baloch. there really is no "best path" |
16:02 |
|
sfisque |
best to just choose "one of many paths" and just start running. |
16:02 |
|
baloch |
any best practice then ? |
16:02 |
|
baloch |
sess your suggestion in this ? |
16:03 |
|
sfisque |
read the specification white paper. even if much of it wont make sense, just seeing it helps familiarize yourself with the various bits. ask questions on stackoverflow. try out tutorials, no matter how stupid they may look |
16:03 |
|
sfisque |
basically, dig in. even after 14 years, i still learn new stuff about the EE platform |
16:04 |
|
sfisque |
it's THAT dense |
16:04 |
|
baloch |
i agree but the question is what to dig ? |
16:04 |
|
sfisque |
you already suggested a decent path. JSP->JSF->EJB |
16:05 |
|
pdurbin |
baloch: go watch Arun's talk linked from http://wiki.greptilian.com/java/ee/6 |
16:05 |
|
sfisque |
another path would be Servlet->JDBC, then JSP->Controller->JDBC |
16:06 |
|
sfisque |
many possible paths |
16:07 |
|
baloch |
okz.. it looks JSP is the better starting point. |
16:12 |
|
sfisque |
god i hate eclipse. and i'm forced to use it because this ancient project they want me to fix is built using it in a non-portable way (no build.xml file, >.<) |
16:12 |
|
sfisque |
lots of environmental assumptions, linkage breaks i cannot fix without having to track people down. how doe projects get this way? |
16:15 |
|
sfisque |
anyone know if there is a way to convert an eclipse project to a build.xml based one (without having to hand craft the build.xml file myself) |
16:20 |
|
pdurbin |
make a new skeleton build.xml and copy stuff over? |
16:20 |
|
sfisque |
ok, i can say this from experience now. using eclipse is as intuitive as a david lynch movie |
16:21 |
|
|
Losowski joined ##javaee |
16:21 |
|
sfisque |
i would sooner use piped echo/sed/awk/grep before actively choosing eclipse |
16:22 |
|
sfisque |
for one, why can i not double click an error in the problems pane and have it take me to where the problem is to fix it. A W E S O M E |
16:23 |
|
sfisque |
if you get sick of me ranting, let me know, i just need to vent on how bad my eclipse exp is going :P |
16:23 |
|
pdurbin |
sfisque: I can't get "next error" to work right: http://wiki.greptilian.com/netbeans |
16:23 |
|
SoniEx2 |
sfisque: make your own build.xml |
16:25 |
|
sfisque |
fair enough, but WTH does this mean: "java compiler level does not match version of the Installed Java project facet". WTF is a java project facet |
16:25 |
|
SoniEx2 |
uhh... ask eclipse? |
16:26 |
|
sfisque |
found it. buried in the preferences. |
16:26 |
|
* sfisque |
shakes his head |
16:27 |
|
SoniEx2 |
their* |
16:27 |
|
* sfisque |
smacks soniex2 with a big soba noodle |
16:27 |
|
* sfisque |
and then eats it |
16:28 |
|
sfisque |
i think today will be an udon day |
16:29 |
|
SoniEx2 |
y u no let me fix your pronouns? |
16:30 |
|
* sfisque |
shakes hir head |
16:30 |
|
sfisque |
better? |
16:30 |
|
SoniEx2 |
yeah |
16:37 |
|
|
mask joined ##javaee |
16:51 |
|
|
SExJ joined ##javaee |
16:52 |
|
SoniEx2 |
--forth WHOAMI ( please don't crash ) |
16:52 |
|
SExJ |
You are SoniEx2!~SoniEx2unaffiliated/soniex2 |
16:52 |
|
SoniEx2 |
--forth SOURCE WHOAMI . ( please don't crash ) |
16:52 |
|
SExJ |
[You are %s!%s@%s, USER, USER.NICK, USER, USER.LOGIN, USER, USER.HOST, 3, STRING.FORMAT, .] |
16:52 |
|
SoniEx2 |
:D |
16:52 |
|
SoniEx2 |
I can do Java :D |
17:08 |
|
|
SExJ joined ##javaee |
17:08 |
|
|
Losowski left ##javaee |
17:26 |
|
SoniEx2 |
todo: implement IF ... ELSE ... THEN ... |
19:28 |
|
|
sfisque_p joined ##javaee |
20:09 |
|
|
semiosis joined ##javaee |
20:23 |
|
|
cem_ joined ##javaee |
20:24 |
|
cem_ |
i'm confused with sql |
20:40 |
|
cem_ |
sql is weird |
20:41 |
|
sfisque |
it shows its age. originally crafted when software devs wore ties and button down shirts |
20:47 |
|
|
SLovenberg joined ##javaee |
20:50 |
|
cem_ |
I feel like i should never do update as i now know what it does :D |
20:52 |
|
sess |
it...updates? |
20:52 |
|
sess |
crazy stuff |
20:52 |
|
cem_ |
It does for for all sql statement like podekcha |
20:53 |
|
sess |
wat |
20:53 |
|
cem_ |
although its a quite a theory of mine not sure :/ |
20:57 |
|
Naros |
SQL updates whatever rows you instruct it to update :P |
20:57 |
|
Naros |
hence the WHERE clause predicates |
20:59 |
|
cem_ |
This completely fails , where i want to swap the columns |
20:59 |
|
cem_ |
UPDATE students SET rollno=rollno+id,id=rollno-id,rollno=rollno-id WHERE stdid>10000 AND stdid<15000; both rollno and id are +ve numbers |
21:00 |
|
Naros |
I don't believe SQL allows you to specify SET of a column multiple times IIRC |
21:00 |
|
cem_ |
Naros: it allows |
21:00 |
|
Naros |
so it would fail due to rollno = rollno + id AND rollno = rollno - id |
21:00 |
|
Naros |
what database? |
21:01 |
|
cem_ |
sqlite |
21:01 |
|
Naros |
Ah; I don't believe Oracle nor SQL Server allow that, so understand that may just be a SQLite option and not ANSI standard. |
21:01 |
|
cem_ |
and in mysql too |
21:02 |
|
|
sfisque_p joined ##javaee |
21:02 |
|
Naros |
SQL Server Database Error: The column name 'VERSION' is specified more than once in the SET clause. A column cannot be assigned more than one value in the same SET clause. Modify the SET clause to make sure that a column is updated only once. |
21:02 |
|
Naros |
I'd wager that's ANSI standard. |
21:03 |
|
Naros |
Anyway, to your point. |
21:03 |
|
SoniEx2 |
fuck ANSI |
21:03 |
|
Naros |
If you want to swap two fields in a SET clause it's as simple as this |
21:03 |
|
sfisque |
yeah and those pesky ISO peeps too |
21:03 |
|
Naros |
UPDATE table SET fieldA = fieldB, fieldB = fieldA |
21:03 |
|
semiosis |
standard or not, it doesnt even make sense. what do you want rollno to be? rollno+id or rollno-id -- it can't be both except where id == 0 |
21:04 |
|
Naros |
the right side of those SET clauses is the CURRENT value in those fields. The left side declares where the value will be stored. |
21:04 |
|
Naros |
The SQL will swap the values for the two columns and shouldn't fail :P |
21:05 |
|
cem_ |
Naros: I found the solution same as you said |
21:06 |
|
cem_ |
semiosis: what doesnt make sense ? |
21:06 |
|
Naros |
setting the same column with 2 right-hand value-sets. |
21:07 |
|
semiosis |
SET rollno=rollno+id,rollno=rollno-id |
21:07 |
|
Naros |
regardless what their compuation may be, it just logically makes no sense from a DDL execution point of view |
21:07 |
|
cem_ |
i thought it was sequential execution and assigning |
21:07 |
|
Naros |
Nope, DDL statements are atomic |
21:08 |
|
Naros |
It sets each SET clause at the same moment in time to the end user's point of view. |
21:08 |
|
Naros |
Now you can get creative with your UPDATE clauses using temporary tables and such, but doesn't change the fact an UPDATE can't do what you thought it did. |
21:10 |
|
semiosis |
cem_: SQL is a kind of Declarative language, as opposed to a procedural or imperative language. This might be interesting reading for you: http://en.wikipedia.org/wiki/Declarative_programming |
21:10 |
|
cem_ |
semiosis: this works fine in prolog |
21:11 |
|
semiosis |
fascinating |
21:17 |
|
cem_ |
weird sql and this has no sense too SET rollno=rollno+id,rollno=rollno-id |
21:20 |
|
cem_ |
dewa mata :) |
21:20 |
|
|
cem_ left ##javaee |
21:21 |
|
Naros |
perhaps I am missing something, but I have no idea why they even want to set rollno with two values :/ |
21:49 |
|
|
mask joined ##javaee |
21:59 |
|
|
neurobit joined ##javaee |
22:02 |
|
Guest32386 |
is it possible to convert any project to maven build project (I want to do that to make the project portable betweeen many IDEs) |
22:05 |
|
whartung |
well, arguably, "yes", but it depends on the complexity of the project, and whether maven has specific support for the things you want to do. |
22:05 |
|
sfisque |
the ant based build should be portable as well unless you're using a completely custom ant script |
22:06 |
|
sfisque |
i know eclipse will consume and use an existing build.xml |
22:06 |
|
sfisque |
not sure of idea |
22:06 |
|
sfisque |
i believe idea does |
22:06 |
|
whartung |
the beauty of maven is that the IDEs readily picks up the class path shenanigans, unlike ant |
22:07 |
|
whartung |
"beauty" |
22:07 |
|
sfisque |
aye. i was just pointing out that maven is not a requirement for cross ide support |
22:08 |
|
whartung |
maven is a better universal IDE project file than ant, IMHO |
22:09 |
|
pdurbin |
such a beauty |
22:10 |
|
pdurbin |
I moved that android app to gradle :) |
22:28 |
|
whartung |
sfisque: ever play with EnitytManager.setFlushMode() ? |
22:29 |
|
sfisque |
havent used it. |
22:34 |
|
whartung |
essentially, so it says, it defers updates to the DB until COMMIT |
22:34 |
|
whartung |
vs now when it randomly flushes updates to the DB |
22:35 |
|
whartung |
we're having some odd dead locks, hopefully strategic use of that will fix it |
22:35 |
|
sfisque |
that's standard behavior |
22:35 |
|
sfisque |
oh, i see |
22:35 |
|
sfisque |
it stores up the network io and does it burst mode when it's going to commit |
22:35 |
|
whartung |
yea, randomly updating the DB is standard behavior |
22:35 |
|
whartung |
(and perhaps it's not random, it just seems random in operation) |
22:35 |
|
Guest32386 |
hm |
22:35 |
|
whartung |
apparently it would flush whenever it did a query |
22:36 |
|
sfisque |
i think that depends on the underlying impl |
22:36 |
|
whartung |
that's what it says for EclipseLink |
22:36 |
|
sfisque |
i'm guessing .setFlushMode() forces a specific timing rather than letting the impl decide |
22:38 |
|
whartung |
ideally |
22:38 |
|
whartung |
we'll see if it helps in this case |
22:43 |
|
|
sfisque_p joined ##javaee |
23:01 |
|
sfisque |
so hibernate enhydra cache question |
23:02 |
|
sfisque |
i just got tossed into a project that uses hibernate intimately, zero container management, all bootstrapped from inside the app. if i turn on enhydra cache, will it operate well in a clustered tomcat environment even though tomcat is not managing the connection pool? |
23:02 |
|
sfisque |
i know ther are ways to configure ehcache to be cluster aware, but i do not know if they work well when the container is not handling the connection pool |
23:20 |
|
|
MegaMatt joined ##javaee |