greptilian logo

IRC log for #javaee, 2013-09-12

Please see http://irclog.greptilian.com/javaee for which days have been logged.

| Channels | #javaee index | Today | | Search | Google Search | Plain-Text | plain, newest first | summary

All times shown according to UTC.

Time S Nick Message
01:41 Quest joined ##javaee
03:34 kobain joined ##javaee
05:06 pawanspace joined ##javaee
05:24 sfisque how's this for an odyssey.  i've managed to rip and virtualize my windows setup (work notebook) into a virtualbox vm.  now i'm building solaris 11 vm on my macintosh so i can prove out if i can get the corp vpn working on solaris, so i can format my win7 notebook to be solaris 11 and run the corp win7 setup inside virtualbox (small enough to just give me outlook/calendar) and do all my dev on solaris natively :P
05:48 dangertools joined ##javaee
06:12 [[thufir]] joined ##javaee
06:12 [[thufir]] joined ##javaee
07:18 neuro_sys http://www.coderanch.com/t/605414/Web-Services/java/RESTlet-slower-Axis
07:19 neuro_sys interestin
07:19 neuro_sys g
07:27 sfisque joined ##javaee
07:49 sl33k joined ##javaee
07:52 sl33k1 joined ##javaee
09:11 Kda joined ##javaee
09:15 Kda Hi all! I need help with IBM WebSphere. I have MDB which I have to temporarily stop once a day, I tried using synchronized in timer thread with Objects created in MDB, but it was not working good. Later I read that synchronization and thread working is not supported in MDB by specs. I read that there is a Work Manager and it can run threads. But I need syncronization with timer thread. If I make a Work with MDB code using synchronized,
09:36 sl33k joined ##javaee
10:22 acuzio Quest : well done - i am glad it worked -  but did you have to use synchronized
10:24 Kda I have database which has service operation once a day. This operation does not work with database operations invoked in MDB.
10:24 acuzio Kda: ask Quest
10:24 pdurbin Kda: did you finish your thought? You ended with a ,
10:26 Kda @pdurbin: I don't see ending with ','. I have finished.
10:26 crimsonfubot Kda: Error: "pdurbin:" is not a valid command.
10:27 Kda pdurbin: I don't see ending with ','. I have finished.
10:27 Kda acuzio: Sorry, don't understand about 'Quest'
10:28 acuzio Kda: Quest is one of the mods here  and a very specialized programmer , he solves  these problems everyday
10:28 pdurbin I should probably change crimsonfubot's shortcut character from @ to something else
10:29 pdurbin Kda: here is the , I'm talking about: http://irclog.greptilian.com/javaee/2013-09-12#i_22463
10:30 Kda pdurbin: That's bad. In my webchat it displays correctly. The ending was 'will it be OK? Thanks'
10:31 Kda acuzio: I don't see Quest here online. Doesn't you know, when can I ask him for help?
10:31 pdurbin Kda: thanks. I wish I could help
10:34 acuzio Kda: wait here - he will be here shortly - he solved something like this yesterday
10:34 Kda acuzio: Thank you
10:35 acuzio he is very good with Threading and synchronization
10:37 pdurbin Kda: sometimes Quest writes up his questions on http://stackoverflow.com ... you might consider doing the same
10:39 Kda pdurbin: Yes, I know about StackOverflow. Thank you.
10:47 sl33k Kda: what is your question?
10:54 Kda sl33k: I need help with IBM WebSphere. I have MDB which I have to temporarily stop once a day, I tried using synchronized in timer thread with Objects created in MDB, but it was not working good. Later I read that synchronization and thread working is not supported in MDB by specs. I read that there is a Work Manager and it can run threads. But I need syncronization with timer thread. If I make a Work with MDB code using synchronized,
10:56 sl33k Kda: What is MDB? Message Driven Beans? Are you in a Java EE container?
10:58 sl33k there is a TimerService in Java EE
11:01 Kda sl33k: Yes, Message-Driven Beans. I use WebSphere. Already found TimerManager, trying to work with it. But synchronization might be cool.
11:08 pdurbin I don't know much about MDBs. I didn't know you could stop them: http://mike-lehmann.blogspot.com/2006/10/stopping-mdb-via-jmx.html
11:14 Kda pdurbin: That's great. I tried to look for this, but didn't have result. But I don't have production credentials.
11:51 SoniEx2 joined ##javaee
12:16 neuro_sys https://gist.github.com/neuro-sys/6536423
12:16 neuro_sys Does anyone have any idea about this?
12:25 tjsnell jar hell!
12:25 tjsnell with an added IBM hell bonus
12:25 tjsnell you have two different libs loading different versions of the same thing
12:44 neuro_sys yeah figured, same class name from different packages
12:44 neuro_sys one from my intended jar, the other from WAS server runtime.
12:44 neuro_sys a useless shit
12:47 tjsnell I just say no to any projects involving WAS these days
13:11 thrustcore joined ##javaee
13:11 thrustcore left ##javaee
13:11 fabioportieri joined ##javaee
13:11 fabioportieri morning
13:21 Quest joined ##javaee
13:24 Kda Hello, Quest! May I ask you for help?
13:24 Quest Kda,  sure
13:25 Quest but you should just ask your questions in channel. without pointing anyone. who ever knew the answer or had time. will answer.
13:26 Kda Yes, I asked before and was adviced to ask you for help
13:26 Kda I need help with IBM WebSphere. I have MDB which I have to temporarily stop once a day, I tried using synchronized in timer thread with Objects created in MDB, but it was not working good. Later I read that synchronization and thread working is not supported in MDB by specs. I read that there is a Work Manager and it can run threads. But I need syncronization with timer thread. If I make a Work with MDB code using synchronized
13:26 Kda will it be OK?
13:28 Kda I used TimerManager and scheduled MDB code with delay, but synchronized might be cool
13:28 Naros joined ##javaee
13:32 Quest Kda,  threading in EE containers is considered bad.
13:33 Kda Quest, but I thought there may be a workaround. Starting new Thread is bad, but using WorkManager it is OK.
13:34 fabioportieri if you use websphere internals it's ok indeed
13:34 Quest keep in mind, you cannot use synchronized blocks in an EE container if you ever move the product from spring to ee.  you can deadlock the container and it's explicitly forbidden in the spec (though you CAN do it, but if you break it, you get to keep both halves :-)   chapter 24 iirc   There are constructs in the java.util.concurrent package specifically for doing similar things like synchronized but without synchronized.  you're in a pooled multithreaded
13:34 Quest env
13:34 Quest this was already discussed yesterday Kda ^
13:35 Quest why in the world ee and servlet containers dont support sync blocks?  because they don't need to, they have other mechanisms . because you're in a pooled multithreaded env
13:36 Quest Kda,  ^
13:36 Quest why in the world ee and EE* containers dont support sync blocks?
13:36 Quest ^
13:45 Kda But (maybe stupid question) java.util.concurrent contains, i.e. Semaphore. So may I use Semaphore and not get problems with j2ee container?
13:51 SoniEx2 joined ##javaee
13:52 fabioportieri if you're using a semaphore then it means you have more than one thread
13:54 Kda fabioportieri: Yes, I have MDBs and one timer thread.
13:58 fabioportieri why you need timer thread?
13:58 Kda Because I run service db stored procedure once a day
13:59 tjsnell that's a bad way to do that
13:59 Kda Which one is good?
14:00 tjsnell use the Timer service
14:01 fabioportieri in mysql there is a scheduler
14:01 fabioportieri i guess every dbms has his own system
14:02 tjsnell no
14:02 tjsnell use the jee one
14:02 Kda I use db2, didn't look about it, but I should stop writing to DB from MDBs
14:02 tjsnell don't weld to your db
14:02 Kda I used websphere timer manager, but in common case there may be situation when I won't know what delay should be
14:06 * Naros misses PL/SQL from Oracle.  TSQL drives me bonkers.
14:07 Naros why must one create a separate variable to concatenate a string before you can pass the concatenated string to a stored procedure call >.<
14:07 * Naros places forehead to desk.
14:08 Kda Unfortunately, I have to go. Thanks acuzio, pdurbin, sl33k, Quest, fabioportieri, tjsnell. Good bye.
14:08 fabioportieri bye bye Kda
14:09 * Naros waves to Kda.
14:10 fabioportieri i have to go too bye bye
14:10 Naros take care fabio.
14:16 kobain joined ##javaee
14:27 sl33k1 joined ##javaee
14:32 acuzio did Kda sort it out -
14:33 acuzio Quest: did you help him ?
14:33 sl33k joined ##javaee
14:33 Quest acuzio,  I hope so
14:34 acuzio Quest: Oh did you tell him to use Database and synchronization inside an EE container , is he using an EE container ?
14:35 sl33k joined ##javaee
14:36 sl33k joined ##javaee
14:37 Quest webspere i think.yes
14:37 acuzio So he can use Database with that and that should just work
14:37 sl33k joined ##javaee
14:38 sl33k joined ##javaee
14:41 sl33k joined ##javaee
14:42 fr0ggler joined ##javaee
14:43 sl33k joined ##javaee
16:22 neuro_sys joined ##javaee
16:24 SoniEx2 joined ##javaee
16:38 aumji joined ##javaee
16:38 aumji Java SUCKS!
16:39 SoniEx2 and u 2 ;)
16:39 aumji why you not ?
16:39 SoniEx2 well I'm gay so I guess I suck too... :P
16:40 aumji hmm
16:41 aumji Java Sucks ! Who uses Java are Crazy crap
16:41 SoniEx2 Java me and you are all gay because we all suck :P
16:43 aumji Why the fuck we need Java
16:45 aumji Java is for Morons .. Only for Morons
16:46 SoniEx2 I use D... and JNI... (blame Minecraft for not being written in D)
16:47 SoniEx2 what's D? well... #YOLO >:D
16:48 aumji I use many  :P even Perl at times I hate Java Language
16:49 SoniEx2 damn that didn't work :/
16:49 SoniEx2 ok dickhead, so... I can't troll you back... you win... bitch... ¬_¬
16:50 aumji ok fuck face , yes!
16:53 aumji JAVA SUCKS !
16:54 aumji OO SUCKS!
16:55 aumji Die ALL for using it , fucking morons
16:55 aumji left ##javaee
16:57 whartung Where do these people come from, and why are they attracted here?
16:58 tjsnell something about this place attracts idiots
17:02 Naros wth was that all about :S
17:06 SoniEx2 well I tried to troll a troll... I failed :/
17:06 SoniEx2 someone teach me how to troll...
17:06 * Naros comforts SoniEx2.
17:07 SoniEx2 and I'm trying to drink half a liter of DHMO :/
17:08 SoniEx2 (/random)
17:13 Naros DHMO?
17:14 SoniEx2 dihydrogen monoxide
17:15 Naros >.<
17:19 Cratylus joined ##javaee
17:20 Cratylus Hello
17:21 Naros Hello.
17:21 Cratylus I can't find a ##java room does this pretty much take over it?
17:22 Naros Cratylus: No, there is also the ##java channel too.
17:22 tjsnell ##java is there
17:22 tjsnell registered nick required
17:23 Cratylus doesn't even show up in the freenode room list and says invalid channel when I try to join.
17:23 Cratylus have some general java questions. :)
17:23 Naros fire away.
17:23 tjsnell if you haven't registered with nick serv you can't join
17:24 Cratylus I am a super noob at java. Trying to use it more for other things.
17:24 tjsnell and it shows up in my list, not sure why you can't see it
17:24 Cratylus I was looking for a guide or instructions on the web how to do a update program with java that is pretty simple.
17:24 Cratylus I should be registered
17:24 Quest Cratylus,  http://docs.oracle.com/javase/tutorial/
17:25 Quest Cratylus,  what do you mean by update program?
17:26 * Quest leaves for dinner
17:29 Cratylus ok another quick question
17:29 Cratylus Anyone use the Android Eclipse?
17:30 Cratylus with their IDE?
17:30 Naros I do not.
17:39 tjsnell why not use Android Studio?
17:39 tjsnell much better foundation and the official ide
17:40 pdurbin Cratylus: I tried it once and was able to build https://github.com/ginatrapani/todo.txt-android with it
17:41 pdurbin and then sideload the app onto my phone
18:03 pdurbin whartung: wait. have you used OpenAM before or not? I forget
18:03 whartung no I have not used it directly
18:03 pdurbin bummer. I'm already a little lost in the docs
18:06 whartung that's why I suggested the other thing if all yu needed was the SP side
18:24 pdurbin whartung: yeah. OIOSAML. Well, I emailed the list anyway: [OpenAM] Getting started with Shibboleth/SAML and the OpenAM Federation module - https://lists.forgerock.org/pipermail/openam/2013-September/013795.html
18:24 pdurbin of course, now that I'm looking at my browser history I see this: [OpenAM] openam as an SP (service provider) shibbolteh - https://lists.forgerock.org/pipermail/openam/2012-June/006831.html
18:25 whartung I'm sure it's possible, just the 90% of the documentation is for managing the IdP side of the system, not the SP
18:25 pdurbin right. like this is perfect for IdP: http://blogs.forgerock.org/petermajor/2011/10/federation-with-shibboleth-sp-apache-module/
18:26 pdurbin "Today the goal is to achieve SSO between an OpenAM IdP and a Shibboleth SP with the simplest settings as possible" ... but I want the opposite, basically
18:26 whartung yea
18:26 whartung which IdP are you using?
18:27 pdurbin whartung: http://testshib.org
18:43 Cratylus Thanks tjsnell looking into that.
19:00 pdurbin whartung: I got a reply already. I'm being told OpenAM doesn't work with Glassfish 3.x or later: https://lists.forgerock.org/pipermail/openam/2013-September/013796.html
19:00 pdurbin "Due to version mismatch in WebService stack (Metro) OpenAM does not work OOTB with GF 3.x or later; you need to get rid of Metro."
20:07 Quest joined ##javaee
20:08 Quest there isnt an easy way to get String.indexOf()  for "last occurence" instead of first.   correct me if iam wrong?
20:09 Quest except lastindexOf().
20:13 whartung wow nice pdurbin
20:13 Quest nevemind. ^
20:13 whartung "thanks a lot"
20:15 pdurbin whartung: hmm? :)
20:15 whartung OpenAM and GF/Metro
20:16 pdurbin whartung: there's more. a guy joined #openam and is helping me out: [#OPENAM-1219] SAML 2 metadata parsing breaks in glassfish 3.1.2 - ForgeRock JIRA - https://bugster.forgerock.org/jira/browse/OPENAM-1219
20:17 pdurbin whartung: how does `pkg uninstall glassfish-full-profile glassfish-full-incorporation metro` grab you?
20:17 whartung seems…extreme
20:17 pdurbin because that's the work around. for glassfish 3.1.2 anyway. doesn't work with 3.1.2.2 sounds like
20:17 pdurbin yeah, no kidding
20:18 whartung because you can downgrade metro in GF (should be able to)
20:19 pdurbin hmm. ok
20:19 whartung I mean, you can upgrade it -- if you can upgrade, perhaps you can downgrade it.
20:19 whartung but just funny
20:19 whartung we don't even use the WS stack for our SAML stuff
20:20 pdurbin whartung: they other thing is that OpenAM needs to be in its own container, it turns out. I was hoping it could be more... integrated into our app... all in the same container
20:20 whartung well for the SP, it should be.
20:20 whartung more nonsense. SP shouldn't be more than a filter and/or a servlet
20:20 whartung it's not that big a deal
20:20 whartung for an IdP, sure, whatever. that's a different problem
20:21 pdurbin OIOSAML seems to be just a filter
20:21 whartung yea, that's all you need
20:21 whartung orchestration with the filter and a session, mostly
20:22 pdurbin right
20:32 pdurbin anyway, obviously I need to do some more reading and research. I'm glad I reached out the the OpenAM list and IRC channel though. They're very friendly
20:52 SoniEx joined ##javaee
22:07 Quest joined ##javaee

| Channels | #javaee index | Today | | Search | Google Search | Plain-Text | plain, newest first | summary

Please see http://irclog.greptilian.com/javaee for which days have been logged.